Thank you for your interest in contributing to opa-authzen-plugin! This guide will help you get started.
Development Setup
Section titled “Development Setup”Prerequisites
Section titled “Prerequisites”- Go 1.26.1 or later (see
.go-version) - GNU Make
- Git
Building
Section titled “Building”make build # Build the binarymake test # Run all testsmake fmt # Format codemake vet # Run static analysisTesting
Section titled “Testing”# Run all testsmake test
# Run tests with race detectorgo test -v -race ./...
# Run a specific testgo test -v -run TestName ./internalContributing Process
Section titled “Contributing Process”1. Fork and Clone
Section titled “1. Fork and Clone”git clone https://github.com/dyokto/opa-authzen-plugin.gitcd opa-authzen-plugin2. Create a Feature Branch
Section titled “2. Create a Feature Branch”git checkout -b fix/your-fix# orgit checkout -b feat/your-feature3. Make Your Changes
Section titled “3. Make Your Changes”- Keep changes focused on a single issue or feature
- Write clear commit messages
- Add or update tests as appropriate
4. Commit with DCO Sign-off
Section titled “4. Commit with DCO Sign-off”All commits must be signed off with the Developer Certificate of Origin (DCO):
git commit -s -m "Brief description of changes"The -s flag adds a Signed-off-by: line to your commit message. This confirms that you have the right to contribute the code under the Apache 2.0 license.
5. Push and Create a Pull Request
Section titled “5. Push and Create a Pull Request”git push origin fix/your-fixThen create a PR on GitHub. Include:
- A clear description of what your PR does
- References to any related issues
- Test coverage for new functionality
Code Style
Section titled “Code Style”- Follow effective Go
- Format code with
go fmt - Run
go vetbefore submitting - Keep lines under 100 characters where reasonable
Testing
Section titled “Testing”- Write table-driven tests (see
internal/internal_test.gofor examples) - All tests must pass:
make test - Run tests with race detector for concurrency validation:
go test -v -race ./...
Documentation
Section titled “Documentation”- Update README.md for user-facing changes
- Add comments to non-obvious code
- Update .github/copilot-instructions.md if architectural patterns change
License
Section titled “License”By contributing, you agree that your contributions will be licensed under the Apache License 2.0.
© 2026 The opa-authzen-plugin Authors. Licensed under Apache-2.0. Part of dyokto.