custom_bundle_signing

module
v0.0.0-...-547d54e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: Apache-2.0

README

Custom Bundle Signing Example

This example demonstrates how to implement custom bundle signing and verification.

Starting at cmd/opa/main.go, we hook into OPA's RootCommand and inject a PersistentPreRun hook for certain OPA commands. We call bundle.RegisterSigner and bundle.RegisterVerifier for our custom implementations of the bundle.Signer and bundle.Verifier interfaces, respectively.

Our Signer and Verifier implementations demonstrate how to implement the interfaces, without actually performing any real signing or verification. To create a functional Signer and Verifier, you'll want to look at the DefaultSigner and DefaultVerifier implementations in OPA's source.

Use make build and make test to run this example locally.

Directories

Path Synopsis
cmd
opa

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL