Skip to content

Commit

Permalink
doc: acl
Browse files Browse the repository at this point in the history
  • Loading branch information
vcastellm committed Oct 6, 2024
1 parent a9c0b44 commit 8e868c5
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions website/docs/pro/acls.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,56 @@ Check the full documentation on all the available ACL management commands.

### Use the readonly policy

```json
{
"path": {
"/v1/members": {
"capabilities": ["read"]
},
"/v1/jobs": {
"capabilities": [
"list",
"read"
]
},
"/v1/jobs/*": {
"capabilities": [
"read"
]
},
"/v1/jobs/*/executions*": {
"capabilities": ["read"]
},
"/v1/jobs/*/executions/*": {
"capabilities": ["read"]
},
"/v1/leader": {
"capabilities": ["read"]
},
"/v1/isleader": {
"capabilities": ["read"]
},
"/v1/busy": {
"capabilities": ["read"]
}
}
}
```

Write the readonly file content json to a local file named `readonly.json` and create the readonly policy:

```
dkron acl policy apply --name readonly --rules-file ./readonly.json
```


Create a new token for a readonly user:

```
dkron acl token create --name alice --type client --policy readonly
```

Handle the details to the user.

## Disable ACLs

Expand Down

0 comments on commit 8e868c5

Please sign in to comment.