2
0

doc.go 464 B

123456789101112
  1. /*
  2. Package policy provides methods for parsing RBAC policies to determine if a user
  3. has access to a given resource.
  4. TODO: more details about policy trees + "MostRestrictiveParent" + "LeastRestrictiveSibling"
  5. Caveats:
  6. - one policy document to match the entire action
  7. - list/create are not resource-specific actions, so granting list/create permissions for a scope
  8. means that a user can list all resources or create a new resource in that scope.
  9. */
  10. package policy