Skip to main content

Resource type registry

Admits only resource and RAR intent types the platform knows, so that every admitted type can have policy hooked off it.

  • Control id: resource_registry
  • Shape: deny. Segment bindings do not reach this control, because its Rego does not read settings through pbac.segments.settings.
  • Entry points: register

Policy data​

pbac.operator.controls.resource_registry​

  • Role: operator
  • Written by: operator
  • Schema: src/main/resources/schemas/operator-resource-registry.v1.json
SettingTypeDefault
resource.typesobjectnone in the schema
rar.typesobjectnone in the schema

Reads​

  • request.software_statement.granted_resources
  • request.software_statement.resources

Emits​

  • deny
  • reason
  • deny_reasons

Reason codes​

CodeCategoryEntry pointSetting
invalid_resource_typecontrolregisterpbac.operator.controls.resource_registry#resource.types

Implementation​

KindReferenceFilesRole
rego_inlineoauth.registeropa/policies/oauth/register.regodecides
rego_packageoauth.client_entitlementsopa/policies/oauth/client_entitlements.regodecides
rego_packageoauth.evaluationsopa/policies/oauth/evaluations.regodecides
rego_readerpbac.operator.controls.resource_registryopa/policies/oauth/resource_registry.regoreads