For the coder install into EKS, how do I set the initial admin credentials? I cannot log in.

I have installed Coder into my EKS cluster and have the page up and ready but I have no idea what the login is (i dont see any secrets in K8S holding it) and I dont know what the initial values would be if there was a default.
21 Replies
Codercord
Codercord2mo ago
<#1344128583488114819>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
meatbaker33w
meatbaker33wOP2mo ago
I tried setting the following:
superAdmin:
passwordSecret:
name: coder-super-admin-password
superAdmin:
passwordSecret:
name: coder-super-admin-password
I verified that the secret has a password field and I know what it decodes to. I still cannot login with the password. Admin is the username I am using.. I hope thats correct. No errors in the pod except my auth failures.
2025-02-26 17:08:43.583 [WARN] (api) <./product/coder/service/coderd/logger.go:142> (*API).InitHTTPRoutes.Middleware.func13.1 POST {"host": "coder.dpg-solutions.com", "path": "/auth/basic/login", "proto": "HTTP/1.1", "remote_addr": "10.10.1.84", "took": "1.050499037s", "status_code": 401, "latency_ms": 1050} ...
"response_body": {
"error": {
"msg": "Incorrect login. Verify that the login and password are correct, or contact your Administrator.",
"code": "empty"
}
}
2025-02-26 17:08:43.588 [INFO] (api) <./product/coder/pkg/access/audit/audit.go:164> CommitLog.func1 AUDIT {"audit_log": {"time": "2025-02-26T17:08:42.53526Z", "user": {"id": "admin", "name": "admin", "username": "", "roles": ["site-admin"], "avatar_hash": "ab2f9f305ce6609d6d650e63a0ea4ad9a7f48d8396c4aa34579088385f0587a5", "email": "admin", "created_at": "2025-02-26T16:20:07.451269Z", "updated_at": "2025-02-26T16:20:08.579335Z"}, "user_agent": {"ip_address": "10.10.1.84", "os": "Windows 10", "browser": "Chrome 133.0.0", "device": "Other"},
2025-02-26 17:08:43.583 [WARN] (api) <./product/coder/service/coderd/logger.go:142> (*API).InitHTTPRoutes.Middleware.func13.1 POST {"host": "coder.dpg-solutions.com", "path": "/auth/basic/login", "proto": "HTTP/1.1", "remote_addr": "10.10.1.84", "took": "1.050499037s", "status_code": 401, "latency_ms": 1050} ...
"response_body": {
"error": {
"msg": "Incorrect login. Verify that the login and password are correct, or contact your Administrator.",
"code": "empty"
}
}
2025-02-26 17:08:43.588 [INFO] (api) <./product/coder/pkg/access/audit/audit.go:164> CommitLog.func1 AUDIT {"audit_log": {"time": "2025-02-26T17:08:42.53526Z", "user": {"id": "admin", "name": "admin", "username": "", "roles": ["site-admin"], "avatar_hash": "ab2f9f305ce6609d6d650e63a0ea4ad9a7f48d8396c4aa34579088385f0587a5", "email": "admin", "created_at": "2025-02-26T16:20:07.451269Z", "updated_at": "2025-02-26T16:20:08.579335Z"}, "user_agent": {"ip_address": "10.10.1.84", "os": "Windows 10", "browser": "Chrome 133.0.0", "device": "Other"},
Any help would be greatly appreciated.
Phorcys
Phorcys2mo ago
hey, this is pretty weird, are you not met with a "new instance" page that asks you to set the credentials? there are no default credentials
meatbaker33w
meatbaker33wOP2mo ago
Nope, just a login page. This is my first experience with coder. I could easily be missing something that should be obvious...
Phorcys
Phorcys2mo ago
you are installing via helm right?
meatbaker33w
meatbaker33wOP2mo ago
Yes Only thing I modified was to use my own postgres database and ingress. Also provided the secret for admin I mentioned above.
Phorcys
Phorcys2mo ago
superAdmin is not handled in the chart's code, so i don't think it had any effect whatsoever
Phorcys
Phorcys2mo ago
you should be seeing something like this
No description
Phorcys
Phorcys2mo ago
could you send a screenshot of your login page?
meatbaker33w
meatbaker33wOP2mo ago
Hmmm.. I will get that in here tonight. Out right now and I deleted the cluster before I left.
Phorcys
Phorcys2mo ago
another thing, would you be able to wipe any PVCs for your Coder instance (and wipe the database too) and restart it to get the first time logs?
meatbaker33w
meatbaker33wOP2mo ago
I'll do better because I also rebuild eks from scratch when I redeploy.
Phorcys
Phorcys2mo ago
nice could you also get the Coder version you're running?
meatbaker33w
meatbaker33wOP2mo ago
Yes, I will also share my values
meatbaker33w
meatbaker33wOP2mo ago
Version: v1.44.6 3051397a1 service: type: ClusterIP superAdmin: passwordSecret: name: coder-super-admin-password postgres: default: enable: false host: "postgres-release-postgresql.postgres-db.svc.cluster.local" port: "5432" user: "postgres" database: "postgres" passwordSecret: "coder-db-url" connector: "postgres" sslMode: "disable" ingress: enable: true className: alb annotations: kubernetes.io/ingress.class: alb alb.ingress.kubernetes.io/scheme: internet-facing alb.ingress.kubernetes.io/target-type: ip alb.ingress.kubernetes.io/healthcheck-path: /login alb.ingress.kubernetes.io/healthcheck-port: traffic-port alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-west-2:000000000000:certificate/00000000-7131-40bb-8def-00000039d491 alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]' alb.ingress.kubernetes.io/backend-protocol: HTTP host: coder.xxx-xxxxxxxxx.com Image of what I get after installation:
No description
meatbaker33w
meatbaker33wOP2mo ago
Anyone else out there got any ideas? Not sure why I am not getting the setup page... Finally got in... found some commands to reset the admin password and that let me in! New problem now is that hte damn license its asking for is supposed to be json but the license I got when signing up is definitely not json... its encoded or something. i decoded it, at least it looks valid... this is fun right?
Scott
Scott2mo ago
@meatbaker33w - You are on a very old coder version. Coder is at v2.19.0. What steps did you take to get Coder running in your k8s setup? Was it this? This is important:
helm repo add coder-v2 https://helm.coder.com/v2
helm repo add coder-v2 https://helm.coder.com/v2
Phorcys
Phorcys2mo ago
oh yeah that makes sense, you are installing the chart for the v1 version, which has been sunsetted could you send me the steps you've followed to get to this point? this way we can edit the docs to make it clearer you should use v2
meatbaker33w
meatbaker33wOP2mo ago
I finally got it all working, thank you everyone for all of your help!
Phorcys
Phorcys2mo ago
nice! closing the issue, feel free to create another one if you need help!
Codercord
Codercord2mo ago
@Phorcys closed the thread.

Did you find this page helpful?