Marcin Tojek
10036ab5fb
fix: use minDisabled, maxDisabled for parameter validation ( #7755 )
2023-06-02 11:43:48 +02:00
Marcin Tojek
a7366a8b76
feat!: drop support for legacy parameters ( #7663 )
2023-06-02 11:16:46 +02:00
Marcin Tojek
702c9081e0
fix: do not skip parameter validation if min or max = 0 ( #7707 )
2023-05-30 14:57:06 +02:00
Jon Ayers
ec5ef51b49
feat: add session token injection to provisioner ( #7461 )
2023-05-17 23:29:22 -05:00
Ammar Bandukwala
9bb0253290
chore: update various dependencies ( #7503 )
...
This will help us pass the security scanners.
2023-05-14 20:37:50 +00:00
Ammar Bandukwala
640fcf450c
chore: improve terraform install performance ( #7478 )
2023-05-11 19:30:51 +00:00
Colin Adler
8bd9f9c351
feat: unified tracing between coderd<->provisionerd ( #7370 )
2023-05-03 23:02:35 +00:00
Josh Vawdrey
e84061e2be
feat(provisioner): bump the maximum terraform version ( #6995 )
2023-04-04 06:19:48 +00:00
Marcin Tojek
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
Ammar Bandukwala
ca4fa81570
feat: add agent metadata ( #6614 )
2023-03-31 15:26:19 -05:00
Kyle Carberry
6378294071
chore: upgrade from deprecated protobuf import ( #6883 )
...
This was displaying a warning when running `go get ./...`.
2023-03-30 14:17:44 +00:00
Marcin Tojek
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
Kyle Carberry
ffb4cd5962
chore: fix race when expecting parameters ( #6814 )
...
See https://github.com/coder/coder/actions/runs/4532378002/jobs/7983840014
2023-03-27 14:18:33 -05:00
Marcin Tojek
c9cbc63cd4
feat: Fine-tune logs presentation ( #6771 )
...
* Process debug mode logs
* Debug logs are grey
* Fix
2023-03-24 13:29:18 +01:00
Marcin Tojek
c7fb5f960c
feat: preserve original order of rich parameters ( #6747 )
...
* WIP
* orderedParameters
* fix
* WIP
* TestS
2023-03-24 09:37:27 +01:00
Kyle Carberry
df31636e72
feat: pass `access_token` to `coder_git_auth` resource ( #6713 )
...
This allows template authors to leverage git auth to perform
custom actions, like clone repositories.
2023-03-22 19:37:08 +00:00
Kyle Carberry
aaa3b31a0b
chore: add echo helper to create an agent with token ( #6576 )
...
This should reduce some LOC and duplication in tests!
2023-03-21 18:03:38 +00:00
Marcin Tojek
fce8a4adf0
feat: preserve order of rich parameters ( #6689 )
...
* WIP
* TDD
* Implement
* WIP
2023-03-21 16:28:17 +01:00
Marcin Tojek
de83723310
feat: show Terraform error details ( #6643 )
2023-03-20 13:23:40 +00:00
Kyle Carberry
c3fb1b325f
feat: add `owner_oidc_access_token` to `coder_workspace` data source ( #6042 )
...
See the discussion in Discord here:
https://discord.com/channels/747933592273027093/1071182088490987542/1071182088490987542
Related provider PR: coder/terraform-provider-coder#91
2023-03-17 15:25:08 -05:00
Marcin Tojek
7587850a1c
feat: import value from legacy variable to build parameter ( #6556 )
2023-03-14 12:02:44 +00:00
Marcin Tojek
2d4706ac33
feat: mark coder_parameter as "required" ( #6433 )
...
* Add required column
* Pass through providerd
* Pass the required property down
* Optional
* Fix
* Fix
* Fix
* fix
* CLI create: support for optional fields
* Use HTML API to mark fields required
* Fix
* Improve validation
* more fixes
* make fmt
* Fix
* WIP
* Fix: test
* CLI update tets
* OptionalParameterAdded
* Fix: migration
2023-03-07 16:38:31 +01:00
Cian Johnston
248c53d68d
fix: install terraform in base Docker image ( #6263 )
...
Updates the base Docker image to install Terraform version 1.3.4 (max supported version) by default.
Also updates documentation to reflect this change.
2023-03-07 13:52:45 +00:00
Mathias Fredriksson
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
Kyle Carberry
7f226d4f90
feat: add support for `coder_git_auth` data source ( #6334 )
...
* Add git auth providers schema
* Pipe git auth providers to the schema
* Add git auth providers to the API
* Add gitauth endpoint to query authenticated state
* Add endpoint to query git state
* Use BroadcastChannel to automatically authenticate with Git
* Add error validation for submitting the create workspace form
* Fix panic on template dry-run
* Add tests for the template version Git auth endpoint
* Show error if no gitauth is configured
* Add gitauth to cliui
* Fix unused method receiver
* Fix linting errors
* Fix dbauthz querier test
* Fix make gen
* Add JavaScript test for git auth
* Fix bad error message
* Fix provisionerd test race
See https://github.com/coder/coder/actions/runs/4277960646/jobs/7447232814
* Fix requested changes
* Add comment to CreateWorkspacePageView
2023-02-27 10:18:19 -06:00
Kyle Carberry
17adfd1134
chore: improve times of ratelimit tests ( #6346 )
...
From 5s to 130ms!
2023-02-25 22:01:01 +00:00
Ammar Bandukwala
7a52a9cfc8
fix: flake in template pull ( #6317 )
2023-02-23 04:59:07 +00:00
Ammar Bandukwala
f7c10adb04
feat(cli): extract tar in template pull ( #6289 )
2023-02-22 19:29:51 +00:00
Ammar Bandukwala
f05609b4da
chore: format Go more aggressively
2023-02-18 18:32:09 -06:00
Kyle Carberry
a79f4a095d
fix: allow mapped resources in our terraform provider ( #6255 )
2023-02-17 16:05:38 +00:00
Marcin Tojek
e161c45b47
Revert "fix: allow mapped resources in our terraform provider ( #6242 )" ( #6248 )
...
This reverts commit d5af536ea2
.
2023-02-17 12:55:54 +01:00
Marcin Tojek
a69137b1f7
feat: Update CLI to handle managed variables ( #6220 )
...
* WIP
* hcl
* useManagedVariables
* fix
* Fix
* Fix
* fix
* go:build
* Fix
* fix: bool flag
* Insert template variables
* API
* fix
* Expose via API
* More wiring
* CLI for testing purposes
* WIP
* Delete FIXME
* planVars
* WIP
* WIP
* UserVariableValues
* no dry run
* Dry run
* Done FIXME
* Fix
* Fix: CLI
* Fix: migration
* API tests
* Test info
* Tests
* More tests
* fix: lint
* Fix: authz
* Address PR comments
* Fix
* fix
* fix
* CLI: create
* unit tests: create templates with variables
* Use last variables
* Fix
* Fix
* Fix
* Push tests
* fix: variable is required if Default is nil
* WIP
* Redact sensitive values
* Fixes
* Fixes
* Fix: arg description
* Fix
* Variable param
* Fix: gen
* Fix
* Fix: goldens
2023-02-17 09:07:45 +01:00
Kyle Carberry
d5af536ea2
fix: allow mapped resources in our terraform provider ( #6242 )
...
Fixes #6234 .
2023-02-16 13:04:40 -06:00
Marcin Tojek
3b7b96ac28
feat: Expose managed variables via API ( #6134 )
...
* WIP
* hcl
* useManagedVariables
* fix
* Fix
* Fix
* fix
* go:build
* Fix
* fix: bool flag
* Insert template variables
* API
* fix
* Expose via API
* More wiring
* CLI for testing purposes
* WIP
* Delete FIXME
* planVars
* WIP
* WIP
* UserVariableValues
* no dry run
* Dry run
* Done FIXME
* Fix
* Fix: CLI
* Fix: migration
* API tests
* Test info
* Tests
* More tests
* fix: lint
* Fix: authz
* Address PR comments
* Fix
* fix
* fix
2023-02-15 18:24:15 +01:00
Marcin Tojek
b86bce8494
feat!: Validate monotonic numbers for rich parameters ( #6046 )
...
* Database changes
* protobuf
* Fix: docs
* workspaces_test
* Validation in coderd
* Fix: resources
* omitempty
* UI changes
* UI tests
* fix
2023-02-07 09:36:13 +01:00
Kyle Carberry
026b1cd2a4
chore: update to go 1.20 ( #5968 )
...
Co-authored-by: Colin Adler <colin1adler@gmail.com>
2023-02-02 12:36:27 -06:00
Mathias Fredriksson
981cac5e28
chore: Invert `delay_login_until_ready`, now `login_before_ready` ( #5893 )
2023-01-27 20:07:47 +00:00
Marcin Tojek
26c69525d1
feat: Validate workspace build parameters ( #5807 )
2023-01-24 14:22:00 +01:00
Mathias Fredriksson
138887de7e
feat: Add workspace agent lifecycle state reporting ( #5785 )
2023-01-24 14:24:27 +02:00
Marcin Tojek
bbb208e29c
feat: Add CLI support for workspace build parameters ( #5768 )
...
* WIP
* WIP
* CLI: handle workspace build parameters
* fix: golintci
* Fix: dry run
* fix
* CLI: is mutable
* coderd: mutable
* fix: golanci
* fix: richParameterFile
* CLI: create unit tests
* CLI: update test
* Fix
* fix: order
* fix
2023-01-23 15:01:22 +01:00
Marcin Tojek
6ebadabe4e
feat: Add basic support for rich parameters to coderd and provisionerd ( #5710 )
2023-01-17 11:22:11 +01:00
Ammar Bandukwala
592ce3b118
feat(cli): allow direct tar upload in template update/create ( #5720 )
2023-01-16 14:32:11 -06:00
Dean Sheather
3e2e2ac49e
fix: enforce unique agent names per workspace ( #5497 )
2022-12-22 15:20:35 -08:00
Colin Adler
ac27cf8c07
fix: properly apply metadata when multiple resources share the same id ( #5443 )
2022-12-21 13:48:49 -05:00
Kyle Carberry
d170d27e80
feat: add `external` property to `coder_app` ( #5425 )
...
* Add schema
* feat: add `external` property to `coder_app`
This allows exposing applications that open an external URL.
2022-12-14 15:54:18 -06:00
Kyle Carberry
c0b251ac52
fix: improve error messages when the agent token is invalid ( #5423 )
...
I'm not sure why this issue is common, but it seems to be
based on: https://github.com/coder/coder/issues/4551 .
This improves the error messages to be unique,
and also fixes a small edge-case bug a user ran into.
2022-12-14 12:24:22 -06:00
Marcin Tojek
50d1c7191a
fix: double quote in fake_cancel.sh ( #5399 )
2022-12-13 11:03:34 +01:00
Dean Sheather
6651c1632d
fix: avoid terraform state concurrent access, remove global mutex ( #5273 )
2022-12-06 17:05:14 +00:00
Mathias Fredriksson
eff99f78fa
feat: Add support for MOTD file in coder agents ( #5147 )
2022-11-24 12:22:20 +00:00
Colin Adler
1f20cab110
fix: don't use yamux for in-memory provisioner{,d} streams ( #5136 )
2022-11-22 12:19:32 -06:00