-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Extension secrets are lost on workspace restart #22837
Comments
@vitaliy-guliy could you please provide investigation details why secrets are not working correctly in che-code? |
It's a copy of my comment from https://issues.redhat.com/browse/CRW-5942 Having investigated a bit I can say that if we clone vscode or che-code sources, build web version as it is and run, the secrets will not be persisted because it is configured to save them in memory. What can we do here to make secrets persisted?
From the technical side, I see it is possible to configure the secret storage provider here
From my point of view, storing secrets as a kubernetes secret will be most secure option an if it is necessary, the secrets could be shared between workspaces. |
Describe the bug
Some extensions are using Secrets Plugin API https://code.visualstudio.com/api/advanced-topics/remote-extensions#persisting-secrets
Seems at the moment secrets are not persisted to the file system / secret storage and appeared to be lost when workspace restart.
Che version
7.81@latest
Steps to reproduce
I prepared a simple extension to test the bug https://github.com/vitaliy-guliy/vscode-test-extension/tree/persisting-secrets
To test you need:
Expected behavior
Secrets must be persisted
Runtime
other (please specify in additional context)
Screenshots
No response
Installation method
other (please specify in additional context)
Environment
other (please specify in additional context)
Eclipse Che Logs
No response
Additional context
Dev Spaces JIRA - https://issues.redhat.com/browse/CRW-5942
The text was updated successfully, but these errors were encountered: