api

package
v0.2202.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package api defines the common gRPC policy service and data structures.

Index

Constants

View Source
const (
	// ForwardedSubjectMD is name of the metadata field in which the actual
	// subject should be passed in case sentry forwarded the request.
	ForwardedSubjectMD = "forwarded-subject"
)

Variables

This section is empty.

Functions

func SubjectFromGRPCContext

func SubjectFromGRPCContext(ctx context.Context) (string, error)

SubjectFromGRPCContext tries to extract subject from TLS Certificate provided in the gRPC context.

Types

type PolicyWatcher

type PolicyWatcher interface {
	// PolicyUpdated updates policies.
	PolicyUpdated(service grpc.ServiceName, accessPolicies map[common.Namespace]accessctl.Policy)
}

PolicyWatcher is a policy watcher interface.

Jump to

Keyboard shortcuts

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