proxiedidentity

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package proxiedidentity provides a way to pass the identity of an end user through the SansShell proxy

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToMetadataInOutgoingContext

func AppendToMetadataInOutgoingContext(ctx context.Context, p *rpcauth.PrincipalAuthInput) context.Context

AppendToMetadataInOutgoingContext includes the identity in the grpc metadata used in outgoing calls with the context.

func FromContext

func FromContext(ctx context.Context) *rpcauth.PrincipalAuthInput

FromContext returns the identity in ctx if it exists. It will typically only exist if ServerProxiedIdentityUnaryInterceptor was used.

func ServerProxiedIdentityStreamInterceptor

func ServerProxiedIdentityStreamInterceptor() grpc.StreamServerInterceptor

ServerProxiedIdentityStreamInterceptor adds information about a proxied caller to the RPC context.

ONLY USE THIS INTERCEPTOR IF YOU HAVE AN OPA POLICY THAT CHECKS proxied-sansshell-identity IN GRPC METADATA. Using the interceptor without an additional authz check can let any caller assert any proxied identity, which can let a caller approve their own MPA requests.

func ServerProxiedIdentityUnaryInterceptor

func ServerProxiedIdentityUnaryInterceptor() grpc.UnaryServerInterceptor

ServerProxiedIdentityUnaryInterceptor adds information about a proxied caller to the RPC context.

ONLY USE THIS INTERCEPTOR IF YOU HAVE AN OPA POLICY THAT CHECKS proxied-sansshell-identity IN GRPC METADATA. Using the interceptor without an additional authz check can let any caller assert any proxied identity, which can let a caller approve their own MPA requests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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