spiffe

command
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Sign an in-toto attestation with an X.509 SVID obtained from the SPIFFE Workload API, then verify it against a pinned SPIRE upstream root and apply a SPIFFE identity policy via the api/v1 layer.

Demonstrates the SignerSet/VerifierSet OptionsSet plumbing: a CLI surface registers --spiffe-* flags, the SPIFFE_ENDPOINT_SOCKET and SPIFFE_TRUST_BUNDLE env vars are picked up automatically as fallbacks, BuildSigner / BuildCredentialProvider produce the configured signer, and BuildVerifier the configured verifier.

To run against the local SPIRE fixture:

make spire-up   (start the spire server in a container)
export SPIFFE_ENDPOINT_SOCKET="unix://$(pwd)/hack/spire/socket/api.sock"
export SPIFFE_TRUST_BUNDLE="$(pwd)/hack/spire/bundle.pem"
go run ./_examples/spiffe
make spire-down (tear down the spire container)

The fixture registers a workload entry for the calling user's UID under the SPIFFE ID spiffe://test.local/workload — the policy check below pins that identity.

Jump to

Keyboard shortcuts

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