You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: coder agent-firewall needs a user session inside workspaces, and the docs and module don't say so #32100
Related: coder/registry#794, which was closed when the claude-code module stopped launching the firewall. The underlying requirement was never documented or changed.
You are not logged in. Try logging in using '…/coder-no-caps login <url>'
coder agent-firewall checks the FeatureBoundary entitlement in verifyLicense via r.InitClient(inv). That needs a user session. A workspace normally only has its agent token, so the check fails unless the owner has run coder login in the workspace or a session token is injected.
As a result, a template built by following the module README fails to start the firewalled app, and the error points to an interactive login that isn't practical for startup scripts, apps, or automated tasks.
Neither the module README nor docs/ai-governance/agent-firewall/ mentions that a user session is required.
Expected Behavior
One of:
The entitlement check works with the workspace agent token (preferred, so no user credential is needed inside the workspace), or
The module README and Agent Firewall docs clearly state the requirement and show a supported way to provide credentials (for example CODER_URL and CODER_SESSION_TOKEN = data.coder_workspace_owner.me.session_token), including the security trade-off of exposing the owner's session token to the firewalled process.
The error message should also explain that the firewall needs a Coder session for its license check, not just suggest an interactive login.
Steps to Reproduce
On a Premium deployment, create a template that uses registry.coder.com/coder/agent-firewall/coder as shown in the module README (for example the "As a Coder app" or "As an automated task" examples).
Start a workspace without running coder login inside it.
Launch the firewalled app or script.
The wrapper exits with the "You are not logged in" error and the app doesn't start.
Environment
Coder version: reproduced by a user on a recent release; the code path is unchanged on main as of 2026-11-12.
Activity
linear-code commentedon Nov 12, 2026
ENG-3535