Policies
Policies are the fundamental building blocks of permissions in Flowcore. A policy defines:
- What actions can be performed (e.g.,
read
,write
,fetch
,ingest
) - On which resources, can be a specific resource (FRN) or a wildcard (
frn::<tenant>:<resource-type>/<resource-id>
,frn::<tenant>:<resource-type>/*
) - Principal (who is allowed to perform the action, this is a frn to another role, can be in the same tenant or a different tenant)
You can define a policy with the Flowcore CLI, or via the API.
Example Policy
Here’s an example of a policy that allows read and write access to all resources in a tenant:
Policy Binding
Here’s an example of a policy binding that binds the policy to a user and an API key:
Specific Resource Access
Here’s an example of a policy that allows read access to a specific resource:
Multi Resource Access
Here’s an example of a policy that allows read and fetch access to multiple resources: