C
Coder.com6mo ago
Coda

Coder with cloudflare tunnels + cloudflare access?

I have seen the other thread on this, was just curious if anyone got this to work with cloudflare access for access. if not, tis fine. thanks!
6 Replies
Codercord
Codercord6mo ago
<#1245241146985283645>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Coda
CodaOP6mo ago
websocket in health shows a warning because cloudflare spits back the auth page instead of letting it through (code 200)
bodak
bodak6mo ago
We'd be very interested in this as well and have this on the backlog. I'd think it would either be (1) https://developers.cloudflare.com/cloudflare-one/identity/service-tokens/ or (2) some form of CF / VPC solution between instances and coder server to bypass the auth.
Cloudflare Docs
Service tokens · Cloudflare Zero Trust docs
You can provide automated systems with service tokens to authenticate against your Zero Trust policies. Cloudflare Access will generate service tokens …
Phorcys
Phorcys6mo ago
hey all, this message from Ben should be able to help you out https://discord.com/channels/747933592273027093/1087808902520918016/1088221533958324285 cc: @Coda @bodak context in that thread can also help
bodak
bodak6mo ago
Thanks, I've seen the CODER_HEADER environment variable. Can you add multiple values? i.e. curl -H "CF-Access-Client-Id: <CLIENT_ID>" -H "CF-Access-Client-Secret: <CLIENT_SECRET>" https://app.example.com
Phorcys
Phorcys6mo ago
if you use the Coder CLI you can pass the --header flag multiple times, I assume that if you want to do the same with the environment variable you'll have to use a line break per key=value pair. otherwise you can use the --header-command flag/CODER_HEADER_COMMAND environment variable.
Want results from more Discord servers?
Add your server