Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSignature ¶
CheckSignature verifies a challenge, a signature over the subject or email of an OIDC token
func ParseCSR ¶ added in v0.4.0
func ParseCSR(csr []byte) (*x509.CertificateRequest, error)
TODO: Move to sigstore/sigstore
func ParsePublicKey ¶ added in v0.4.0
ParsePublicKey parses a PEM or DER encoded public key, or extracts the public key from the provided CSR. Returns an error if decoding fails or if no public key is found.
Types ¶
type AdditionalInfo ¶ added in v0.2.0
type AdditionalInfo int
const ( GithubWorkflowTrigger AdditionalInfo = iota GithubWorkflowSha GithubWorkflowName GithubWorkflowRepository GithubWorkflowRef )
Additional information that can be added as a cert extension.
type ChallengeResult ¶
type ChallengeResult struct { Issuer string TypeVal ChallengeType PublicKey crypto.PublicKey Value string // Extra information from the token that can be added to extensions. AdditionalInfo map[AdditionalInfo]string }
func ExtractSubject ¶ added in v0.4.0
type ChallengeType ¶
type ChallengeType int
const ( EmailValue ChallengeType = iota SpiffeValue GithubWorkflowValue KubernetesValue URIValue UsernameValue )
Click to show internal directories.
Click to hide internal directories.