Muhammad Atif Ali
c5475912c9
refactor(docs): refactoring to remove dublication ( #6297 )
2023-03-15 13:25:51 +00:00
Muhammad Atif Ali
a0e096bcfe
chore: update templates to use rich parameters ( #6397 )
2023-03-15 13:11:52 +00:00
Bruno Quaresma
3cf235c564
feat(site): Ask for parameter values when updating a workspace ( #6586 )
2023-03-14 13:20:49 -03:00
Kyle Carberry
f91b3acf93
fix: group routine workspace agent stats by id ( #6601 )
...
Before this was creating separate rows for distinct stat entries, which
resulted in significantly more data being sent to telemetry.
2023-03-14 10:52:03 -05:00
Kyle Carberry
17bc5794d4
fix: direct embedded derp traffic directly to the server ( #6595 )
...
Prior to this change, DERP traffic would route from `coderd` to the
`CODER_ACCESS_URL` to reach the internal DERP server, which may have
resulted in slower connections due to proxying, or the failure of
web traffic entirely.
If your Coder deployment has a proxy in front of it, your traffic through
web terminals, apps, and port-forwarding is about to get a lot faster!
2023-03-14 14:46:47 +00:00
Bruno Quaresma
e3768495e4
docs: Add more info about slow tests in the FE ( #6584 )
2023-03-14 06:54:17 -07:00
Bruno Quaresma
b806d1cfcf
fix(site): Display delete template error from the API ( #6589 )
2023-03-14 10:44:27 -03:00
Mathias Fredriksson
348530000f
fix(coderd): Ensure agent disconnect happens after timeout ( #6600 )
...
Fixes #6598
2023-03-14 13:14:47 +00:00
Marcin Tojek
7587850a1c
feat: import value from legacy variable to build parameter ( #6556 )
2023-03-14 12:02:44 +00:00
Marcin Tojek
bc26c4a27f
chore: skip scaletest/reconnectingpty ( #6599 )
2023-03-14 11:37:31 +00:00
Dean Sheather
aafd2803bb
chore: update dogfood IP for Sydney ( #6597 )
2023-03-14 15:29:52 +10:00
Kyle Carberry
35df1b10d0
feat: add workspace agent stat reporting to telemetry ( #6577 )
...
This aggregates stats periodically and sends them by agent ID to
our telemetry server. It should help us identify which editors are
primarily in use.
2023-03-13 14:16:54 -05:00
Bruno Quaresma
813b54942f
chore(site): Make FE tests faster ( #6543 )
2023-03-13 13:35:09 -03:00
Cian Johnston
9b2abf0952
chore(helm): add unit tests for helm chart ( #6557 )
...
This PR adds a minimum set of Helm tests for the Helm chart.
It's heavily based on the approach in [1], but uses a golden-files-based approach instead.
It also runs helm template directly instead of importing the entire Kubernetes API.
Golden files can be updated by running go test ./helm/tests -update or by running make update-golden-files.
[1] https://github.com/coder/enterprise-helm
Fixes #6552
2023-03-13 13:48:44 +00:00
Mathias Fredriksson
179d9e0d24
fix(coderd): Detect agent disconnect via inactivity ( #6528 )
...
Fixes #5901
2023-03-13 11:54:53 +02:00
Kyle Carberry
7fa6483d84
fix: allow the BINARY_DIR
to be configured in the agent script ( #6567 )
2023-03-11 19:39:40 +00:00
Steven Masley
37c859ec4c
chore: Ensure all audit types in ResourceTable match APGL ( #6563 )
...
* chore: Ensure all audit types in ResourceTable match APGL
* Implement more checks to ensure all tracked fields are present
* Add unit test to ensure all types are represented in audit table
* Trade compile time safety for syntax
2023-03-10 13:59:42 -06:00
Ammar Bandukwala
a65a16122d
chore: early merge clibase foundations ( #6542 )
2023-03-10 13:41:32 -06:00
Cian Johnston
144f374f60
refactor(dbauthz): add authz for system-level functions ( #6513 )
...
- Introduces rbac.ResourceSystem
- Grants system.* to system and provisionerd rbac subjects
- Updates dbauthz system queries where applicable
- coderd: Avoid index out of bounds in api.workspaceBuilds
- dbauthz: move GetUsersByIDs out of system, modify RBAC check to ResourceUser
- workspaceapps: Add test case for when owner of app is not found
2023-03-10 18:09:28 +00:00
Kyle Carberry
1db2b12b8e
chore: add a test to ensure audit code works with AGPL ( #6561 )
...
Fixes the regression seen in v0.19.1.
2023-03-10 17:04:40 +00:00
Kyle Carberry
7eb2c2ff6d
Revert "chore: Implement joins with golang templates ( #6429 )" ( #6560 )
...
This reverts commit 8b125d6c5d
.
v0.19.2
2023-03-10 10:39:02 -06:00
Steven Masley
a8433b18e4
fix: Prevent infinite redirects on oidc errors ( #6550 )
...
* fix: Prevent infinite redirects on bad oidc scopes
* Show oidc errors
2023-03-10 10:12:29 -06:00
Kyle Carberry
4a07fcd9d2
fix: ensure local derp uses the hostname ( #6559 )
...
This broke deployments that use a custom port with an access
URL. We should write a test for this!
v0.19.1
2023-03-10 09:58:31 -06:00
Steven Masley
8b125d6c5d
chore: Implement joins with golang templates ( #6429 )
...
* feat: Implement view for workspace builds to include rbac info
* Removes the need to fetch the workspace to run an rbac check.
* chore: Use workspace build as RBAC object
* chore: Use golang templates instead of sqlc files
2023-03-10 09:44:38 -06:00
Eric Paulsen
a666539bfa
helm: add value for labels ( #6544 )
v0.19.0
2023-03-10 07:39:55 -05:00
Marcin Tojek
90901ca129
fix: panic on deleted template ( #6553 )
2023-03-10 12:26:11 +01:00
Marcin Tojek
6023264a81
fix: typo in error message ( #6551 )
...
* fix: typo in error message
* fix
2023-03-10 09:20:22 +00:00
Steven Masley
7f25d31745
feat: Allow changing the 'group' oidc claim field ( #6546 )
...
* feat: Allow changing the 'group' oidc claim field
* Enable empty groups support
* fix: Delete was wiping all groups, not just the single user's groups
* Update docs
* fix: Dbfake delete group member fixed
2023-03-09 23:31:38 -06:00
Steven Masley
11a930e779
!fix: Disallow access urls without valid scheme ( #6548 )
...
Existing deployments will need to prepend a scheme if they have not already.
2023-03-09 21:37:19 -06:00
Kyle Carberry
65878b04ce
fix: remove "something went wrong" text for watching a workspace ( #6541 )
...
This text wasn't useful to a customer anyways, because we don't get
an error from EventSource. This can happen if you close your laptop
and open it again, so it's better if we don't display it.
2023-03-09 20:54:28 +00:00
Ammar Bandukwala
50432b89be
fix: pass git auth config read from environment through server ( #6540 )
2023-03-09 20:27:54 +00:00
Kyle Carberry
1b3b0ea962
fix: adjust workspace filter query when the path changes ( #6539 )
...
Previously, when a status would change the filter wouldn't update.
This makes it update if a new value is passed in.
2023-03-09 14:23:23 -06:00
Kyle Carberry
9a7998301b
fix: remove deployment bar info icon and adjust language ( #6537 )
...
Re @bpmct's feedback
2023-03-09 20:08:50 +00:00
Ammar Bandukwala
4c2977050d
fix: treat empty env as defaults ( #6538 )
2023-03-09 19:58:58 +00:00
Ammar Bandukwala
62a64d5a34
fix: remove deprecation warnings when option unset ( #6532 )
...
Resolves #6531
2023-03-09 19:22:21 +00:00
Ammar Bandukwala
761ed7bf63
fix: rm pull request template ( #6533 )
...
It doesn't seem like this was helping anything.
2023-03-10 03:53:48 +10:00
Steven Masley
2abae42cec
feat: Ignore agent pprof port in listening ports ( #6515 )
...
* feat: Ignore agent pprof port in listening ports
2023-03-09 10:53:00 -06:00
Steven Masley
3de29307b5
chore: Remove some of the external enum comments in typescript ( #6530 )
...
* chore: Remove some of the external enum comments in typescript
handle clibase types manually
2023-03-09 10:46:23 -06:00
Marcin Tojek
c2787e3a8e
docs: describe rich parameters ( #6527 )
...
* WIP
* WIP
* docs: describe rich parameters
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Update docs/templates/parameters.md
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Strip migration
* Fix
---------
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
2023-03-09 17:19:48 +01:00
Kyle Carberry
70b093ff2a
fix: filter session count sums by created_at
( #6529 )
...
Fixes the session totals being waaaaay too high!
2023-03-09 17:08:41 +02:00
Kyle Carberry
1cc10f2ffb
fix: only sum connection latencies when they are set ( #6524 )
...
This was producing a median that didn't make sense.
2023-03-09 03:53:09 +00:00
Ben Potter
1199a9330a
chore: add fly.io install source ( #6509 )
2023-03-09 03:16:55 +00:00
Kyle Carberry
a78786119d
chore: resolve race when running load tests with logs ( #6523 )
...
See https://github.com/coder/coder/actions/runs/4370166746/jobs/7644793277
2023-03-08 21:12:20 -06:00
Kyle Carberry
5304b4e483
feat: add connection statistics for workspace agents ( #6469 )
...
* fix: don't make session counts cumulative
This made for some weird tracking... we want the point-in-time
number of counts!
* Add databasefake query for getting agent stats
* Add deployment stats endpoint
* The query... works?!?
* Fix aggregation query
* Select from multiple tables instead
* Fix continuous stats
* Increase period of stat refreshes
* Add workspace counts to deployment stats
* fmt
* Add a slight bit of responsiveness
* Fix template version editor overflow
* Add refresh button
* Fix font family on button
* Fix latest stat being reported
* Revert agent conn stats
* Fix linting error
* Fix tests
* Fix gen
* Fix migrations
* Block on sending stat updates
* Add test fixtures
* Fix response structure
* make gen
2023-03-08 21:05:45 -06:00
Kyle Carberry
9d40d2ffdc
fix: remove create first user from the cli message ( #6493 )
...
This adjusts our setup to just show the Web UI, since you
can now create everything from there!
2023-03-09 02:54:46 +00:00
Kyle Carberry
db2bdd1cab
fix: pass sdk header transport to websocket connections ( #6521 )
...
Fixes #6520 .
2023-03-09 02:29:02 +00:00
Kyle Carberry
d67552f852
fix: add more cached certificates to azure instance identity ( #6519 )
...
This was failing for GovCloud. Now it falls back to fetch, and a test
has been added to notify when certificates are becoming outdated.
2023-03-08 19:32:10 -06:00
Bruno Quaresma
54bbed8c3c
chore: Fix default password and add more docs about scripts/develop.sh ( #6514 )
2023-03-08 21:50:55 +00:00
Kyle Carberry
7df1e3bdd6
fix: centralize deployment config blocks to resolve race ( #6512 )
...
See https://github.com/coder/coder/actions/runs/4365865438/jobs/7635236079
2023-03-08 16:55:52 +00:00
Ammar Bandukwala
95626d2076
fix: use correct LOG env names ( #6511 )
2023-03-08 16:27:32 +00:00