Dev URLs configuration

Hey Team, I am new to coder environment and I was exploring this feature called Dev URls. One of the use-cases in our org is to give developers capability to launch their workspaces (which has both BE and FE integrated) and available on a public accessible URL instead of port forwarding. Is this something which we can achieve by dev URLs ? If yes, how is the experience ? Will I get a URL by default anytime I launch a new workspace or do i need to do infra changes for every workspace i launch ? I went through this documentation but not very clear https://s.cdr.dev/docs/admin/devurls/ Thanks and looking forward
26 Replies
Codercord
Codercord2d ago
<#1297502991754072124>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys2d ago
hey @Nipun Agarwal Coder v1 has reached EoL, you should look into setting up v2!
Nipun Agarwal
Nipun Agarwal2d ago
aaah, in v2 do we have something like devUrls ? also I want to restrict downloading of files on my workspace. How can I do it ?
Phorcys
Phorcys2d ago
yes! not sure what you mean you can disable ssh but downloading files will always be possible in a way or another
Nipun Agarwal
Nipun Agarwal2d ago
Basically I have some sensitive code in the workspace that I don’t want anyone to access.. how should I restrict downloading ? If I just enable vsCode browser editor, is there any way to disable files download from that ? Is there any documentation that I can follow to setup ?
Phorcys
Phorcys2d ago
so basically you are the only one to have access to the workspace unless you explicitly share it so only you and the owner of the server (which I suppose is also you) will have access to it
Phorcys
Phorcys2d ago
Phorcys
Phorcys2d ago
all you need to do is set up a wildcard access url and it will enable port forwarding and coder_apps
Nipun Agarwal
Nipun Agarwal2d ago
thats true but the way I was thinking was when a remote developer launches a workspace, all the code will be cloned on the startup. The developer wont have direct code access. Now since they have ability to download files, they can still download code from there. I want to restrict this since we are a financial org
Phorcys
Phorcys2d ago
are you using a service account to clone the code?
Nipun Agarwal
Nipun Agarwal2d ago
yes
Phorcys
Phorcys2d ago
i see what you mean, you can restrict it/make it harder but since they're programming on it they will always be able to get a copy even if you disabled all downloading the code is still displaying on their machine so they can copy/paste it what i mean is that no matter how hard it is it'll always be possible and someone who wants to do it will likely do it
Nipun Agarwal
Nipun Agarwal2d ago
True, is there any way to make it harder though with current set of features ?
Phorcys
Phorcys2d ago
but in that case I would recommend blocking SSH in the template that way they can't use SFTP
Nipun Agarwal
Nipun Agarwal2d ago
how can I block SSH ?
Phorcys
Phorcys2d ago
but in terms of actually disabling it, it might be an enterprise feature
Nipun Agarwal
Nipun Agarwal2d ago
Got it, even if I disable SSH, someone can use web editor to download right ? VsCode gives that option 😅
Phorcys
Phorcys2d ago
yes and i mean since you clone the repo they might also be able to leak the token and download it themselves depending on how it's set up that's why I would still recommend using individual accounts (even if they don't have access to it), that way if they decide to go rogue, your audit logs will be clearer to analyze but I guess it's up to personal preference are you going to any conventions ? (e.g KubeCon, Open Source Summit, etc) we'll be at SRECon EMEA in 2 weeks
Nipun Agarwal
Nipun Agarwal2d ago
There must be some way right where I can use secrets in my terraform code to fetch this token on runtime and clone the repo during startup of the workspace ? Unfortunately no 😦 would love to catchup otherwise
Phorcys
Phorcys2d ago
oh yeah you can
Nipun Agarwal
Nipun Agarwal2d ago
Is there any documentation/resources that I can follow ? Since I am new to this Also circling back on this, I have set this variable and have wildcsrd domain too and have setup with nginx.. but when I port forward it still does on my local host, I am not getting any unique URL. Am I missing something ?
Phorcys
Phorcys2d ago
so you can either have users log in to their own git account via External Auth, which is usually what we recommend or if you want to use a specific secret then we recommend using a secrets store like HashiCorp Vault and the corresponding terraform provider could you show what you mean? like a screenshot or something
Nipun Agarwal
Nipun Agarwal2d ago
I am able to port forward on a public url now but getting this error when trying to open. I am using lets encrypt certificates with nginx reverse proxy. I followed this article https://coder.com/docs/tutorials/reverse-proxy-nginx
Use NGINX as a Reverse Proxy - Coder Docs
Learn how to use NGINX as a reverse proxy
From An unknown user
From An unknown user
No description
Atif
Atif2d ago
To prevent copying/pasting and probably downloading, you may look into using a secure browser with Coder. You will also need to disable ssh access to workspaces and only allow browser access using the secure browser. One possible method is using Island browser.
Want results from more Discord servers?
Add your server