Skip to content

feat: encrypt oidc and git auth tokens in the database #7959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
gen
  • Loading branch information
kylecarbs committed Jun 12, 2023
commit faa20ad5426b787c11fdb8f12241d3247f7f79d7
3 changes: 3 additions & 0 deletions coderd/apidoc/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions coderd/apidoc/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/api/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
"disable_path_apps": true,
"disable_session_expiry_refresh": true,
"experiments": ["string"],
"external_token_encryption_key": "string",
"git_auth": {
"value": [
{
Expand Down
3 changes: 3 additions & 0 deletions docs/api/schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -1894,6 +1894,7 @@ CreateParameterRequest is a structure used to create a new parameter value for a
"disable_path_apps": true,
"disable_session_expiry_refresh": true,
"experiments": ["string"],
"external_token_encryption_key": "string",
"git_auth": {
"value": [
{
Expand Down Expand Up @@ -2239,6 +2240,7 @@ CreateParameterRequest is a structure used to create a new parameter value for a
"disable_path_apps": true,
"disable_session_expiry_refresh": true,
"experiments": ["string"],
"external_token_encryption_key": "string",
"git_auth": {
"value": [
{
Expand Down Expand Up @@ -2429,6 +2431,7 @@ CreateParameterRequest is a structure used to create a new parameter value for a
| `disable_path_apps` | boolean | false | | |
| `disable_session_expiry_refresh` | boolean | false | | |
| `experiments` | array of string | false | | |
| `external_token_encryption_key` | string | false | | |
| `git_auth` | [clibase.Struct-array_codersdk_GitAuthConfig](#clibasestruct-array_codersdk_gitauthconfig) | false | | |
| `http_address` | string | false | | Http address is a string because it may be set to zero to disable. |
| `in_memory_database` | boolean | false | | |
Expand Down
9 changes: 9 additions & 0 deletions docs/cli/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,15 @@ Expose the swagger endpoint via /swagger.

Enable one or more experiments. These are not ready for production. Separate multiple experiments with commas, or enter '\*' to opt-in to all available experiments.

### --external-token-encryption-key

| | |
| ----------- | ------------------------------------------------- |
| Type | <code>string</code> |
| Environment | <code>$CODER_EXTERNAL_TOKEN_ENCRYPTION_KEY</code> |

Encrypt OIDC and Git authentication tokens with AES-256-GCM in the database. The value must be a base64-encoded key.

### --provisioner-force-cancel-interval

| | |
Expand Down