Documentation ¶
Overview ¶
Package rbac implements Envoy XDS RBAC policies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthenticatedPrincipal ¶ added in v0.7.0
GetAuthenticatedPrincipal returns an authenticated RBAC principal object for the given principal
func GetDestinationPortPermission ¶ added in v0.7.0
func GetDestinationPortPermission(port uint32) *xds_rbac.Permission
GetDestinationPortPermission returns an RBAC permission for the given destination port
Types ¶
type Policy ¶
Policy is a type used to represent an RBAC policy with rules corresponding to Principals and their associated Permissions
type Rule ¶
type Rule struct { Attribute RuleAttribute Value string }
Rule is a type that can represent a policy's Permission and Principal rules
type RuleAttribute ¶
type RuleAttribute string
RuleAttribute is the key used for the name of an attribute in a policy Rule
const ( // DestinationPort is the key used for the destination port as a permission in a policy Rule DestinationPort RuleAttribute = "destinationPort" )
Supported attributes for an RBAC permission
const ( // DownstreamAuthPrincipal is the key used for the name of the downstream principal in a policy Rule DownstreamAuthPrincipal RuleAttribute = "downstreamAuthPrincipal" )
Supported attributes for an RBAC principal
Click to show internal directories.
Click to hide internal directories.