Documentation
¶
Overview ¶
Package gcsboundary turns actor grants into the Credential Access Boundary rules a downscoped GCS token carries. One rule per grant, each limited to its bucket and an object-name prefix.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromGrants ¶
func FromGrants(grants []actorscope.Grant) ([]downscope.AccessBoundaryRule, error)
FromGrants builds the rules. Each grant's prefix must be a gs:// prefix. The condition's path ends in "/", so a match cannot spill into a sibling whose name merely starts the same way. No objectListPrefix term is added: the node plugin never lists objects. downscope.NewTokenSource enforces the rule count, between one and ten, see https://docs.cloud.google.com/iam/docs/downscoping-short-lived-credentials.
Types ¶
This section is empty.