Skip to content

Example DPO Policy

This example DPO policy is a simple policy that allows a DPO to view all data in the organization, created from the flowcore cli. (See IAM for more information on how to create a policy)

dpo-policy.yaml
apiVersion: iam.flowcore.io/v1
kind: Policy
metadata:
name: dpo-access-policy
tenant: <tenant-name>
spec:
version: "1.0.0"
description: "Data Protection Officer access to the <tenant-name> tenant"
policyDocuments:
- resource: "frn::<tenant-name>:*"
action:
- "sensitive-data-fetch"
---
apiVersion: iam.flowcore.io/v1
kind: RoleBinding
metadata:
name: dpo-access-policy-binding
tenant: <tenant-name>
spec:
role: dpo-role
subjects:
- type: user
id: <user-id>
---
apiVersion: iam.flowcore.io/v1
kind: Role
metadata:
name: dpo-role
tenant: <tenant-name>
spec:
version: "1.0.0"
description: "Role to PII access to the DPO to the <tenant-name> tenant"
policies:
- dpo-access-policy

then run the following command to create the policy:

Terminal window
flowcore apply -f dpo-policy.yaml --v2