24d8644c0b
chore: de-flake TestWorkspaceAgent_Metadata (round 2) ( #7039 )
...
This time, we keep the timing / "racey" tests, but avoid running
them in the harsher CI conditions.
2023-04-06 21:10:13 +00:00
2637f5501b
chore: de-flake TestWorkspaceAgent_Metadata ( #7036 )
2023-04-06 17:20:16 +00:00
f4f40d0ed2
fix: increase workspace name randomess in tests ( #7018 )
2023-04-06 11:53:02 -05:00
0224426e5b
refactor(agent): Move SSH server into agentssh package ( #7004 )
...
Refs: #6177
2023-04-06 19:39:22 +03:00
a32951c46a
fix: reduce idle workspace queries ( #7022 )
2023-04-06 01:58:54 +00:00
e0f7cf5ec6
chore: fix postGroupByOrganization
swagger tag ( #7021 )
2023-04-05 20:17:36 +00:00
391738cc25
chore: remove documented groups endpoint that doesn't exist ( #7020 )
2023-04-05 14:26:21 -05:00
eb66cc9f35
chore: move app proxying code to workspaceapps pkg ( #6998 )
...
* chore: move app proxying code to workspaceapps pkg
Moves path-app, subdomain-app and reconnecting PTY proxying to the new
workspaceapps.WorkspaceAppServer struct. This is in preparation for
external workspace proxies.
Updates app logout flow to avoid redirecting to coder-logout.${app_host}
on logout. Instead, all subdomain app tokens owned by the logging-out
user will be deleted every time you logout for simplicity sake.
Tests will remain in their original package, pending being moved to an
apptest package (or similar).
Co-authored-by: Steven Masley <stevenmasley@coder.com >
2023-04-05 13:41:55 -05:00
407f80a1ef
fix(dbpurge): use dbauthz.AsSystemRestricted
( #7017 )
2023-04-05 17:48:39 +00:00
9c4ccd76a0
fix(coderd)!: add CODER_OIDC_IGNORE_USERINFO configuration option ( #6922 )
...
* add CODER_OIDC_IGNORE_USERINFO option
* chore: update docs for CODER_OIDC_IGNORE_USERINFO w.r.t ADFS
* fix!: codersdk: fix incorrectly named OIDC_GROUP_MAPPING -> CODER_OIDC_GROUP_MAPPING
2023-04-05 09:07:43 +01:00
b4afbe7720
feat: Implement experiment gated CRUD for workspace proxies ( #6928 )
...
* feat: Implement basic moon crud
* chore: Implement enterprise endpoints for moons
2023-04-04 15:07:29 -05:00
385a4262e2
fix: remove audit-logging flag from the server ( #6991 )
...
Co-authored-by: Colin Adler <colin1adler@gmail.com >
2023-04-04 12:11:10 -05:00
c12bc39821
fix: always show a newly created workspace at the top of the list ( #6984 )
...
Fixes #5795 .
2023-04-04 08:24:04 -05:00
e33941b7c2
feat: allow disabling autostart and custom autostop for template ( #6933 )
...
API only, frontend in upcoming PR.
2023-04-04 12:48:35 +00:00
083fc89f93
feat: accept immutable parameters when used first time ( #7000 )
...
* Backend fixes
* CLI: adjust update flow
2023-04-04 14:22:46 +02:00
a96376e02e
chore: Add "required" to allow requring url params ( #6994 )
2023-04-03 20:59:59 -05:00
34593e3944
chore: ticket provider interface ( #6915 )
2023-04-04 00:59:41 +00:00
e0f7f011d8
fix(healthcheck): ensure STUNOnly nodes aren't marked as unhealthy ( #6990 )
2023-04-03 16:14:48 -05:00
95e578ba10
fix: derp healthcheck test flake ( #6982 )
2023-04-03 11:36:26 -05:00
2d051094e7
fix: ignore deleted workspaces in global stats ( #6973 )
...
Fixes #6568 .
2023-04-03 14:46:09 +00:00
fab8da633b
chore: Merge more rbac files ( #6927 )
...
* chore: Merge more rbac files
- Remove cache.go -> authz.go
- Remove query.go -> authz.go
- Remove role.go -> roles.go
* Order imports
* fmt
2023-04-03 09:05:06 -05:00
633dfbdb2e
feat: rich parameters: introduce display_name ( #6919 )
...
* model
* DB
* fix: DisplayName
* proto
* Proto
* Update go dep
* fixme
* fix format
* config
* fmt
* fix
* Fix
* fix
* chore(UI): redirecting from workspace page if 404 (#6880 )
* model
* CLI: Display parameter
* fix
* update dep
* fix
* fix
* fix
* UI changes
* fmt
---------
Co-authored-by: Kira Pilot <kira@coder.com >
2023-04-03 14:37:47 +02:00
7738274b3e
feat(coderd): add DERP healthcheck ( #6936 )
2023-04-03 06:28:42 +00:00
a29fc7dd6f
chore: update otel to v1.14.0 ( #6963 )
2023-04-03 00:31:39 -05:00
8683169e71
fix: agent metadata flake ( #6962 )
2023-04-03 04:45:23 +00:00
512fdbf634
chore: debounce agent watch-metadata stream ( #6940 )
2023-04-01 16:36:21 -05:00
ca4fa81570
feat: add agent metadata ( #6614 )
2023-03-31 15:26:19 -05:00
599699b3a9
fix: truly allow overridding default string array ( #6874 )
2023-03-31 12:12:03 -05:00
ce51435507
chore: Merge some rbac files, move some functions around ( #6916 )
...
* chore: Merge some rbac files, move some functions around
* Fix imports
2023-03-31 09:46:38 -05:00
27e17ff2c3
chore: Remove unused Experimental field ( #6924 )
2023-03-31 09:44:29 -05:00
334d9820fa
fix(coderd): update provisionderd authz policy to allow updating user data ( #6925 )
2023-03-31 15:11:07 +01:00
56f00a82e1
chore: update sqlc to v1.17.2 ( #6920 )
...
* WIP
* chore: Update sqlc to v1.17.2
2023-03-31 14:05:20 +02:00
a63c97b8de
chore: wrap audit logs in a mutex to fix data race ( #6898 )
...
This was seen in `main`!
2023-03-30 12:13:03 -05:00
5780006adb
chore: use http-swagger/v2 for go:embed to reduce binary size ( #6897 )
...
I'm testing how much this will reduce the size, but it should
be by a few MB!
2023-03-30 16:46:58 +00:00
5c1dc1b7fe
fix: iterate through all workspace updates on logs overflow ( #6885 )
...
This was causing some flakes!
2023-03-30 10:05:45 -05:00
0ba200c2a1
feat: Enable workspace debug logging ( #6838 )
...
* feat: Enable workspace debug logging
* Fix
* Fix
* Fix
* fix
* fix
* Enable RBAC
* unit tests
* Fix
* fix
* fix
* fix
* more tests
* fix: workspacebuild_test use roles
* fix: swagger comment
* fix: ctx.Done
* fix: address PR comments
* break loop
2023-03-30 16:00:33 +02:00
665b84de0d
feat: use app tickets for web terminal ( #6628 )
2023-03-30 23:24:51 +10:00
b120247213
fix: extend regex for template version name ( #6876 )
2023-03-30 13:27:58 +02:00
563c3ade06
feat: allow configuring OIDC email claim and OIDC auth url parameters ( #6867 )
...
This commit:
- Allows configuring the OIDC claim Coder uses for email addresses (by default, this is still email)
- Allows customising the parameters sent to the upstream identity provider when requesting a token. This is still access_type=offline by default.
- Updates documentation related to the above.
2023-03-30 09:36:57 +01:00
6981f89cd8
Revert "fix: allow overridding default string array ( #6873 )"
...
This reverts commit 58d650c2bb
.
2023-03-29 20:24:07 -05:00
58d650c2bb
fix: allow overridding default string array ( #6873 )
...
* fix: allow overridding default string array
* Cleanup code
* fixup! Cleanup code
* fixup! Cleanup code
* fixup! Cleanup code
* fixup! Cleanup code
2023-03-30 01:09:20 +00:00
90da09bc2c
chore: Make deployment admin page show better durations ( #6856 )
...
* chore: Make deployment admin page show better durations
Also fix group mappings
2023-03-29 16:26:20 -05:00
773580c7c9
fix: correct minor formatting issues in CLI ( #6813 )
...
* fix: remove excess newlines from server startup
* Don't log benign closed pipe errors
2023-03-28 01:01:25 +00:00
42b3d90221
chore: rename "InsertOrUpdate" to Upsert around the codebase ( #6823 )
...
* chore: rename "InsertOrUpdate" to Upsert around the codebase
The shorter name uses up less line width, is easier to read
and is used more often.
* make gen
2023-03-28 00:55:10 +00:00
5e01e6e448
fix: check if logs are completed before publishing ( #6824 )
2023-03-27 15:50:53 -05:00
dd4e1f74ff
feat(site): Ask for version name and if it is active when publishing a new version on editor ( #6756 )
2023-03-27 17:26:57 +00:00
7fa5afa268
fix: Users that can update a template can also read the file ( #6776 )
...
* fix: Users that can update a template can also read the file
This currently has a strange RBAC story. An issue will be filed
to streamline this.
This is a hotfix to resolve current functionality
* Only showsource code tab if the user has permission to edit the template
---------
Co-authored-by: Bruno Quaresma <bruno_nonato_quaresma@hotmail.com >
2023-03-27 09:21:41 -05:00
8187992e7f
fix: Validate template version name ( #6804 )
...
* WIP
* Update
* Validation
2023-03-27 13:54:01 +02:00
c9cbc63cd4
feat: Fine-tune logs presentation ( #6771 )
...
* Process debug mode logs
* Debug logs are grey
* Fix
2023-03-24 13:29:18 +01:00
2bd6d2908e
feat: convert entire CLI to clibase ( #6491 )
...
I'm sorry.
2023-03-23 17:42:20 -05:00