sts

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultProviders = map[string]Provider{
	"gitlab":  &gitlab.CI{},
	"actions": &github.Actions{},
}

These are the two default STS providers, the signer project has additional providers in https://github.com/carabiner-dev/signer-extras which have a heavier dependency footprint.

Functions

func RegisterProvider

func RegisterProvider(key string, p Provider)

RegisterProvider registers a new provider

func UnregisterProvider

func UnregisterProvider(key string, p Provider)

RegisterProvider registers a new provider

Types

type Provider

type Provider interface {
	Provide(context.Context, string) (*oauthflow.OIDCIDToken, error)
}

Directories

Path Synopsis
providers
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.

Jump to

Keyboard shortcuts

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