Skip to main content

File access control

Decides which files, documents, spaces or calendars a connector may return or mutate, by label, by container location, or by the resource's own id.

  • Control id: file_access
  • Shape: obligation. The own row and every matching binding union.
  • Entry points: token
  • Phases: introspect
  • Enforced at: gateway

Policy data​

pbac.operator.controls.file_access​

  • Role: operator
  • Written by: operator
  • Schema: src/main/resources/schemas/operator-file-access.v1.json
SettingTypeDefault
governedobjectnone in the schema
sources[].typestringnone in the schema
sources[].requiredarray of stringnone in the schema
sources[].blockedarray of stringnone in the schema
sources[].write_blockedarray of stringnone in the schema
sources[].defaultany JSON valuenone in the schema
allow_containersobjectnone in the schema

pbac.controls.file_access​

  • Role: projection
  • Written by: connectors
SettingTypeDefault
projection[].modeno schema for this rownone in the schema
projection[].id_argno schema for this rownone in the schema
projection[].read_scopeno schema for this rownone in the schema
projection[].write_scopesno schema for this rownone in the schema
projection[].items_pathno schema for this rownone in the schema
projection[].api_baseno schema for this rownone in the schema
projection[].typesno schema for this rownone in the schema
projection[].createno schema for this rownone in the schema
projection[].containerno schema for this rownone in the schema

Reads​

  • context.rs_context.resource_type
  • context.rs_context.scopes
  • context.rs_context.tool_arguments

Emits​

  • rs_obligations

Reason codes​

CodeCategoryEntry pointSetting
file_access:blocked_matchcontrolgatewaypbac.operator.controls.file_access#sources[].blocked
file_access:not_in_requiredcontrolgatewaypbac.operator.controls.file_access#sources[].required
file_access:deny_allmechanismgatewaynone

Implementation​

KindReferenceFilesRole
rego_packagepbac.controls.file_accessopa/policies/pbac/controls/file_access.regodecides
javacom.identos.pbac.gateway.obligations.fileaccess.FileAccessGuardsrc/main/java/com/identos/pbac/gateway/obligations/fileaccess/FileAccessGuard.javaenforces
javacom.identos.pbac.gateway.obligations.fileaccess.FileAccessFiltersrc/main/java/com/identos/pbac/gateway/obligations/fileaccess/FileAccessFilter.javaenforces
javacom.identos.pbac.gateway.obligations.fileaccess.FileAccessPredicatesrc/main/java/com/identos/pbac/gateway/obligations/fileaccess/FileAccessPredicate.javadecides