Authorize registry token requests using Cerbos.
Warning
Project is under development. Backwards compatibility is not guaranteed.
For an optimal developer experience, it is recommended to install Nix and direnv.
Run tests:
dagger call test
Run linters:
dagger call lint
Launch Cerbos:
docker compose up -d
Run tests:
go test -race -v ./...
Run linter:
golangci-lint run
To test changes made in registry-auth and registry-auth-config:
Make sure registry-auth is checked out in the same directory:
cd ..
git clone [email protected]:portward/registry-auth.git
cd cerbos
Set up a Go workspace:
go work init
go work use .
go work use ../registry-auth
go work sync
Cleanup:
docker compose down -v
The project is licensed under the MIT License.