spiffeauth

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 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

Package spiffeauth provides shared SPIFFE authentication primitives for the authorization server.

Index

Constants

View Source
const SPIFFEJWTAssertionType = "urn:ietf:params:oauth:client-assertion-type:jwt-spiffe"

SPIFFEJWTAssertionType identifies SPIFFE JWT-SVID client assertions.

Variables

This section is empty.

Functions

func SPIFFEIDFromCertificate added in v0.56.0

func SPIFFEIDFromCertificate(cert *x509.Certificate) (spiffeid.ID, error)

SPIFFEIDFromCertificate returns the single SPIFFE URI SAN in cert. It rejects the root SPIFFE ID (empty path); go-spiffe's parser already enforces a canonical path.

Types

type SPIFFEAuthenticationMethod

type SPIFFEAuthenticationMethod string

SPIFFEAuthenticationMethod identifies the credential type permitted for a SPIFFE workload. Methods are explicit so introducing another credential type cannot silently broaden a policy.

It is declared here, in this leaf package: package server's SPIFFEClientResolver (spiffe_client_auth.go) needs a method type for its resolver signature, and package server cannot import authserver (authserver imports server). authserver.SPIFFEAuthenticationMethod is an alias for this type, so values pass between the two without conversion.

const (
	// SPIFFEAuthenticationMethodX509 authenticates a workload with an X.509-SVID.
	SPIFFEAuthenticationMethodX509 SPIFFEAuthenticationMethod = "spiffe_x509"
	// SPIFFEAuthenticationMethodJWT authenticates a workload with a JWT-SVID.
	SPIFFEAuthenticationMethodJWT SPIFFEAuthenticationMethod = "spiffe_jwt"
)

Jump to

Keyboard shortcuts

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