Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Describe changing default OPA permissions #6294

Merged
merged 1 commit into from
Jun 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions site/content/en/docs/administration/advanced/iam_system_roles.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,17 @@ weight: 70
<!--lint disable heading-style-->

## System roles

By default CVAT users can be assigned to one of the following groups: `admin`, `business`, `user` and `worker`.

Each of these groups gives a set of permissions.
TBD

## Changing permissions

System permissions are defined using `.rego` files stored in `cvat/apps/iam/rules/`.
Rego is a declarative language used for defining OPA policies.
It's syntax is defined in [OPA docs](https://www.openpolicyagent.org/docs/latest/policy-language/).

After changing the `.rego` files, you need to rebuilt and restart the docker compose for the changes to take effect.
In this case you need to include `docker-compose.dev.yml` compose config file to `docker compose` command.