Is it possible to disable workspace auth? #16745
Answered
by
gskolber
gskolber
asked this question in
Workspace Provisioning & Templates
Replies: 3 comments 1 reply
-
Would port sharing solve you use case? For example, you could install the |
Beta Was this translation helpful? Give feedback.
0 replies
-
We only set share as public. Easy! Thanks for the attention |
Beta Was this translation helpful? Give feedback.
0 replies
-
module "code-server" {
source = "./code-server"
agent_id = coder_agent.main.id
script_name = data.coder_parameter.script_name.value
attempt_id = data.coder_parameter.attempt_id.value
share = "public"
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
matifali
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary:
We are using Coder to provision VSCode instances for programming tests, and we need a way to disable workspace authentication in these environments. While we understand this may not be a current priority, we’d like to know if there’s a native solution for this, as we haven’t found anything in the documentation. We've already tried several approaches, including passing the
coder_session_token
via an iframe, but the session doesn’t seem to persist.Our Use Case:
We are using Coder to provision environments for programming tests. These are isolated, temporary environments specifically created for test-takers. In these cases, authentication becomes a blocker, as the participants don’t need to go through the standard authentication process.
What We Have Tried:
Passing
coder_session_token
via iframe:coder_session_token
as a query parameter in the iframe to persist the session, but it appears that the session does not persist when loading the environment via an iframe.Reverse Proxy-Based Bypass Using NGINX:
/api/v2/users/me
and/api/v2/authcheck
and return mock responses for401 Unauthorized
errors.Manual Adjustments to Authentication Logic:
Proposed Solution:
We’re wondering if there’s a native solution for bypassing authentication in these specific use cases, such as a configurable flag or environment variable. Something like:
DISABLE_WORKSPACE_AUTH=true
disableWorkspaceAuth: true
This would allow us to:
Note:
We understand that implementing this feature might not be a priority at this time. However, it would be helpful to know if there’s already an existing way to achieve this, as we couldn’t find anything in the documentation.
Beta Was this translation helpful? Give feedback.
All reactions