Documentation
¶
Index ¶
- func AdmissionInterceptor(admission *store.AdmissionController) grpc.UnaryServerInterceptor
- func AdmissionStreamInterceptor(admission *store.AdmissionController) grpc.StreamServerInterceptor
- func AuthStreamInterceptor(validator security.AccessValidator, audit *security.AuditLogger) grpc.StreamServerInterceptor
- func AuthUnaryInterceptor(validator security.AccessValidator, audit *security.AuditLogger) grpc.UnaryServerInterceptor
- func CircuitBreakerInterceptor() grpc.UnaryServerInterceptor
- func ExtractBearerToken(ctx context.Context) (token, namespace, dataset string)
- func HTTPAuthMiddleware(validator security.AccessValidator, audit *security.AuditLogger, ...) func(http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdmissionInterceptor ¶
func AdmissionInterceptor(admission *store.AdmissionController) grpc.UnaryServerInterceptor
AdmissionInterceptor returns a gRPC unary interceptor that enforces admission control.
func AdmissionStreamInterceptor ¶
func AdmissionStreamInterceptor(admission *store.AdmissionController) grpc.StreamServerInterceptor
AdmissionStreamInterceptor returns a gRPC stream interceptor that enforces admission control.
func AuthStreamInterceptor ¶
func AuthStreamInterceptor(validator security.AccessValidator, audit *security.AuditLogger) grpc.StreamServerInterceptor
AuthStreamInterceptor enforces RBAC and injects TenantContext into streaming Flight/gRPC calls.
func AuthUnaryInterceptor ¶
func AuthUnaryInterceptor(validator security.AccessValidator, audit *security.AuditLogger) grpc.UnaryServerInterceptor
AuthUnaryInterceptor enforces RBAC and injects TenantContext into unary gRPC contexts. If validator is nil, authentication is disabled and calls pass through unchanged.
func CircuitBreakerInterceptor ¶
func CircuitBreakerInterceptor() grpc.UnaryServerInterceptor
CircuitBreakerInterceptor creates a unary server interceptor that wraps `DoGet` and `VectorSearch` calls with a circuit breaker.
func ExtractBearerToken ¶
ExtractBearerToken extracts an API key or bearer token from incoming gRPC metadata.
func HTTPAuthMiddleware ¶
func HTTPAuthMiddleware(validator security.AccessValidator, audit *security.AuditLogger, requiredPerm string) func(http.Handler) http.Handler
HTTPAuthMiddleware enforces RBAC Bearer / X-API-Key auth on HTTP handlers when validator is non-nil.
Types ¶
This section is empty.