Kayla Washburn-Love
f3cfe10c26
chore: add more e2e template settings tests ( #12717 )
2024-03-28 16:00:27 -06:00
Colin Adler
4d5a7b2d56
chore(codersdk): move all tailscale imports out of codersdk ( #12735 )
...
Currently, importing `codersdk` just to interact with the API requires
importing tailscale, which causes builds to fail unless manually using
our fork.
2024-03-26 12:44:31 -05:00
Ammar Bandukwala
b4c0fa80d8
chore(cli): rename Cmd to Command ( #12616 )
...
I think Command is cleaner and my original decision to use "Cmd"
a mistake.
Plus this creates better parity with cobra.
2024-03-17 09:45:26 -05:00
Ammar Bandukwala
496232446d
chore(cli): replace clibase with external coder/serpent ( #12252 )
2024-03-15 11:24:38 -05:00
Mathias Fredriksson
5dd436c19b
feat(examples): add linting to all examples ( #12595 )
...
Fixes #12588
2024-03-14 16:49:44 +02:00
Danny Kopping
90d00190ea
chore: remove pr_number param from deploy-pr.sh ( #12549 )
...
Field was removed in https://github.com/coder/coder/pull/11259
Signed-off-by: Danny Kopping <danny@coder.com >
2024-03-12 12:01:31 +00:00
Dean Sheather
bd752a6d8b
chore: embed static files in debug builds ( #12449 )
2024-03-07 09:23:28 +00:00
Cian Johnston
61db293b33
feat(scripts/develop.sh): add --debug flag to develop.sh ( #12423 )
...
Adds a `--debug` flag to `scripts/develop.sh` that will start coder under `dlv debug` instead.
You can then use e.g. the following launch snippet to connect dlv:
```
{
"name": "Delve Remote",
"type": "go",
"request": "attach",
"mode": "remote",
"port": 12345,
}
```
You can also run invididual CLI commands under dlv e.g.
```
debug=1 scripts/coder-dev.sh list
```
Also sets CGO_ENABLED=0 in develop.sh by default.
2024-03-05 13:29:08 +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
Steven Masley
13359aa16f
chore: drop github per user rate limit tracking ( #12286 )
...
* chore: drop github per user rate limit tracking
Rate limits for authenticated requests are per user.
This would be an excessive number of prometheus labels,
so we only track the unauthorized limit.
2024-02-23 11:17:52 -06:00
Cian Johnston
2cb9bfd517
refactor(coderd): move healthcheck report structs to codersdk ( #12279 )
...
Moves healthcheck report-related structs from coderd/healthcheck to codersdk
This prevents an import cycle when adding a codersdk.Client method to hit /api/v2/debug/health.
2024-02-23 13:13:28 +00:00
Cian Johnston
36808f19dc
feat!: update terraform to version 1.6.x, relax max version constraint ( #12027 )
...
* feat(provisioner): relax max terraform version constraint
* feat!(scripts/Dockerfile.base): update bundled terraform to 1.6.x
* bump terraform version in Dogfood image
* fix over-zealous rename
2024-02-06 17:58:26 -06:00
dependabot[bot]
71b79eace4
chore: bump alpine from 3.19.0 to 3.19.1 in /scripts ( #11887 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-30 00:35:44 +03:00
Steven Masley
8e0a153725
chore: implement device auth flow for fake idp ( #11707 )
...
* chore: implement device auth flow for fake idp
2024-01-22 20:46:05 +00:00
Muhammad Atif Ali
1ea70ba573
ci: build a multi-arch image on each commit to main ( #11544 )
2024-01-18 10:57:35 +00:00
Spike Curtis
b173195e0d
Revert "fix: detect JetBrains running on local ipv6 ( #11653 )" ( #11664 )
...
This reverts commit 2d61d5332a .
2024-01-17 15:38:39 +04:00
Asher
2d61d5332a
fix: detect JetBrains running on local ipv6 ( #11653 )
2024-01-16 15:53:41 -09:00
Steven Masley
5087f7b5f6
chore: improve fake IDP script ( #11602 )
...
* chore: testIDP using static defaults for easier reuse
2024-01-15 10:01:41 -06:00
Steven Masley
89ab659114
chore: add oauth2 prometheus metrics for to documentation ( #11534 )
2024-01-10 15:46:37 +00:00
Cian Johnston
04fd96a014
feat(coderd): add provisioner_daemons to /debug/health endpoint ( #11393 )
...
Adds a healthcheck for provisioner daemons to /debug/health endpoint.
2024-01-08 09:29:04 +00:00
Garrett Delfosse
b21da38bea
chore: deprecate template create command in favor of template push ( #11390 )
2024-01-05 21:04:14 +00:00
Muhammad Atif Ali
5647e87207
ci: drop chocolatey from ci ( #11245 )
2023-12-18 17:31:35 +03:00
Ben Potter
2e86b76fb8
docs: improve structure for example templates ( #9842 )
...
Co-authored-by: Kyle Carberry <kyle@carberry.com >
Co-authored-by: Muhammad Atif Ali <atif@coder.com >
Co-authored-by: Muhammad Atif Ali <me@matifali.dev >
2023-12-17 17:05:13 +03:00
Steven Masley
b7bdb17460
feat: add metrics to workspace agent scripts ( #11132 )
...
* push startup script metrics to agent
2023-12-13 11:45:43 -06:00
dependabot[bot]
486d1fb697
chore: bump alpine from 3.18.5 to 3.19.0 in /scripts ( #11126 )
...
Bumps alpine from 3.18.5 to 3.19.0.
---
updated-dependencies:
- dependency-name: alpine
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-12-11 23:24:16 +10:00
Eric Paulsen
167c759149
docs: add license and template insights prom metrics ( #11109 )
...
* docs: add license and template insights prom metrics
* add: coderd_insights_applications_usage_seconds
2023-12-08 14:17:14 -05:00
Asher
dbbf8acc26
fix: track JetBrains connections ( #10968 )
...
* feat: implement jetbrains agentssh tracking
Based on tcp forwarding instead of ssh connections
* Add JetBrains tracking to bottom bar
2023-12-07 12:15:54 -09:00
Cian Johnston
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
Cian Johnston
feaa9894a4
fix(site/src/api/typesGenerated): generate HealthSection enums ( #11049 )
...
Relates to #8971
- Introduces a codersdk.HealthSection enum type
- Refactors existing references using strings to use new HealthSection type
2023-12-05 20:00:27 +00:00
Cian Johnston
2e4e0b2d2c
fix(scripts/apitypings): force health.Message and health.Severity to correct types ( #11043 )
...
* Force typegen types for some fields of derp health report
* Explicitly allocate slices for RegionReport.{Errors,Warnings} to avoid nulls in API response
2023-12-05 16:31:48 +00:00
dependabot[bot]
b8e9262c51
chore: bump the scripts-docker group in /scripts with 1 update ( #11020 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 10:38:58 -06:00
Steven Masley
20525c8b2e
chore: add script to analyze which releases have migrations ( #10823 )
...
* chore: add script to analyze which releases have migrations
2023-11-27 10:53:32 -06:00
Cian Johnston
411ce46442
feat(coderd/healthcheck): add health check for proxy ( #10846 )
...
Adds a health check for workspace proxies:
- Healthy iff all proxies are healthy and the same version,
- Warning if some proxies are unhealthy,
- Error if all proxies are unhealthy, or do not all have the same version.
2023-11-24 15:06:51 +00:00
Marcin Tojek
78df68348a
feat: include health severity in reports ( #10817 )
2023-11-23 16:08:41 +01:00
Colin Adler
fbfd192370
chore: update openssl in Dockerfile ( #10701 )
...
Includes a security fix for CVE-2023-5363 and CVE-2023-5678.
2023-11-14 13:40:30 -06:00
Marcin Tojek
fbd34139b5
refactor(site): use generated Healthcheck API entities ( #10650 )
2023-11-13 15:58:57 +01:00
Mathias Fredriksson
473585de6c
fix(scripts): forward all necessary ports for remote playwright ( #10606 )
2023-11-09 12:02:46 +00:00
Mathias Fredriksson
e71c53d4d0
chore(site): add remote playwright support and script ( #10445 )
2023-11-09 13:26:26 +02:00
Cian Johnston
26740cf00d
chore(scripts/rules.go): broaden scope of testingWithOwnerUser linter ( #10548 )
...
* Updated testingWithOwnerUser ruleguard rule to detect:
a) Passing client from coderdenttest.New() to clitest.SetupConfig() similar to what already exists for AGPL code
b) Usage of any method of the owner client from coderdenttest.New() - all usages of the owner client must be justified with a `//nolint:gocritic` comment.
* Fixed resulting linter complaints.
* Added new coderdtest helpers CreateGroup and UpdateTemplateMeta.
* Modified check_enterprise_import.sh to ignore scripts/rules.go.
2023-11-08 14:54:48 +00:00
Kyle Carberry
5abfe5afd0
chore: rename dbfake to dbmem ( #10432 )
2023-10-30 17:42:20 +00:00
Colin Adler
7e6b549170
chore: upgrade Terraform to 1.5.7 ( #10186 )
2023-10-10 12:46:59 -05:00
Cian Johnston
c83af5e627
chore(cli): add linter to detect potential spurious usage of owner user in cli tests ( #10133 )
...
* Detects the following pattern where the CLI is initialized with a client authenticated as the "first user":
client := coderdtest.New(t, ...)
[...]
user := coderdtest.CreateFirstUser(t, client)
[...]
clitest.SetupConfig(t, client, root)
* Updates documentation regarding role permissions on workspaces.
2023-10-10 11:14:20 +01:00
Kayla Washburn
42fb6cab12
chore: add icons for popular programming languages ( #10141 )
2023-10-09 13:52:06 -06:00
Cian Johnston
5673aca408
feat(cli): add --parameter flag to exp scaletest command ( #10132 )
2023-10-09 14:08:24 +01:00
Kayla Washburn
71ad5909f2
chore: add icons.json file ( #10085 )
2023-10-06 13:46:37 -06:00
dependabot[bot]
4df5c1ddec
chore: bump the alpine image from 3.18.3 to 3.18.4 in Dockerfile.base ( #9993 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-03 14:09:50 -05:00
Steven Masley
beac36027f
chore: generate any interface as Deployment Option in TypeScript ( #9917 )
...
* chore: handle interfaces as "any" in typescript
Use generated Deployment Option
2023-09-28 16:14:28 -05:00
Colin Adler
885041a65b
revert: downgrade alpine to v3.18.3 ( #9916 )
2023-09-28 20:27:47 +00:00
Colin Adler
92c0237899
chore: upgrade alpine to v3.18.4
2023-09-28 19:47:48 +00:00
Kyle Carberry
1262eef2c0
feat: add support for coder_script ( #9584 )
...
* Add basic migrations
* Improve schema
* Refactor agent scripts into it's own package
* Support legacy start and stop script format
* Pipe the scripts!
* Finish the piping
* Fix context usage
* It works!
* Fix sql query
* Fix SQL query
* Rename `LogSourceID` -> `SourceID`
* Fix the FE
* fmt
* Rename migrations
* Fix log tests
* Fix lint err
* Fix gen
* Fix story type
* Rename source to script
* Fix schema jank
* Uncomment test
* Rename proto to TimeoutSeconds
* Fix comments
* Fix comments
* Fix legacy endpoint without specified log_source
* Fix non-blocking by default in agent
* Fix resources tests
* Fix dbfake
* Fix resources
* Fix linting I think
* Add fixtures
* fmt
* Fix startup script behavior
* Fix comments
* Fix context
* Fix cancel
* Fix SQL tests
* Fix e2e tests
* Interrupt on Windows
* Fix agent leaking script process
* Fix migrations
* Fix stories
* Fix duplicate logs appearing
* Gen
* Fix log location
* Fix tests
* Fix tests
* Fix log output
* Show display name in output
* Fix print
* Return timeout on start context
* Gen
* Fix fixture
* Fix the agent status
* Fix startup timeout msg
* Fix command using shared context
* Fix timeout draining
* Change signal type
* Add deterministic colors to startup script logs
---------
Co-authored-by: Muhammad Atif Ali <atif@coder.com >
2023-09-25 16:47:17 -05:00