Replies: 2 comments
-
This is a really interesting question and use case. Let's see if @bpmct @code-asher or @jawnsy have any thoughts. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think the closest thing we have is that we store query variables in the config file so they can be used by local processes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a code-server running with some shared pieces of code, e.g. to manage our infrastructure as code setup. While there is no real concurrent use, a few of us use it to update the infrastructure.
Right now, we interact with services via our JWT based authentication layer, which is also in front of the code server instance. Meaning the request to code server has an Authorization header.
The code inside code-server, also needs that JWT token of the user browsing to it, to interact with other services.
Not sure how this could work, but it would be awesome if these headers could be transformed in some way to an env variable that the infra code could pick up from the terminal environment.
The reason I do not want to use a code-server per user, is that this would involve more resources, and making sure that nobody forgets to sync the git repo in code server before they deploy.
Not sure this is even possible, expect if the webserver service code server could modify the global environment, but at the same time I'm unclear on how the terminal inside codeserver actually instantiates/works.
Beta Was this translation helpful? Give feedback.
All reactions