🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/portward/cerbos

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/portward/cerbos

v0.4.0
Source
Go
Version published
Created
Source

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.

FAQs

Package last updated on 19 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts