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
When running opencode serve with OPENCODE_SERVER_PASSWORD the health check endpoint (/global/health) needs authentication.
That's not expected and doesn't follow standard practices in the industry.
I could help fix the issue if you are interested in it.
Plugins
No response
OpenCode version
No response
Steps to reproduce
Deploy opencode serve with OPENCODE_SERVER_PASSWORD envar value
Check endpoint /global/health, you will require basic auth.
All these issues stem from the same root cause: HTTP Basic Auth middleware is being applied too broadly and blocks endpoints/resources that shouldn't require authentication (health checks, static assets, CORS preflight requests, plugin API calls, etc.)
Feel free to ignore if this specific case differs from those listed above.
We're deploying OpenCode to EKS with an ALB ingress. The health check (/global/health) being password-protected blocks ALB health checks - the load balancer can't authenticate.
Workaround suggested: Use nginx sidecar for auth, keeping OpenCode unauthenticated internally. This pattern is common in k8s deployments:
Nginx handles external auth + TLS termination
OpenCode runs without credentials inside the cluster
Is there appetite for a PR implementing nginx sidecar auth example in the Helm chart? Or any alternative approaches you'd recommend?
Activity
github-actions commentedon Feb 9, 2026
This issue might be a duplicate of existing issues. Please check:
All these issues stem from the same root cause: HTTP Basic Auth middleware is being applied too broadly and blocks endpoints/resources that shouldn't require authentication (health checks, static assets, CORS preflight requests, plugin API calls, etc.)
Feel free to ignore if this specific case differs from those listed above.
j4ckstraw commentedon Mar 16, 2026
+1
m2kar commentedon Mar 20, 2026
+1
levmichael3 commentedon Apr 13, 2026
We're deploying OpenCode to EKS with an ALB ingress. The health check (
/global/health) being password-protected blocks ALB health checks - the load balancer can't authenticate.Workaround suggested: Use nginx sidecar for auth, keeping OpenCode unauthenticated internally. This pattern is common in k8s deployments:
Is there appetite for a PR implementing nginx sidecar auth example in the Helm chart? Or any alternative approaches you'd recommend?
iv0 commentedon Apr 19, 2026
+1
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.