Cian Johnston
9f3591add8
chore(cli): use xerrors.Errorf instead of fmt.Errorf ( #12368 )
2024-02-29 18:58:48 +00:00
Steven Masley
cbcf4ef2c4
chore: add faking 429 responses from fake idp ( #12365 )
...
Required to trigger error condition in fe.
See pull (#12367 )
2024-02-29 09:45:53 -06:00
Cian Johnston
eba8cd7c07
chore: consolidate various randomPort() implementations ( #12362 )
...
Consolidates our existing randomPort() implementations to package testutil
2024-02-29 12:51:44 +00:00
Cian Johnston
4f87ba46f9
chore: update provisioner tag documentation with suggestions from #12315 ( #12347 )
...
- Adds more testcases to TestAcquirer_MatchTags
- Adds functionality to generate a table from above test
- Update provisioner tag documentation with generated table
- Apply other feedback from #12315
2024-02-29 12:31:11 +00:00
Cian Johnston
e57c101200
feat: add support package and accompanying tests ( #12289 )
2024-02-29 11:58:33 +00:00
Cian Johnston
2bf3c72948
chore: add test for enterprise server cli ( #12353 )
2024-02-29 10:25:50 +00:00
Cian Johnston
b17fcd9cff
ci: use linter version from Dockerfile ( #12354 )
2024-02-29 09:53:32 +00:00
Kayla Washburn-Love
b24ad1bbf0
refactor: show parameter suggestions from user history below field ( #12340 )
2024-02-28 15:29:48 -07:00
Kyle Carberry
b2a5e2f4c0
fix: Increase license key rows ( #12352 )
...
It was pretty hard to tell when you pasted something in
this box with only displaying a single line.
This should help!
2024-02-28 21:57:10 +00:00
Steven Masley
97f083810f
chore: provide usage instruction for CLI argument failures ( #12309 )
...
* chore: add usage to # cli arg failures
2024-02-28 12:10:17 -06:00
Marcin Tojek
30d9d84758
fix: use flag to enable Prometheus ( #12345 )
2024-02-28 17:58:03 +01:00
Dean Sheather and Cian Johnston
bedd2c5922
fix: avoid race between replicas on start ( #12344 )
...
DERP mesh key setup would do a SELECT and then an INSERT on failure, without a lock. During some testing with multiple replicas, I managed to cause a replica to crash due to them initializing simultaneously.
Fixes:
Encountered an error running "coder server"
create coder API: insert mesh key: pq: duplicate key value violates unique constraint "site_configs_key_key"
Co-authored-by: Cian Johnston <cian@coder.com >
2024-02-28 16:14:11 +00:00
Bruno Quaresma
76273bf369
feat(site): display client errors in DERP Region health page ( #12318 )
2024-02-28 13:30:38 +00:00
Cian Johnston
1465ee2ed1
fix(coderd): use database.IsQueryCanceledError instead of xerrors.Is(err, context.Canceled) ( #12325 )
2024-02-28 21:19:57 +10:00
Marcin Tojek
eb4a1e2568
feat: enable Prometheus endpoint for external provisioner ( #12320 )
2024-02-28 09:21:56 +01:00
Michael Smith
087f973415
refactor(site): clean up clipboard functionality and define tests ( #12296 )
...
* refactor: clean up and update API for useClipboard
* wip: commit current progress on useClipboard test
* docs: clean up wording on showCopySuccess
* chore: make sure tests can differentiate between HTTP/HTTPS
* chore: add test ID to dummy input
* wip: commit progress on useClipboard test
* wip: commit more test progress
* refactor: rewrite code for clarity
* chore: finish clipboard tests
* fix: prevent double-firing for button click aliases
* refactor: clean up test setup
* fix: rename incorrect test file
* refactor: update code to display user errors
* refactor: redesign useClipboard to be easier to test
* refactor: clean up GlobalSnackbar
* feat: add functionality for notifying user of errors (with tests)
* refactor: clean up test code
* refactor: centralize cleanup steps
2024-02-27 21:05:37 -05:00
dependabot[bot]
e183843a16
chore: bump google.golang.org/grpc from 1.61.0 to 1.62.0 ( #12301 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 02:37:44 +05:00
Bruno Quaresma
0fc1a9164e
feat(site): support zip upload for template files ( #12323 )
...
Related to #11687
2024-02-27 18:00:23 -03:00
Eric Paulsen
0f9c142ea6
docs: add k8s security reference ( #12334 )
...
* docs: add k8s security reference
* make fmt
2024-02-27 15:59:11 -05:00
Kayla Washburn-Love
30772b80c1
Revert "ci: bump the github-actions group with 1 update ( #12303 )" ( #12327 )
...
This reverts commit 5757321ba2 .
2024-02-27 19:49:50 +00:00
Kayla Washburn-Love
b2413a593c
chore: reimplement activity status and autostop improvements ( #12175 )
2024-02-27 11:06:26 -07:00
Spike Curtis
4e7beee102
feat: show tailnet peer diagnostics after coder ping ( #12314 )
...
Beginnings of a solution to #12297
Doesn't cover disco or definitively display whether we successfully connected to DERP, but shows some checklist diagnostics for connecting to an agent.
For this first PR, I just added it to `coder ping` to see how we like it, but could be incorporated into `coder ssh` _et al._ after a timeout.
```
$ coder ping dogfood2
p2p connection established in 147ms
pong from dogfood2 p2p via 95.217.xxx.yyy:42631 in 147ms
pong from dogfood2 p2p via 95.217.xxx.yyy:42631 in 140ms
pong from dogfood2 p2p via 95.217.xxx.yyy:42631 in 140ms
✔ preferred DERP region 999 (Council Bluffs, Iowa)
✔ sent local data to Coder networking coodinator
✔ received remote agent data from Coder networking coordinator
preferred DERP 10013 (Europe Fly.io (Paris))
endpoints: 95.217.xxx.yyy:42631, 95.217.xxx.yyy:37576, 172.17.0.1:37576, 172.20.0.10:37576
✔ Wireguard handshake 11s ago
```
2024-02-27 22:04:46 +04:00
Mathias Fredriksson
32691e67e6
test(agent/agentscripts): fix test flake in TestEnv ( #12326 )
2024-02-27 17:58:10 +00:00
Kayla Washburn-Love
cbaf1c65ef
chore: clean out site/out/assets/ when building to prevent "too much data" errors ( #12313 )
2024-02-27 10:45:57 -07:00
Cian Johnston
b9e2d0a400
fix(coderd): mark provisioner daemon psk as secret ( #12322 )
...
* fix(coderd): mark provisioner daemon psk as secret
Marks provisioner daemon PSK with the secret annotation.
This ensures it will be scrubbed from API requests to
/api/v2/deployment/config.
* make gen
2024-02-27 16:33:32 +00:00
Steven Masley
19baca55da
feat: implement create org commands from cli ( #12308 )
...
* feat: implement create org commands from cli
2024-02-27 10:13:08 -06:00
dependabot[bot]
5757321ba2
ci: bump the github-actions group with 1 update ( #12303 )
...
Bumps the github-actions group with 1 update: [chromaui/action](https://github.com/chromaui/action ).
Updates `chromaui/action` from 10 to 11
- [Release notes](https://github.com/chromaui/action/releases )
- [Commits](https://github.com/chromaui/action/compare/v10...v11 )
---
updated-dependencies:
- dependency-name: chromaui/action
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 11:53:48 -03:00
Cian Johnston
1d65e36b89
ci: increase connection hard limit for fly.io wsproxies ( #12319 )
2024-02-27 13:57:24 +00:00
Cian Johnston
392fecee87
chore(docs): update external provisioners documentation ( #12315 )
2024-02-27 13:05:28 +00:00
Cian Johnston
96c9838ce3
fix(cli): scaletest: do not screenshot if verbose=false ( #12317 )
2024-02-27 12:35:48 +00:00
Bruno Quaresma
2ca8248315
chore(site): apply code conventions ( #12316 )
2024-02-27 12:24:07 +00:00
dependabot[bot]
5a0d9db6c3
chore: bump github.com/elastic/go-sysinfo from 1.12.0 to 1.13.1 ( #12213 )
...
Bumps [github.com/elastic/go-sysinfo](https://github.com/elastic/go-sysinfo ) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/elastic/go-sysinfo/releases )
- [Commits](https://github.com/elastic/go-sysinfo/compare/v1.12.0...v1.13.1 )
---
updated-dependencies:
- dependency-name: github.com/elastic/go-sysinfo
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>
2024-02-27 15:19:43 +05:00
Selina NN
431bf5cf3b
Update artifactory-integration.md ( #12311 )
...
Update date year
2024-02-27 14:57:26 +05:00
Asher
f74532ff50
feat: audit oauth2 app management ( #12275 )
...
* Audit oauth2 app management
* Use 201 for creating secrets
2024-02-26 23:52:08 +00:00
Steven Masley
6b866b3f48
feat: set sane default for gitea external auth ( #12306 )
...
* feat: external auth defaults for gitea
Add some sane defaults for gitea to make it easier to configure
2024-02-26 12:35:18 -06:00
Steven Masley
70ccefc357
feat: set organization context in coder organizations ( #12265 )
...
* feat: add coder organizations set to change org context
`coder organizations set <org>`
2024-02-26 11:39:26 -06:00
Steven Masley
748cf4b2c4
feat: implement global flag for org selection ( #12276 )
...
* feat: implement global flag for org selection
Any command can use '-z' to override org context
2024-02-26 11:38:49 -06:00
dependabot[bot]
5a41385400
chore: bump github.com/gohugoio/hugo from 0.122.0 to 0.123.3 ( #12302 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-26 21:18:19 +05:00
Steven Masley
d2998c6b7b
feat: implement organization context in the cli ( #12259 )
...
* feat: implement organization context in the cli
`coder org show current`
2024-02-26 10:03:49 -06:00
Steven Masley
f44c89d200
chore: enforce orgid in audit logs where required ( #12283 )
...
* chore: enforce orgid in audit logs where required
2024-02-26 08:27:33 -06:00
Cian Johnston
74b749b890
chore(coderd): add test to assert agent token invalid when workspace deleted ( #12290 )
2024-02-26 13:27:00 +00:00
Muhammad Atif Ali
7eed40bd99
chore(dogfood): bump jetbrains-gateway module to 1.0.6 ( #12298 )
2024-02-26 11:57:40 +00:00
Spike Curtis
b0afffbafb
feat: use v2 API for agent metadata updates ( #12281 )
...
Switches the agent to report metadata over the v2 API.
Fixes #10534
2024-02-26 09:50:19 +04:00
Gary Reynolds
7a245e61b1
chore(docs): inline OIDC flow diagram ( #12255 )
...
When viewing the Authentication page, the diagram showing the flow is a useful
resource for understanding the rest of the page.
Rather than linking to a specific version of the SVG, inline it as part of the
documentation.
2024-02-26 04:48:01 +00:00
Michael Brewer
245e280531
docs: add gitlab self-managed example ( #12295 )
2024-02-25 10:11:13 -05:00
Eric Paulsen
fb198ac99c
docs: add steps for postgres server verification ( #12072 )
...
* docs: add steps for postgres server verification
* make: fmt
* refactor to guide
* add manifest
2024-02-25 01:16:56 +00:00
dependabot[bot]
7e797e90ac
chore: bump golang.org/x/tools from 0.17.0 to 0.18.0 ( #12209 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-24 10:42:50 +05:00
Steven Masley
c33c452663
fix: use default org over index [0] for new scim ( #12284 )
2024-02-23 15:31:36 -06:00
Colin Adler
0dd126e025
chore: upgrade github.com/hashicorp/hc-install to v0.6.3 ( #12288 )
...
Removes a dependency on a vulnerable version of github.com/cloudflare/circl
2024-02-23 13:41:58 -06:00
Bruno Quaresma
79480ca587
feat(site): display build logs on template creation ( #12271 )
2024-02-23 12:23:52 -07:00