-
|
Would port sharing solve you use case? For example, you could install the |
Beta Was this translation helpful? Give feedback.
-
|
We only set share as public. Easy! Thanks for the attention |
Beta Was this translation helpful? Give feedback.
-
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.
Uh oh!
There was an error while loading. Please reload this page.
-
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_tokenvia 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_tokenvia iframe:coder_session_tokenas 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/meand/api/v2/authcheckand return mock responses for401 Unauthorizederrors.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=truedisableWorkspaceAuth: trueThis 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