4f7ae6461b
feat(coderd/database): add UpsertProvisionerDaemons query ( #11178 )
...
Co-authored-by: Marcin Tojek <marcin@coder.com >
2023-12-13 12:31:40 +00:00
ef4d1b68e1
test: insights metrics: verify plugin usage ( #11156 )
2023-12-13 10:46:52 +01:00
43ba3146a9
feat: add test case for BlockDirect + listening ports ( #11152 )
...
Adds a test case for #10391 with single tailnet out of experimental
2023-12-13 12:28:09 +04:00
6800fc8477
chore: bump go (->v1.21.5) and sqlc (->v1.24.0) to new versions ( #11170 )
2023-12-12 18:50:23 -06:00
e52d848d05
chore: validate queries using sqlc-vet in github actions ( #11163 )
2023-12-12 15:53:26 -06:00
dba0dfa859
chore: correct 500 -> 404 on workspace agent mw ( #11129 )
...
* chore: correct 500 -> 404
2023-12-12 15:14:32 -06:00
0181e036f6
chore: remove unused query failing to prepare ( #11167 )
2023-12-12 15:02:15 -06:00
2883cad6ad
fix(coderd/autobuild): wait for template version job in TestExecutorInactiveWorkspace ( #11150 )
2023-12-12 12:43:02 +00:00
b02796655e
fix(coderd/database): remove column updated_at from provisioner_daemons table ( #11108 )
2023-12-12 11:19:28 +00:00
197cd935cf
chore(Makefile): use linter version from dogfood Dockerfile ( #11147 )
...
* chore(Makefile): use golangci-lint version from dogfood Dockerfile
* chore(dogfood/Dockerfile): update golangci-lint to latest version
* chore(coderd): address linter complaints
2023-12-12 10:02:32 +00:00
6775a86785
chore: make "users"."avatar_url"
NOT NULL
( #11112 )
2023-12-11 10:09:51 -07:00
3e5d292135
feat: add support for coder_env
( #11102 )
...
Fixes #10166
2023-12-11 16:10:18 +02:00
8d9157dc35
fix: use provisionerd context when failing job on canceled acquire ( #11118 )
...
Spotted during code read. We need to use the provisionerd auth context when failing a job due to a lost provisioner daemon.
2023-12-11 14:52:44 +04:00
37f6b38d53
fix: return 403 when rebuilding workspace with require_active_version ( #11114 )
2023-12-08 23:03:46 -06:00
d8e95001e8
chore: add theme_preference column to users table ( #11069 )
2023-12-08 21:59:53 +00:00
78517cab52
feat: add group allowlist for oidc ( #11070 )
...
* feat: group allow list in OIDC settings
2023-12-08 10:14:19 -06:00
2b19a2369f
chore(coderd): move provisionerd tags to provisionersdk ( #11100 )
2023-12-08 12:10:25 +00:00
918a82436e
fix: insights: remove time-dependent tests ( #11099 )
2023-12-08 09:51:18 +00:00
02696f2df9
chore: fix flake in TestExecutorAutostopTemplateDisabled ( #11096 )
2023-12-08 09:02:54 +00:00
b4ca1d6579
feat: include server agent API version in buildinfo ( #11057 )
...
First part of #10340 -- we need this version to compare with agents to tell if they are on a deprecated Agent API version
2023-12-08 12:50:25 +04:00
e73a202aed
feat: show dormant workspaces by default ( #11053 )
2023-12-07 18:09:35 -06:00
ce49a55f56
chore: update build_reason 'autolock' -> 'dormancy' ( #11074 )
2023-12-07 17:11:57 -06:00
51687c74c8
fix(coderd/healthcheck): do not return null regions in RegionsResponse ( #11088 )
2023-12-07 21:10:12 +00:00
228cbec99b
fix: stop updating agent stats from deleted workspaces ( #11026 )
...
Co-authored-by: Steven Masley <stevenmasley@gmail.com >
2023-12-07 13:55:29 -05:00
1e349f0d50
feat(cli): allow specifying name of provisioner daemon ( #11077 )
...
- Adds a --name argument to provisionerd start
- Plumbs through name to integrated and external provisioners
- Defaults to hostname if not specified for external, hostname-N for integrated
- Adds cliutil.Hostname
2023-12-07 16:59:13 +00:00
8aea6040c8
fix: use unique workspace owners over unique users ( #11044 )
2023-12-07 10:53:15 -05:00
091fdd6761
fix: redirect unauthorized git users to login screen ( #10995 )
...
* fix: redirect to login screen if unauthorized git user
* consolidated language
* fix redirect
2023-12-07 09:19:31 -05:00
941e3873a8
fix: implement fake DeleteOldWorkspaceAgentStats ( #11076 )
2023-12-07 14:08:16 +01:00
2947b827fb
chore: use httpError to allow better error elevation ( #11065 )
2023-12-06 10:27:40 -06:00
b376b2cd13
feat: add user/settings page for managing external auth ( #10945 )
...
Also add support for unlinking on the coder side to allow reflow.
2023-12-06 08:41:45 -06:00
f6891bc465
fix: implement fake DeleteOldWorkspaceAgentLogs ( #11042 )
2023-12-06 14:31:43 +01:00
38ed816207
fix(coderd/debug): fix caching issue with dismissed sections ( #11051 )
2023-12-06 08:38:03 +00:00
81a3b36884
feat: add endpoints to list all authed external apps ( #10944 )
...
* feat: add endpoints to list all authed external apps
Listing the apps allows users to auth to external apps without going through the create workspace flow.
2023-12-05 14:03:44 -06:00
feaa9894a4
fix(site/src/api/typesGenerated): generate HealthSection enums ( #11049 )
...
Relates to #8971
- Introduces a codersdk.HealthSection enum type
- Refactors existing references using strings to use new HealthSection type
2023-12-05 20:00:27 +00:00
f66e802fae
fix(coderd/debug): putDeploymentHealthSettings: use 204 instead of 304 if not modified ( #11048 )
2023-12-05 19:06:56 +00:00
2e4e0b2d2c
fix(scripts/apitypings): force health.Message and health.Severity to correct types ( #11043 )
...
* Force typegen types for some fields of derp health report
* Explicitly allocate slices for RegionReport.{Errors,Warnings} to avoid nulls in API response
2023-12-05 16:31:48 +00:00
a235644046
fix(codersdk): make codersdk.ProvisionerDaemon.UpdatedAt a codersdk.NullTime ( #11037 )
2023-12-05 15:40:45 +00:00
5fad611020
feat(coderd): add last_seen_at and version to provisioner_daemons table ( #11033 )
...
Related to #10676
- Adds columns last_seen_at and version to provisioner_daemons table
- Adds the above to codersdk.ProvisionerDaemons struct
2023-12-05 13:54:38 +00:00
1e6ea6133c
fix: pass in time parameter to prevent flakes ( #11023 )
...
Co-authored-by: Dean Sheather <dean@deansheather.com >
2023-12-04 12:20:22 -05:00
ccd5e1a749
fix: use database for user creation to prevent flake ( #10992 )
2023-12-04 11:05:17 -05:00
2f54f769be
feat: allow IDP to return single string for roles/groups claim ( #10993 )
...
* feat: allow IDP to return single string instead of array for roles/groups claim
This is to support ADFS
2023-12-04 10:01:45 -06:00
baf3bf6b9c
feat: add workspace_id, owner_name to agent manifest ( #10199 )
...
Co-authored-by: Kyle Carberry <kyle@carberry.com >
Co-authored-by: Atif Ali <atif@coder.com >
2023-12-04 00:41:54 +03:00
6b3c4c00a2
fix: UpdateWorkspaceDormantDeletingAt
interval out of range ( #11000 )
2023-12-02 11:47:08 -06:00
49ed66c7ad
chore: remove ALTER TYPE .. ADD VALUE
from migration 65 ( #10998 )
...
Follow up of Follow up of https://github.com/coder/coder/pull/10966
2023-12-02 11:40:23 -06:00
cbcf7561e5
chore: remove ALTER TYPE .. ADD VALUE
from migration 46 ( #10997 )
...
Follow up of https://github.com/coder/coder/pull/10966
2023-12-02 11:38:12 -06:00
427572199e
chore: remove ALTER TYPE .. ADD VALUE
from migration 18 ( #10996 )
...
Follow up of https://github.com/coder/coder/pull/10966
2023-12-02 11:35:25 -06:00
8e684c8195
feat: run all migrations in a transaction ( #10966 )
...
Updates coder/customers#365
This PR updates our migration framework to run all migrations in a single transaction. This is the same behavior we had in v1 and ensures that failed migrations don't bring the whole deployment down. If a migration fails now, it will automatically be rolled back to the previous version, allowing the deployment to continue functioning.
2023-12-01 16:11:10 -06:00
13b89f79df
feat: purge old provisioner daemons ( #10949 )
2023-12-01 12:43:05 +00:00
571d358e4b
feat: add queries to clean lost connections in PGCoordinator ( #10938 )
...
Adds cleanup queries to clean out "lost" peer and tunnel state after 24 hours. We leave this state in the database so that anything trying to connect to the peer can see that it was lost, but clean it up after 24 hours to ensure our table doesn't grow without bounds.
2023-12-01 10:02:30 +04:00
967db2801b
chore: refactor ResolveAutostart tests to use dbfake ( #10603 )
2023-11-30 19:33:04 -06:00