Permissions
Permissions are the security permissions and capabilities that can be used in a policy pack.
Purpose
Section titled “Purpose”Permissions are used to define the security permissions and capabilities that can be used in a policy pack. This includes access to the filesystem and network. Permissions are defined in the sentrie.pack.toml file in the permissions section.
By default, policies and it’s modules have access to
- the filesystem rooted at the policy pack root
- no network access.
- no access to the environment variables.
Syntax
Section titled “Syntax”[permissions]fs_read = ["/etc/passwd"]net = ["example.com"]env = ["ORG_DSN", "REDIS_PASSWORD"]In the above example, the policy pack has
- read access to the
/etc/passwdfile - network access to
http://example.com - access to the
ORG_DSNandREDIS_PASSWORDenvironment variables.