e0d34ca6f7
fix(site): fix error when loading workspaces with dormant ( #11291 )
2023-12-19 20:42:07 -03:00
24080b121c
feat: enable csrf token header ( #11283 )
...
* feat: enable csrf token header
* Exempt external auth requets
* ensure dev server bypasses CSRF
* external auth is just get requests
* Add some more routes
* Extra assurance nothing breaks
2023-12-19 15:42:05 -06:00
fbda21a9f2
feat: move moons experiment to ga (released) ( #11285 )
...
* feat: release moons experiment as ga
2023-12-19 14:40:22 -06:00
e8be092af0
chore: add sqlc push action on releases ( #11171 )
...
* add sqlc push action on releases
* Make sqlc push optional
2023-12-19 20:31:55 +00:00
ff61475239
fix(coderd/provisionerdserver): use s.timeNow ( #11267 )
2023-12-18 17:11:50 +00:00
c35b560c87
chore: fix flake, use time closer to actual test ( #11240 )
...
* chore: fix flake, use time closer to actual test
The tests were queued, and the autostart time was being set
to the time the table was created, not when the test was actually
being run. This diff was causing failures in CI
2023-12-18 10:55:46 -06:00
213b768785
feat(coderd): insert provisioner daemons ( #11207 )
...
* Adds UpdateProvisionerDaemonLastSeenAt
* Adds heartbeat to provisioner daemons
* Inserts provisioner daemons to database upon start
* Ensures TagOwner is an empty string and not nil
* Adds COALESCE() in idx_provisioner_daemons_name_owner_key
2023-12-18 16:44:52 +00:00
307186325f
fix: avoid db import in slim builds ( #11258 )
2023-12-19 00:09:22 +10:00
e46431078c
feat: add AgentAPI using DRPC ( #10811 )
...
Co-authored-by: Spike Curtis <spike@coder.com >
2023-12-18 22:53:28 +10:00
3f6096b0d7
chore: unit test to enforce authorized queries match args ( #11211 )
...
* chore: unit test to enforce authorized queries match args
* Also check querycontext arguments
2023-12-15 20:31:07 +00:00
7924bb2a56
feat!: move workspace renames behind flag, disable by default ( #11189 )
2023-12-15 13:38:47 -05:00
e63de9a259
chore: enforcement of dbauthz tests was broken ( #11218 )
...
* chore: enforcement of dbauthz tests was broken
Implemented missing tests to catch back up
---------
Co-authored-by: Cian Johnston <cian@coder.com >
2023-12-15 18:30:21 +00:00
211e59bf65
feat: add tailnet v2 API support to coordinate endpoint ( #11228 )
...
closes #10532
Adds v2 support to the /coordinate endpoint via a query parameter.
v1 already has test cases, and we haven't implemented v2 at the client yet, so the only new test case is an unsupported version.
2023-12-15 14:10:24 +04:00
1e49190e12
feat: add server flag to disable user custom quiet hours ( #11124 )
2023-12-15 19:33:51 +10:00
9a4e1100fa
chore: move drpc transport tools to codersdk/drpc ( #11224 )
...
Part of #10532
DRPC transport over yamux and in-mem pipes was previously only used on the provisioner APIs, but now will also be used in tailnet. Moved to subpackage of codersdk to avoid import loops.
2023-12-15 12:41:39 +04:00
b36071c6bb
feat: allow templates to specify max_ttl or autostop_requirement ( #10920 )
2023-12-15 18:27:56 +10:00
ad3fed72bc
chore: rename Coordinator to CoordinatorV1 ( #11222 )
...
Renames the tailnet.Coordinator to represent both v1 and v2 APIs, so that we can use this interface for the main atomic pointer.
Part of #10532
2023-12-15 11:38:12 +04:00
4672700ef6
chore: add additional fields to license telemetry ( #11173 )
...
This sends the email the license was issued to, and whether or not it's a trial in the telemetry payload. It's a bit janky since the license parsing is all enterprise licensed.
2023-12-14 15:52:52 -06:00
fad457420b
fix: copy StringMap on insert and query in dbmem ( #11206 )
...
Addresses the issue in #11185 for the StringMap datatype.
There are other slice data types in our database package that also need to be fixed, but that'll be a different PR
2023-12-14 22:23:29 +04:00
133dc66143
feat: add a theme picker ( #11140 )
2023-12-14 10:38:44 -07:00
df7ed18e1b
chore(coderd/autobuild): wait for active template version and inactive template version ( #11210 )
2023-12-14 13:58:57 +00:00
5b0e6bfa2a
feat(coderd/database): add api_version to provisioner_daemons table ( #11204 )
...
Adds column api_version to the provisioner_daemons table.
This is distinct from the coderd version, and is used to handle breaking changes in the provisioner daemon API.
2023-12-14 12:52:41 +00:00
eb81fcf1e1
fix: lower amount of cached timezones for deployment daus ( #11196 )
...
Updates https://github.com/coder/customers/issues/384
This should help alleviate some pressure, but doesn't really fix the
root cause. See above issue for more details.
2023-12-13 16:50:29 -06:00
b7bdb17460
feat: add metrics to workspace agent scripts ( #11132 )
...
* push startup script metrics to agent
2023-12-13 11:45:43 -06:00
41ed581460
chore: include build version header on subdomain apps ( #11172 )
...
Idk why this was not the case before, this is very helpful to have
2023-12-13 11:45:27 -06:00
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