Skip to content

[ws-manager-mk2] Protect tokens #16763

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 14 commits into from
Closed

[ws-manager-mk2] Protect tokens #16763

wants to merge 14 commits into from

Conversation

Furisto
Copy link
Member

@Furisto Furisto commented Mar 9, 2023

Description

Store sensitive workspace data (tokens) in short lived Kubernetes secrets. When a workspace start is requested we create a secret (named workspaceid-tokens) that contains the tokens extracted from the content initializer. The tokens will be removed from the content initializer.

The secret itself will live in a separate namespace so that we can narrow down the scope of permissions we need to give to ws-daemon so that it can access the secrets. When the content init happens in ws-daemon the secrets will be injected into the initializer again and the secret will be deleted once the workspace reaches the running phase but latest when it reaches the stopped phase.

Related Issue(s)

n.a.

How to test

  • Open workspace for a private repository

Release Notes

None

Build Options:

  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
    leeway-target=components:all
  • /werft no-test
    Run Leeway with --dont-test
Publish Options
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer Options
  • with-ee-license
  • with-dedicated-emulation
  • with-ws-manager-mk2
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated

Preview Environment Options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-fo-protected-tokens-3.3 because the annotations in the pull request description changed
(with .werft/ from main)

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-fo-protected-tokens-3.5 because the annotations in the pull request description changed
(with .werft/ from main)

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-fo-protected-tokens-3.7 because the annotations in the pull request description changed
(with .werft/ from main)

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-fo-protected-tokens-3.8 because the annotations in the pull request description changed
(with .werft/ from main)

@Furisto Furisto force-pushed the fo/protected-tokens-3 branch from 67cc554 to dcb21e0 Compare March 10, 2023 11:22
@Furisto Furisto force-pushed the fo/protected-tokens-3 branch from 207271c to ae62756 Compare March 10, 2023 12:31
@Furisto Furisto force-pushed the fo/protected-tokens-3 branch from ae62756 to 8389e32 Compare March 10, 2023 12:32
@Furisto
Copy link
Member Author

Furisto commented Mar 10, 2023

Closed in favor of #16806

@Furisto Furisto closed this Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants