package
0.0.4
Repository: https://github.com/stackrox/infra-auth-lib.git
Documentation: pkg.go.dev

# Functions

AdminEnricher enriches the given gRPC context with an admin, if possible.
AdminInContext determines if an admin value is in the given context.
ContextInterceptor enables the interception and transformation of a gRPC context.
EnforceAccess enforces authorization to API services.
ServiceAccountEnricher enriches the given gRPC context with a v1.ServiceAccount struct, if possible.
ServiceAccountFromContext extracts a v1.ServiceAccount from the given context, if one exists.
Services process the given APIServiceFunc list, and returns the resulting APIService list.
UserEnricher enriches the given gRPC context with a v1.User struct, if possible.
UserFromContext extracts a v1.User from the given context, if one exists.

# Constants

Admin represents admin level access.
Anonymous represents unauthenticated access.
Authenticated represents user or service account level access.

# Interfaces

APIService is the service interface.

# Type aliases

Access represents a single access level, that is used when permissioning API endpoints.
APIServiceFunc represents a function that is capable of making a APIService.