Just to need to confirm the behaviour of CODER_BROWSER_ONLY

I suspect I know the answer to this, but is the intended behaviour of the CODER_BROWSER_ONLY envvar (--browser-only flag) to prevent port-forwarding to webapps running in my engineer's workspaces?
13 Replies
Codercord
Codercord•3w ago
<#1335910322069962803>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
simonjefford
simonjeffordOP•3w ago
My guess is yes, otherwise engineers would just run sshd, but I just wanted to confirm.
zounce
zounce•3w ago
simonjefford
simonjeffordOP•3w ago
Ok. The reason I ask is we enabled that switch over the weekend, and now my engineers are shouting at us because they can't reach their services in dev via port forwarding. Are you saying there's possibly a fix for this?
zounce
zounce•3w ago
If they're port-forwarding via the CLI, that being blocked would make sense to me. What about if they port forward from the browser?
No description
simonjefford
simonjeffordOP•3w ago
Following those links results in 502 - Bad Gateway Actually, it doesn't. 😄 Sorry, just sorting through all the reports. I think the "access a frontend I'm working on" scenario works fine from that dashboard UI. The complaints are coming from engineers trying to expose gRPC services.
zounce
zounce•3w ago
gRPC over HTTP/2 should work w/ web port-forwarding. Are these engineers seeing 502s, if so, is there an error message with that 502?
simonjefford
simonjeffordOP•3w ago
Let me get back to you. Lots of conflicting reports from engineers. 😄 OK. gRPC users are reporting 464 which I think is an Amazon LB issue.
zounce
zounce•3w ago
That makes sense. Make sure they're getting HTTP/2 all the way through to Coder. IIRC another customer had their LB downgrading the connection to HTTP/1.1, causing problems
simonjefford
simonjeffordOP•3w ago
So I think the only use case I haven't covered off with them are tools that aren't HTTP based at all - some teams were using local tools to query databases in their workspaces. I'm guessing there we're out of luck?
zounce
zounce•3w ago
I believe so :( but don't quote me on that
Phorcys
Phorcys•3w ago
pretty much, because for this type of use-case you'd need access outside of the browser closing this one out as Ethan has answered your question, feel free to reopen at any time though :-)
Codercord
Codercord•3w ago
@Phorcys closed the thread.

Did you find this page helpful?