feat: Enhance project with OSS standards, docs, and Docker #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit introduces several improvements to make the project more robust, user-friendly, and production-ready:
Core Logic Implementation:
authservice.NewRouter()to correctly route/authorizerequests to theAuthorizeHandler.authservice_test.goto use the new router and removed a problematic test case (TestAuthorizeHandler_MissingRulesFile) that didn't align with the application's startup error handling.Open Source Documentation:
LICENSEfile (MIT License).CONTRIBUTING.mdfile with guidelines for contributors.Enhanced Project Documentation:
README.mdwith:/authorize.rules.yamlstructure.LICENSEandCONTRIBUTING.md.authservice/auth_service.goandmain.gofor better code understanding.Containerization:
Dockerfilefor a multi-stage build, creating a minimal Alpine-based runtime image.golang:1.22-alpineto match project's Go version..dockerignorefile to optimize the Docker build context.Testing and Verification:
authservicepackage pass.These changes establish a solid foundation for the application, making it align better with open-source software practices and easier to deploy and manage.