forked from go-vela/docs-old
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(installation): docs for token manager + private key (go-vela#349)
- Loading branch information
Showing
2 changed files
with
67 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: "Token Manager" | ||
linkTitle: "Token Manager" | ||
description: > | ||
This section contains information on the token manager component for the Vela server. | ||
--- | ||
|
||
This component is responsible for generating and validating JWT tokens shared between the Vela server, workers, and users based off the configuration provided. | ||
|
||
The token manager is designed to ensure secure interactions with the server and protect build resources. | ||
|
||
|
||
## Configuration | ||
|
||
The following options are used to configure the component: | ||
|
||
| Name | Description | Required | Default | Environment Variables | | ||
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -------- | --------- | --------------------------------------------- | | ||
| `vela-server-private-key` | private key used for signing and validating all JWT tokens | `true` | `N/A` | `VELA_SERVER_PRIVATE_KEY` | | ||
| `user-access-token-duration` | maximum duration of time a Vela access token for a user is valid on the server | `true` | `15m` | `VELA_USER_ACCESS_TOKEN_DURATION`<br>`USER_ACCESS_TOKEN_DURATION` | | ||
| `user-refresh-token-duration` | maximum duration of time a Vela refresh token for a user is valid on the server | `true` | `8h` | `VELA_USER_ACCESS_TOKEN_DURATION`<br>`USER_ACCESS_TOKEN_DURATION` | | ||
| `build-token-buffer-duration` | maximum duration of time a Vela build token for a build extends beyond the repo build limit to maintain validity on the server | `true` | `5m` | `VELA_BUILD_TOKEN_BUFFER_DURATION`<br>`BUILD_TOKEN_BUFFER_DURATION` | | ||
|
||
{{% alert title="Note:" color="primary" %}} | ||
For more information on these configuration options, please see the [server reference](/docs/installation/server/reference/). | ||
{{% /alert %}} |