Skip to content

Commit

Permalink
chore(ci): Generate cosign bundle for binaries (#1993)
Browse files Browse the repository at this point in the history
Generate a cosign bundle file to help with verifying the binaries.

Signed-off-by: Charith Ellawala <charith@cerbos.dev>
  • Loading branch information
charithe committed Feb 26, 2024
1 parent 6874e5f commit a8223bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ signs:
- --yes
- --rekor-url
- https://rekor.sigstore.dev/
- "--output-signature=${signature}"
- "--bundle=${artifact}.bundle"
- "${artifact}"
artifacts: all

Expand Down
14 changes: 14 additions & 0 deletions docs/modules/ROOT/pages/installation/container.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ include::partial$attributes.adoc[]
docker run --rm --name cerbos -p 3592:3592 {app-docker-img}
----

[NOTE]
====
Cerbos images can be verified using link:https://www.sigstore.dev[sigstore] tools as follows:
[source,sh,subs="attributes"]
----
cosign verify --certificate-oidc-issuer="https://token.actions.githubusercontent.com" --certificate-identity-regexp="github.com/cerbos/cerbos" {app-docker-img}
----
====

By default, the container is configured to listen on ports 3592 (HTTP) and 3593 (gRPC) and watch for policy files on the volume mounted at `/policies`. You can override these by creating a new xref:configuration:index.adoc[configuration file].

.Create a directory to hold the config file and policies.
Expand Down Expand Up @@ -37,3 +49,5 @@ docker run --rm --name cerbos -d -v $(pwd)/cerbos-quickstart:/quickstart -p 3592
----

NOTE: Cerbos container images are mirrored to Docker Hub and the latest version is available at {app-alternative-docker-img} as well.


0 comments on commit a8223bf

Please sign in to comment.