Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,20 @@ privileges:
earlier, whichever is shorter. Otherwise, set the duration of elevated
privileges to the session TTL.

### Setting when users can assume elevated privileges

When creating or reviewing Access Requests, you can specify the earliest time
Comment thread
EdwardDowling marked this conversation as resolved.
that a user can assume elevated privileges by using the `--assume-start-time`
flag. This flag is available for the
[`tsh request create`](../../reference/cli/tsh.mdx#tsh-request-create) and [`tsh request
review`](../../reference/cli/tsh.mdx#tsh-request-review) commands. The format accepted
is defined in [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339), e.g, `2023-12-12T23:20:50.52Z`.
The time specified must be in the future.

Reviewers can override this time when approving an Access Request.
If multiple reviewers override the start time, the most recent
override will be chosen.

### The `request.max_duration` field

The `max_duration` option indicates the maximum length of time that a user is
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/reference/cli/tsh.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ $ tsh request create [<flags>]
| `--request-ttl` | 1 hour | Relative duration like `5s`, `2m`, or `3h`, | Defines how long the Access Request will be in a `PENDING` state before becoming invalid |
| `--session-ttl` | Time left on current session | Relative duration like `5s`, `2m`, or `3h` | Defines how long the elevated session will be valid for |
| `--max-duration` | none | Relative duration like `5s`, `2m`, `3h`, or `7d` | Defines the maximum duration of the elevated session up to 7 days. The assigned role also must have `max_duration` option specified (optional) |
| `--assume-start-time` | none | String | Sets time roles can be assumed by requestor (RFC3339) |

<Admonition type="tip" title="Note">
The `--request-ttl` and `--session-ttl` values can not be greater than the
Expand Down Expand Up @@ -1018,6 +1019,7 @@ $ tsh request review [<flags>] <request-id>
| `--approve` | `false` | `true` or `false` | Review proposes approval |
| `--deny` | `false` | `true` or `false` | Review proposes denial |
| `--reason` | none | String | Review reason message |
| `--assume-start-time` | none | String | Sets time roles can be assumed by requestor (RFC3339) |

### Arguments

Expand Down