Skip to content

Commit

Permalink
Poprawki od Rafała (#8)
Browse files Browse the repository at this point in the history
* Update README.md
  • Loading branch information
Kivlov84 authored May 18, 2023
1 parent c00aa3a commit 0bcab18
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ To create short-lived tokens, you first need to configure a [root token in Buddy
<img src="/root-token-config.png" width="450">

>**Note**
> You can fortify your tokens by allowing access from selected IP's and/or workspace domains.
>You can fortify your tokens by allowing access from selected IP's and/or workspace domains.
>**Warning**
>It is not possible to set `ip_restrictions` and `workspace_restrictions` in the vault token if they are already defined in the root token – the restrictions are automatically inherited from root to child tokens.
### Saving to vault

Expand Down Expand Up @@ -85,8 +88,8 @@ Available options:
- `ttl` – the default lease time for the generated token after which the token is automatically revoked. If not set or set to `0`, system default is used.
- `max_ttl` – the maximum time the generated token can be extended to before it eventually expires. If not set or set to `0`, system default is used.
- `scopes` – the [list of scopes](https://buddy.works/docs/api/getting-started/oauth2/introduction#supported-scopes) in the role, comma-separated.
- `ip_restrictions` – the list of IP addresses to which the token is restricted, comma-separated.
- `workspace_restrictions` – the list of workspace domains to which the token is restricted, comma-separated.
- `ip_restrictions` – the list of IP addresses to which the token is restricted, comma-separated. Leave blank if already defined in the root token (the restrictions are automatically inherited).
- `workspace_restrictions` – the list of workspace domains to which the token is restricted, comma-separated. Leave blank if already defined in the root token (the restrictions are automatically inherited).

### Generating role credentials

Expand Down Expand Up @@ -121,7 +124,3 @@ To save the token into an environment variable, run
```sh
$ TOKEN=$(vault read -format=json buddy/creds/r1 | jq -r .data.token)
```




0 comments on commit 0bcab18

Please sign in to comment.