Skip to content

Latest commit

 

History

History
77 lines (51 loc) · 1.67 KB

README.md

File metadata and controls

77 lines (51 loc) · 1.67 KB

Cerbos

GitHub Workflow Status go.dev reference built with nix

Authorize registry token requests using Cerbos.

Warning

Project is under development. Backwards compatibility is not guaranteed.

Development

For an optimal developer experience, it is recommended to install Nix and direnv.

Using Dagger

Run tests:

dagger call test

Run linters:

dagger call lint

Manual workflow

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 git@github.com: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

License

The project is licensed under the MIT License.