Kyle Carberry
fd02f73708
chore: ensure pubsub messages are delivered in order for in-memory variant ( #6474 )
...
PostgreSQL provides this guarantee, which led to some flakes in tests.
See: https://github.com/coder/coder/actions/runs/4350034299/jobs/7600478096
2023-03-07 04:36:25 +00:00
Kyle Carberry
74632e460c
fix: adjust build state permission to require template update ( #6472 )
2023-03-07 04:24:32 +00:00
Kyle Carberry
29ced72cda
chore: fix stats leaking in tests ( #6478 )
...
See https://github.com/coder/coder/actions/runs/4350254306/jobs/7601134509
2023-03-07 04:09:02 +00:00
Kyle Carberry
034641dc77
chore: migrate security checks to run on a cron ( #6477 )
...
They were taking a long time and seemed to be reducing concurrency
for our other CI actions.
2023-03-06 21:46:40 -06:00
Kyle Carberry
7a8ccda40e
chore: copy forced derp websockets to fix flake ( #6475 )
...
See: https://github.com/coder/coder/actions/runs/4350034299/jobs/7600478389
2023-03-06 21:29:41 -06:00
Kyle Carberry
964032d783
chore: ignore query cancel error in activitybump ( #6476 )
...
See https://github.com/coder/coder/actions/runs/4350254306/jobs/7600782432
It's fine to ignore this, because workspace agent stats happen async
and might occur when shutting down.
2023-03-06 21:27:21 -06:00
Kyle Carberry
09f87d1df1
chore: remove empty case for metricscache ( #6473 )
...
This wasn't necessary to test and just caused flakes.
See: https://github.com/coder/coder/actions/runs/4350034299/jobs/7600340648
2023-03-06 21:13:08 -06:00
Kyle Carberry
cf75d7e1fb
fix: clean up idle http conns on wsconncache close ( #6471 )
...
See https://github.com/coder/coder/actions/runs/4346769070/jobs/7593243836
2023-03-06 20:45:49 -06:00
Kyle Carberry
e0137bcff1
fix: ensure tailnet websockets are closed ( #6470 )
...
See: https://github.com/coder/tailscale/pull/10
2023-03-06 20:45:24 -06:00
sharkymark
d8abe37cd7
docs: AWS EKS sessionAffinity for LB external IP to be issued ( #6425 )
2023-03-06 23:40:05 +00:00
Steven Masley
8a6635bf5f
chore: Never run v2 migrations on v1 database ( #6438 )
2023-03-06 13:49:03 -06:00
Mathias Fredriksson and Marcin Tojek
22e3ff96be
feat(agent): Add shutdown lifecycle states and shutdown_script support ( #6139 )
...
* feat(api): Add agent shutdown lifecycle states
* feat(agent): Add shutdown_script support
* feat(agent): Add shutdown_script timeout
* feat(site): Support new agent lifecycle states
---
Co-authored-by: Marcin Tojek <marcin@coder.com >
2023-03-06 21:34:00 +02:00
Ben Potter
02100c64b5
fix: docs auto-approval ( #6450 )
...
* fix: docs auto-approval
* empty commit
2023-03-06 13:31:07 -06:00
Bruno Quaresma
136f23fb4c
refactor(site): Suport template version variables on template creation ( #6434 )
2023-03-06 18:36:19 +00:00
Steven Masley
84dd59ecc2
fix: 'coder update' should always start a workspace ( #6437 )
...
* fix: 'coder update' should always start a workspace
2023-03-06 08:37:11 -06:00
Steven Masley
260b2b2333
fix: 404 template shows error page ( #6441 )
2023-03-06 13:58:36 +00:00
Bruno Quaresma
a3201bd658
fix(site): Fix template version editor rename ( #6251 )
2023-03-06 13:53:24 +00:00
Cian Johnston
1483b42259
fix(provisionerd): emit workspace build transition in lower case ( #6455 )
2023-03-06 11:14:19 +00:00
Steven Masley
e78c272a72
chore: System context to oidc login ( #6427 )
2023-03-04 14:32:07 -06:00
Ammar Bandukwala
02f0968b33
chore: automatically approve Ben's docs PRs ( #6444 )
2023-03-04 08:07:45 -06:00
Ben Potter
573a8d5717
docs: external provisioners ( #6443 )
...
* docs: external provisioners
* better wording
* fix wording
* fix wording in various places
* keep fixing wording
* add another note about template management
2023-03-03 23:49:03 +00:00
Steven Masley
973df199b0
test: Check created_at for prepareData to ensure user order ( #6436 )
...
* test: Check created_at for prepareData to ensure user order
* test: Consistent user ordering in dbfake
* import order
* Linting
2023-03-03 13:09:04 -06:00
Muhammad Atif Ali and Ben Potter
3cb9b3de24
docs: clarify how to set max token life in ci/cd docs ( #6416 )
...
* docs: clarify max token life in ci/cd docs
* Update docs/templates/change-management.md
---------
Co-authored-by: Ben Potter <me@bpmct.net >
2023-03-02 22:22:53 +00:00
Ben Potter
175a41567e
docs: clarify requirements for offline deployments ( #6418 )
...
* docs: clarify requirements for offline deployments
* fix punctuation
* fix typo and add postgres
* mention update check
* disable update checks
2023-03-02 14:59:31 -06:00
Ben Potter
25b05ed8a4
fix: minimal AWS policy for templates ( #6419 )
2023-03-02 12:21:02 -06:00
71d1e63af0
feat: add ability to name tokens ( #6365 )
...
* add tokens switch
* reorged TokensPage
* using Trans component for description
* using Trans component on DeleteDialog
* add owner col
* simplify hook return
* lint
* type for response
* added flag for name
* fixed auth
* lint, prettier, tests
* added unique index for login type token
* remove tokens by name
* better check for unique constraint
* docs
* test: Fix dbfake to insert token name
* fix doc tests
* Update cli/tokens.go
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com >
* Update coderd/database/migrations/000102_add_apikey_name.down.sql
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com >
* add more specificity to IsUniqueViolation check
* fix tests
* Fix AutorizeAllEndpoints
* rename migration
---------
Co-authored-by: Steven Masley <stevenmasley@coder.com >
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com >
2023-03-02 09:39:38 -08:00
Muhammad Atif Ali
e3a4861e93
docs: update example coder.conf file ( #6319 )
...
Updated example configuration file to match the configuration in tutorial.
v0.18.1
2023-03-02 09:55:50 -06:00
Ben Potter
ea7a80c5ff
docs: clearer postgres sizing recommendations ( #6302 )
2023-03-02 15:53:55 +00:00
Kyle Carberry
2ff1c6d613
feat: add agent stats for different connection types ( #6412 )
...
This allows us to track when our extensions are used, when the
web terminal is used, and average connection latency to the agent.
2023-03-02 08:06:00 -06:00
Ben Potter
537547fcc3
fix: outdated message in latency tooltip ( #6043 )
2023-03-02 13:24:44 +00:00
Marcin Tojek
67db36bf81
feat: Add form to modify managed Template variables ( #6257 )
2023-03-02 14:11:16 +01:00
Steven Masley
8cf292f50a
feat: Guard search queries against common mistakes ( #6404 )
...
* feat: Error on excessive invalid search keys
* feat: Guard search queries against common mistakes
* Raise errors in FE on workspaces table
* All errors should be on newlines
2023-03-01 23:28:56 -06:00
Kyle Carberry
1724cbf872
feat: automatically use websockets if DERP upgrade is unavailable ( #6381 )
...
* feat: automatically use websockets if DERP upgrade is unavailable
This might be our biggest hangup for deployments at the moment...
Load balancers by default do not support the DERP protocol, so many
of our prospects and customers run into failing workspace connections.
This automatically swaps to use WebSockets, and reports the reason to
coderd.
In a future contribution, a warning will appear by the agent if it was
forced to use WebSockets instead of DERP.
* Fix nil pointer type in Tailscale dep
* Fix requested changes
2023-03-01 22:18:14 +00:00
dependabot[bot]
ce11400b56
chore: bump eslint-plugin-import from 2.26.0 to 2.27.5 in /site ( #6391 )
...
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import ) from 2.26.0 to 2.27.5.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases )
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md )
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.26.0...v2.27.5 )
---
updated-dependencies:
- dependency-name: eslint-plugin-import
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 21:55:27 +00:00
dependabot[bot]
28e002e8bb
chore: bump eslint-plugin-jest from 27.0.1 to 27.2.1 in /site ( #6396 )
...
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest ) from 27.0.1 to 27.2.1.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases )
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v27.0.1...v27.2.1 )
---
updated-dependencies:
- dependency-name: eslint-plugin-jest
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 15:21:30 -06:00
dependabot[bot]
454da9e0ef
chore: bump eslint from 8.33.0 to 8.35.0 in /site ( #6395 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.33.0 to 8.35.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.33.0...v8.35.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 15:21:23 -06:00
dependabot[bot]
32ecb853ed
chore: bump github.com/gohugoio/hugo from 0.109.0 to 0.110.0 ( #6394 )
...
Bumps [github.com/gohugoio/hugo](https://github.com/gohugoio/hugo ) from 0.109.0 to 0.110.0.
- [Release notes](https://github.com/gohugoio/hugo/releases )
- [Changelog](https://github.com/gohugoio/hugo/blob/master/hugoreleaser.toml )
- [Commits](https://github.com/gohugoio/hugo/compare/v0.109.0...v0.110.0 )
---
updated-dependencies:
- dependency-name: github.com/gohugoio/hugo
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 15:21:13 -06:00
dependabot[bot]
570b7f95d2
chore: bump aquasecurity/trivy-action from 0.8.0 to 0.9.1 ( #6385 )
...
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action ) from 0.8.0 to 0.9.1.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases )
- [Commits](https://github.com/aquasecurity/trivy-action/compare/9ab158e8597f3b310480b9a69402b419bc03dbd5...8bd2f9fbda2109502356ff8a6a89da55b1ead252 )
---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 15:19:13 -06:00
dependabot[bot]
b2671639a7
chore: bump crate-ci/typos from 1.13.9 to 1.13.14 ( #6386 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.13.9 to 1.13.14.
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.13.9...v1.13.14 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 15:18:59 -06:00
dependabot[bot]
991c720c09
chore: bump github.com/cenkalti/backoff/v4 from 4.1.3 to 4.2.0 ( #6390 )
...
Bumps [github.com/cenkalti/backoff/v4](https://github.com/cenkalti/backoff ) from 4.1.3 to 4.2.0.
- [Release notes](https://github.com/cenkalti/backoff/releases )
- [Commits](https://github.com/cenkalti/backoff/compare/v4.1.3...v4.2.0 )
---
updated-dependencies:
- dependency-name: github.com/cenkalti/backoff/v4
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 15:18:48 -06:00
Dean Sheather
31a37025c4
fix: build for all platforms in depot release pt. 2 ( #6407 )
v0.18.0
2023-03-01 19:48:22 +00:00
Dean Sheather
9af03d6180
fix: build for all platforms in depot release ( #6406 )
2023-03-01 18:29:02 +00:00
Bruno Quaresma
4dd95c5e01
fix(site): Fix long template descriptions ( #6403 )
2023-03-01 17:53:59 +00:00
Kyle Carberry
9ea21bf8ee
fix: hardcode azure instance identity intermediate certificates ( #6402 )
...
This was broken for an airgapped customer!
2023-03-01 17:39:24 +00:00
Kira Pilot
6304bfb5c0
feat: add 'Show all tokens' toggle for owners ( #6325 )
...
* add tokens switch
* reorged TokensPage
* using Trans component for description
* using Trans component on DeleteDialog
* add owner col
* simplify hook return
* lint
* type for response
* PR feedback
* fix lint
2023-03-01 08:35:55 -08:00
dependabot[bot]
b56e1bb002
chore: bump contributor-assistant/github-action from 2.2.1 to 2.3.0 ( #6384 )
...
Bumps [contributor-assistant/github-action](https://github.com/contributor-assistant/github-action ) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/contributor-assistant/github-action/releases )
- [Commits](https://github.com/contributor-assistant/github-action/compare/v2.2.1...v2.3.0 )
---
updated-dependencies:
- dependency-name: contributor-assistant/github-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 09:18:01 -06:00
dependabot[bot]
c560d6d2ae
chore: bump actions/upload-artifact from 2 to 3 ( #6383 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 09:17:34 -06:00
Ammar Bandukwala
5f6dd0ca2a
docs: fix very small typo
2023-02-28 16:51:53 -06:00
Kyle Carberry
8850ce0d9a
fix: use bigint instead of integer in stats migration ( #6380 )
...
This broke dogfood!
2023-02-28 13:55:37 -06:00
Kyle Carberry
05e449943d
chore: convert agent stats to use a table ( #6374 )
...
* chore: convert workspace agent stats from json to table
* chore: convert agent stats to use a table
Backwards compatibility becomes hard when all agent stats are in a JSON blob.
We also want to query this table for new agents that are failing health checks
so we can display it in the UI.
* Fix migration using default values
2023-02-28 13:33:33 -06:00