Marcin Tojek
db40c29f26
fix: CLI do not ignore autostop ( #6647 )
...
* fix: CLI do not ignore autostop
* make gen
2023-03-17 18:14:46 +01:00
Kyle Carberry
ffca3a5fb3
fix: remove noop templates plan command ( #6617 )
...
Co-authored-by: Colin Adler <colin1adler@gmail.com >
2023-03-16 21:28:22 +00:00
Steven Masley
fe247c86eb
feat: Add deployment side config-ssh options ( #6613 )
...
* feat: Allow setting deployment wide ssh config settings
* feat: config-ssh respects deployment ssh config
* The '.' is now configurable
* Move buildinfo into deployment.go
2023-03-16 13:03:37 -05:00
Marcin Tojek
1f9ae15409
feat: CLI use multiselect for list(string) ( #6631 )
...
* feat: CLI use multiselect for list(string)
* fix
* select ui tests
* cli test
* Fix
* Fix
2023-03-16 17:17:48 +01:00
Benjamin Sejas
7076dee522
feat(agent): Add SSH max timeout option for coder agent ( #6596 )
...
* feat(agent): Add SSH max timeout option for coder agent
* Fix lint and update test golden snapshot
2023-03-15 09:08:50 -05:00
Ammar Bandukwala
a65a16122d
chore: early merge clibase foundations ( #6542 )
2023-03-10 13:41:32 -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!
2023-03-10 09:58:31 -06: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
Ammar Bandukwala
50432b89be
fix: pass git auth config read from environment through server ( #6540 )
2023-03-09 20:27:54 +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
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
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
Marcin Tojek
3b87316ad7
feat: propagate job error codes ( #6507 )
...
* feat: propagate job error_code
* fix
* Fix
* Fix
* Fix
* add errors to typesGenerated
* Address PR comments
* Fix
2023-03-08 16:32:00 +01:00
Ammar Bandukwala
3b73321a6c
feat: refactor deployment config ( #6347 )
2023-03-07 15:10:01 -06:00
Dean Sheather
1bdd2abed7
feat: use JWT ticket to avoid DB queries on apps ( #6148 )
...
Issue a JWT ticket on the first request with a short expiry that
contains details about which workspace/agent/app combo the ticket is
valid for.
2023-03-07 19:38:11 +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
Kira Pilot
ef2e86f309
increase default max-token-duration ( #6467 )
2023-03-07 06:35:48 -08:00
Dean Sheather
66a6b590a1
feat: add template max_ttl ( #6114 )
...
Co-authored-by: Bruno Quaresma <bruno@coder.com >
2023-03-07 14:14:58 +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
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
Kira Pilot
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
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
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
Marcin Tojek
2e53fb55da
feat: Enable custom support links ( #6313 )
...
* backend: support links
* frontend: Support links
* fmt
* test: CODER_SUPPORT_LINKS_0_NAME
* Go tests
* Use UpdateAppearanceConfig
* ui: UpdateAppearanceConfig
* fix: fmt
* Fix: site
* Fix: site tests
* fix: fmt
* fix
* test: check default support links
2023-02-27 09:25:04 +01:00
Mathias Fredriksson
5876dc1f97
test(cli): Improve speedtest debugging ( #6341 )
2023-02-24 20:09:16 +02:00
Mathias Fredriksson
677721e4a1
fix(tailnet): Skip nodes without DERP, avoid use of RemoveAllPeers ( #6320 )
...
* fix(tailnet): Skip nodes without DERP, avoid use of RemoveAllPeers
2023-02-24 18:16:29 +02:00
Cian Johnston
1ba6fab0e0
chore: skip flaky TestSpeedtest ( #6322 )
2023-02-23 15:29:57 +00:00
Kira Pilot
a32169ccb5
feat: add flag to see all tokens if owner ( #6227 )
...
* added query for tokens by user id
* updated query args
* adding owner col
* fix request params
* update-golden-files
* added owners col to ls table output
* added ttoken translations
* prettier
* format table according to arg
* using slice.Contains
* refactored token state
* cleanup
2023-02-23 07:00:27 -08:00
Ammar Bandukwala
7a52a9cfc8
fix: flake in template pull ( #6317 )
2023-02-23 04:59:07 +00:00
Ammar Bandukwala
f6a8c360e5
feat(docs): rework CLI docs ( #6312 )
2023-02-23 01:53:21 +00:00
Ammar Bandukwala
f7c10adb04
feat(cli): extract tar in template pull ( #6289 )
2023-02-22 19:29:51 +00:00
Ammar Bandukwala
8231de94ca
feat(cli): make minor improvements to speedtest ( #6266 )
...
- Remove mostly redundant "Transferred" column
- Rename "Bandwidth" to "Throughput"
- Replace "--reverse" (which has an ambiguous starting state) with "--direction=(up|down)"
- Tolerate AgentStartErrors which may be caused by failing startup
script
2023-02-22 19:09:37 +00:00
Ammar Bandukwala
f05609b4da
chore: format Go more aggressively
2023-02-18 18:32:09 -06: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
Cian Johnston
81c29c018a
fix(coder): actually ignore email verified if config value is set ( #6236 )
2023-02-16 15:17:37 +00: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
Mathias Fredriksson
ebdfdc749d
test: Make cli speedtest more reliable ( #6187 )
...
We now wait for the agent to be connected/ready before start.
2023-02-14 11:23:04 +02:00
Colin Adler
a54de6093b
feat: add coder ping ( #6161 )
2023-02-13 10:38:00 -06:00
Mathias Fredriksson
d355783faa
test: Fix cli delete test ( #6183 )
...
We were waiting for Cleaning Up which never appeared:
https://github.com/coder/coder/actions/runs/4163971602/jobs/7205007285
2023-02-13 14:54:38 +00:00
Steven Masley
6189035e98
feat: Add option to enable hsts header ( #6147 )
...
* feat: Add option to enable hsts header
* Update golden files
2023-02-10 10:52:49 -06:00
Colin Adler
4432cd08d6
chore: update tailscale ( #6091 )
2023-02-09 21:43:18 -06:00
Mathias Fredriksson
6f3f7f2937
fix(agent): Allow signal propagation when running as PID 1 ( #6141 )
2023-02-09 23:07:21 +02:00
Kyle Carberry
4827d9edb8
fix: increase generated password length resolve flake ( #6116 )
2023-02-08 20:59:07 +00:00
Kyle Carberry
2ed0eafd75
feat: add minimum password entropy requirements ( #6090 )
...
* feat: add minimum password entropy requirements
* Fix all the tests
* Fix E2E tests
2023-02-08 14:10:08 -06:00
Kyle Carberry
1617268859
fix: stop redirecting away from wildcard url ( #6113 )
...
Fixes #6097 .
2023-02-08 13:48:17 -06:00
Dean Sheather
d60ec3e4bf
feat: add JSON output format to many CLI commands ( #6082 )
2023-02-08 17:09:38 +00:00
Dean Sheather
b5e5959649
chore: fix flake in create-admin-user test ( #6103 )
2023-02-08 15:36:43 +00:00
Marcin Tojek
1dc477819e
feat: render Markdown in rich parameter descriptions ( #6098 )
2023-02-08 12:57:12 +01:00