Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultProviders = map[string]Provider{ "gitlab": &gitlab.CI{}, "actions": &github.Actions{}, "gcp": &gcp.Provider{}, }
These are the default STS providers, the signer project has additional providers in https://github.com/carabiner-dev/signer-extras which have a heavier dependency footprint. gcp mints a service-account identity token from $GOOGLE_APPLICATION_CREDENTIALS or the Google Cloud metadata server and, like the others, reports no token when its environment is absent. Build it with gcp.New to pin a service account key explicitly.
Access the map through Providers/RegisterProvider/UnregisterProvider: iterating it directly is not synchronized with concurrent registration.
Functions ¶
func Providers ¶ added in v0.5.4
Providers returns a snapshot of the registered STS providers, safe to iterate while other goroutines register or unregister providers.
func RegisterProvider ¶
RegisterProvider registers a new provider
func UnregisterProvider ¶
UnregisterProvider removes a registered provider
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
providers
|
|
|
gcp
Package gcp implements an STS provider that mints Google Cloud OIDC identity tokens.
|
Package gcp implements an STS provider that mints Google Cloud OIDC identity tokens. |
|
github
Package github implements a client to requesta short lived token from github actions.
|
Package github implements a client to requesta short lived token from github actions. |
|
gitlab
Package gitlab implements a client to read OIDC tokens from GitLab CI using the SIGSTORE_ID_TOKEN environment variable.
|
Package gitlab implements a client to read OIDC tokens from GitLab CI using the SIGSTORE_ID_TOKEN environment variable. |