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
0a16bda786
chore: add external auth providers to oidctest
( #10958 )
...
* implement external auth in oidctest
* Refactor more external tests to new oidctest
2023-11-30 14:05:15 -06:00
07895006d9
refactor(coderd/healthcheck): make Warnings an object with { Code, Message } ( #10950 )
...
- Adds health.Message { code string, mesasge string }
- Refactors existing warnings []string to be of type []health.Message instead
2023-11-30 14:49:50 +00:00
4f9292859d
feat(coderd/healthcheck): add access URL error codes and healthcheck doc ( #10915 )
...
Relates to #8965
- Added error codes for separate code paths in health checks
- Prefixed errors and warnings with error code prefixes
- Added a docs page with details on each code, cause and solution
Co-authored-by: Muhammad Atif Ali <atif@coder.com >
2023-11-30 12:15:40 +00:00
2b574e2b2d
feat: add dismissed
property to the healthcheck section ( #10940 )
2023-11-29 16:37:40 +00:00
cb6c0f3cbb
chore: refactor oidc group and role sync to methods ( #10918 )
...
The 'userOIDC' method body was getting unwieldy.
I think there is a good way to redesign the flow, but
I do not want to undertake that at this time.
The easy win is just to move some LoC to other methods
and cleanup the main method.
2023-11-29 09:24:00 -06:00
2b71e38b31
feat: add status to tailnet mapping query ( #10936 )
...
Adds the `status` column to the mapping query so that we can add graceful disconnect logic around it
2023-11-29 16:53:01 +04:00
2dc565d5de
chore: remove New----Builder from dbfake function names ( #10882 )
...
Drop "New" and "Builder" from the function names, in favor of the top-level resource created. This shortens tests and gives a nice syntax. Since everything is a builder, the prefix and suffix don't add much value and just make things harder to read.
I've also chosen to leave `Do()` as the function to insert into the database. Even though it's a builder pattern, I fear `.Build()` might be confusing with Workspace Builds. One other idea is `Insert()` but if we later add dbfake functions that update, this might be inconsistent.
2023-11-29 11:06:04 +04:00
48d69c9e60
fix: update autostart context to include querying users ( #10929 )
2023-11-28 17:56:49 -06:00
18c4a98865
fix: numerical validation grammer ( #10924 )
2023-11-28 10:14:53 -08:00
19b6d194fc
feat: manage health settings using Coder API ( #10861 )
2023-11-28 18:15:17 +01:00