Skip to content

Commit

Permalink
Where to add the auth tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
piccadilly-circus authored Nov 4, 2024
1 parent a4998de commit c852932
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion user/enterprise/support-admin-tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,20 @@ Consider the following: The user gets suspended, e.g., in the GHE server (3rd-pa

Such a situation may be valid and desired. However, there are cases, like a person leaving a company or team, when it is simply a security matter to revoke all accesses for such users. Travis CI cannot react automatically since no automated notification has been sent out, e.g., the GHE server account is suspended. If you are considering a less drastic approach, you may consider manually [suspending a user](/user/enterprise/user-management/) instead of logging out and revoking all tokens.

Suspended users still have access to Travis CI via browser or travis-cli (assuming they have valid Travis access tokens present in these tools) but cannot trigger builds.
Suspended users still have access to Travis CI via browser or travis-cli (assuming they have valid Travis access tokens present in these tools) but cannot trigger builds.

### Auth tokens

Following environment variables are used to manage the life of token.

- `WEB_TOKEN_EXPIRES_IN_HOURS`
- `AUTH_TOKEN_EXPIRES_IN_DAYS`
- `AUTH_CLI_TOKEN_EXPIRES_IN_DAYS`

These tokens can be set using the admin console `kubectl kots admin-console -n tci-enterprise-kots` under the "Advanced Setting" menu.

## Re-accessing Travis CI
To re-access Travis CI, users must log in using a 3rd-party authenticator such as GitHub (browser, travis-cli), GitLab, or BitBucket (browser). Only with access can users see the private repositories, build history, build job logs, and obtain new Travis API tokens.

Please note: if such users (logged out and tokens revoked) are, e.g., suspended in the GHE server, they will be unable to successfully use their GHE server account to log into Travis CI UI or travis-cli.

0 comments on commit c852932

Please sign in to comment.