Coder.com

C

Coder.com

Community server for Coder.com, an open-source platform for cloud development environments.

Join

Anyone can access cursor workspace connection URL

Hi Team, I was exploring coder and we are mostly done with setting up all our workflows on this. I was doing a security review of it, and realised anyone can access cursor workspaces URL in the form of cursor://coder.coder-remote/open?owner=nipun&workspace=brown-crow-66&url=https:/coder.example.com&token=$SSH_TOKEN. How do we think about securing this ? What are the in-general best practices in securing the access to your workspaces ? Thanks and looking forward...

Set zsh as default shell

I'm just getting started with coder.com - another team at my company set up an instance. I tried using chsh to switch my default shell to zsh, but new vscode sessions are still using bash. Restarting the workspace reset the shell to bash again. What's the recommended way to get my shell to zsh by default? Will I need to build my own workspace AMI or something? Thanks in advance!

Kasm template / module

Hi I was trying to the kasm module and desktop enterprise container within envbox template. I can get the kasmvnc screen to come up but it always says cannot connect to server. ...

Workspaces slower when accessed on home network?

I've been working with Coder for a couple of days now. It's running on a single board computer that's on my home network. It seems that workspaces I'm connected to while I'm within my home network react slower than if I'm connecting away frome home. Is there some caveat or other way of connecting that I should prefer if I'm actually at home? Maybe a configuration? These would be docker template based workspaces that I'm connecting to with VS Code Desktop.

Running Next.js development server in a Coder instance... is there a best practice?

Having trouble with the path - by default Next is looking at the root of the domain for it's built files (scripts, etc). Has anyone solved this?

Can we delete multiple workspace in one CLI Command ?

I need suppressing automatically multiple workspace in same time. I know the command to delete one workspace is
coder delete [workspace-id(username/workspacename)] --yes
coder delete [workspace-id(username/workspacename)] --yes
but to delete multiple workspace I did found.... Someone can help me please ?

Workspace stuck on loading

i am creating a proof on concept for coder, I have it on a debian on dedicated server, I am exposing coder directly via https + zerossl certificate. Workspaces always loading, nothing is displayed then I get Workspace is unhealthy Your workspace is running but 1 agent is unhealthy I really appreciate help in fixing this issue and many thanks in advance you all...
No description

Error when building workspace with parametrized OpenStack provider using coder parameters

Hi, when I use coder parameters to parametrize OpenStack provider like this: ``` provider "openstack" { application_credential_id = data.coder_parameter.application_credential_id.value application_credential_name = data.coder_parameter.application_credential_name.value...

how to use files in script after cloning a repository?

I'd like to use some files that comes from a repository. The ideal use case is: - clone the repository, using module "git-clone" - use a file from this repository as the script parameter of resource "coder_script"...

Specifying command for running coder-based deployment

Hi there. I'm going to create python-based service for kubernetes using coder. I created template with deployment and specified the following parameters: resource "coder_agent" "main" { ... startup_script = "pip install requests"...

external auth to be able to clone a repository from GitHub or GitLab

From what I read in https://coder.com/docs/admin/external-auth it is possible to authenticate users through their GitHub credentials. But what if I just need them to authenticate to be able to clone a repository? I don't want to create an app or a token on my account for them to be able to clone. Did I misunderstand something?...

initializeCommand not executed in envbuilder

I have the below configuration on the devcontainer.json file and I want to run some scripts before dockerbuild starts but the "initializeCommand" is not executed when the container is started. ``` { "name": "poc", "initializeCommand": "bash .devcontainer/update.sh",...

Access Coder Locally

I am trying to run Coder behind a school firewall. I am trying the —access-url flag, and set it to the same IP address as the box it is running on. It seemingly starts fine, but I can not access it when I go to the local URL. How do you change the “HTTP Listener”, since it is still pointing to 127.0.0.1? ...
No description

deploy coder_agent with for_each loop

hi there, i'm trying to deploy coder_agent with a for_each loop, but when it's deploying i receive this error "duplicate agent name", but is not any "name" parameter at resource "coder_agent", any idea to fix this? kind regards! `resource "coder_agent" "platform" { for_each = local.enabled_platform os = "linux"...

Angular and Coder

Greetings, I have coder v2 deployed on a docker container in on-premises server. Everything works but when I run the angular application none of the angular scripts are loaded and I get : Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec. The baseref is ./. I tried looking online but can't really find anything on how to configure angular to work on coder. Interestingly the same project works fine on the linuxserver coder implementation....

Db Templates

does anyone know any db templates that keeps the db even after a restart

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/ ...

Create template by zip upload hangs

Hi, any idea why create template by upload doesn't work and loops in the loading state? Thanks
No description

State management, external backend?

Hi everyone, how does coder manage the terraform state of its workspaces? Is it stored in the Postgres database? Is there any option of them being stored externally, such as S3?