Documentation ¶
Index ¶
- Constants
- Variables
- func NewIssuerPool(cfg *config.FulcioConfig) identity.IssuerPool
- func NewLegacyGRPCCAServer(v2Server fulciogrpc.CAServer) legacy.CAServer
- func WithMaxBytes(next http.Handler, n int64) http.Handler
- type GRPCCAServer
- func (g *GRPCCAServer) Check(_ context.Context, _ *health.HealthCheckRequest) (*health.HealthCheckResponse, error)
- func (g *GRPCCAServer) CreateSigningCertificate(ctx context.Context, request *fulciogrpc.CreateSigningCertificateRequest) (*fulciogrpc.SigningCertificate, error)
- func (g *GRPCCAServer) GetConfiguration(ctx context.Context, _ *fulciogrpc.GetConfigurationRequest) (*fulciogrpc.Configuration, error)
- func (g *GRPCCAServer) GetTrustBundle(ctx context.Context, _ *fulciogrpc.GetTrustBundleRequest) (*fulciogrpc.TrustBundle, error)
- func (g *GRPCCAServer) Watch(_ *health.HealthCheckRequest, _ health.Health_WatchServer) error
- type Info
Constants ¶
View Source
const ( PEMCertificateChain = "application/pem-certificate-chain" SCTMetadataKey = "x-sct" HTTPResponseCodeMetadataKey = "x-http-code" )
View Source
const (
MetadataOIDCTokenKey = "oidcidentitytoken"
)
Variables ¶
View Source
var ( MetricLatency = promauto.NewHistogramVec(prometheus.HistogramOpts{ Name: "fulcio_api_latency", Help: "API Latency on calls", }, []string{"code", "method"}) RequestsCount = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "http_requests_total", Help: "Count all HTTP requests", }, []string{"code", "method"}) )
Functions ¶
func NewIssuerPool ¶ added in v1.2.0
func NewIssuerPool(cfg *config.FulcioConfig) identity.IssuerPool
func NewLegacyGRPCCAServer ¶
func NewLegacyGRPCCAServer(v2Server fulciogrpc.CAServer) legacy.CAServer
Types ¶
type GRPCCAServer ¶ added in v1.3.3
type GRPCCAServer struct { fulciogrpc.UnimplementedCAServer health.HealthServer identity.IssuerPool // contains filtered or unexported fields }
func NewGRPCCAServer ¶
func NewGRPCCAServer(ct *ctclient.LogClient, ca certauth.CertificateAuthority, ip identity.IssuerPool) *GRPCCAServer
func (*GRPCCAServer) Check ¶ added in v1.3.3
func (g *GRPCCAServer) Check(_ context.Context, _ *health.HealthCheckRequest) (*health.HealthCheckResponse, error)
func (*GRPCCAServer) CreateSigningCertificate ¶ added in v1.3.3
func (g *GRPCCAServer) CreateSigningCertificate(ctx context.Context, request *fulciogrpc.CreateSigningCertificateRequest) (*fulciogrpc.SigningCertificate, error)
func (*GRPCCAServer) GetConfiguration ¶ added in v1.3.3
func (g *GRPCCAServer) GetConfiguration(ctx context.Context, _ *fulciogrpc.GetConfigurationRequest) (*fulciogrpc.Configuration, error)
func (*GRPCCAServer) GetTrustBundle ¶ added in v1.3.3
func (g *GRPCCAServer) GetTrustBundle(ctx context.Context, _ *fulciogrpc.GetTrustBundleRequest) (*fulciogrpc.TrustBundle, error)
func (*GRPCCAServer) Watch ¶ added in v1.3.3
func (g *GRPCCAServer) Watch(_ *health.HealthCheckRequest, _ health.Health_WatchServer) error
Click to show internal directories.
Click to hide internal directories.