Ammar Bandukwala
c191692751
chore(cli): send help to stdout ( #6865 )
...
Minimizes pesky `2>&1` when working with help.
2023-03-31 18:51:55 +00:00
Ammar Bandukwala
c2a96bdc7c
fix: compilation failure with (*OptionSet).SetDefaults
...
This slipped through CI due to a merge race.
2023-03-31 18:02:55 +00:00
Ammar Bandukwala
599699b3a9
fix: truly allow overridding default string array ( #6874 )
2023-03-31 12:12:03 -05:00
Cian Johnston
96ff400587
chore(clibase): add some more tests for parsing options from env ( #6930 )
2023-03-31 17:21:56 +01:00
Kyle Carberry
5686fc9983
chore: skip chdir template push test on windows ( #6890 )
...
See https://github.com/coder/coder/actions/runs/4565958214/jobs/8057842941
2023-03-30 10:21:13 -05:00
Kyle Carberry
401b9276ae
chore: clone styles to prevent race ( #6888 )
...
See https://github.com/coder/coder/actions/runs/4565541977/jobs/8056830691?pr=6885
2023-03-30 10:18:24 -05:00
Kyle Carberry
1f600fc526
chore: use defer instead of t.Cleanup for chdir ( #6887 )
...
This _might_ resolve the races in `TestTemplatePush`.
2023-03-30 09:48:03 -05:00
Cian Johnston
563c3ade06
feat: allow configuring OIDC email claim and OIDC auth url parameters ( #6867 )
...
This commit:
- Allows configuring the OIDC claim Coder uses for email addresses (by default, this is still email)
- Allows customising the parameters sent to the upstream identity provider when requesting a token. This is still access_type=offline by default.
- Updates documentation related to the above.
2023-03-30 09:36:57 +01:00
Ammar Bandukwala
6981f89cd8
Revert "fix: allow overridding default string array ( #6873 )"
...
This reverts commit 58d650c2bb .
2023-03-29 20:24:07 -05:00
Ammar Bandukwala
58d650c2bb
fix: allow overridding default string array ( #6873 )
...
* fix: allow overridding default string array
* Cleanup code
* fixup! Cleanup code
* fixup! Cleanup code
* fixup! Cleanup code
* fixup! Cleanup code
2023-03-30 01:09:20 +00:00
Steven Masley
90da09bc2c
chore: Make deployment admin page show better durations ( #6856 )
...
* chore: Make deployment admin page show better durations
Also fix group mappings
2023-03-29 16:26:20 -05:00
Colin Adler
872037bf85
feat: allow http2 in coder server ( #6871 )
2023-03-29 14:45:57 -05:00
Steven Masley
a8346bd8ea
feat: Allow unsetting ssh config options from deployment ( #6847 )
...
This allows deleting ssh config options
2023-03-28 11:06:42 -05:00
Ammar Bandukwala
1176256a44
feat: improve CLI error messages ( #6778 )
2023-03-28 16:03:34 +00:00
Ammar Bandukwala
164528176a
fix(clibase): allow empty values to unset defaults ( #6832 )
2023-03-28 01:58:06 +00:00
Ammar Bandukwala
773580c7c9
fix: correct minor formatting issues in CLI ( #6813 )
...
* fix: remove excess newlines from server startup
* Don't log benign closed pipe errors
2023-03-28 01:01:25 +00:00
Ammar Bandukwala
f88f273cd6
fix: resolve template name from working directory "." ( #6822 )
2023-03-27 22:58:20 +00:00
Ammar Bandukwala
b439c3e167
fix: permit SSH by default when startup script fails ( #6798 )
2023-03-27 14:59:58 +00:00
Ammar Bandukwala
6c0f37c28e
fix: probably fix lipgloss race condition ( #6784 )
2023-03-24 21:24:51 +02:00
Ammar Bandukwala
9822745365
fix: accept CODER_AGENT_TOKEN ( #6765 )
2023-03-23 18:38:15 -05:00
Ammar Bandukwala
2bd6d2908e
feat: convert entire CLI to clibase ( #6491 )
...
I'm sorry.
2023-03-23 17:42:20 -05:00
Kyle Carberry
cb7375450b
feat: add startup script logs to the ui ( #6558 )
...
* Add startup script logs to the database
* Add coderd endpoints for startup script logs
* Push startup script logs from agent
* Pull startup script logs on frontend
* Rename queries
* Add constraint
* Start creating log sending loop
* Add log sending to the agent
* Add tests for streaming logs
* Shorten notify channel name
* Add FE
* Improve bulk log performance
* Finish UI display
* Fix startup log visibility
* Add warning for overflow
* Fix agent queue logs overflow
* Display staartup logs in a virtual DOM for performance
* Fix agent queue with loads of logs
* Fix authorize test
* Remove faulty test
* Fix startup and shutdown reporting error
* Fix gen
* Fix comments
* Periodically purge old database entries
* Add test fixture for migration
* Add Storybook
* Check if there are logs when displaying features
* Fix startup component overflow gap
* Fix startup log wrapping
---------
Co-authored-by: Asher <ash@coder.com >
2023-03-23 14:09:13 -05: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
Dean Sheather
5460ab4ba6
chore: switch to new wgtunnel via tunnelsdk ( #6489 )
2023-03-22 13:13:48 +00:00
Colin Adler
00860cf1c8
feat: add group mapping option for group sync ( #6705 )
...
* feat: add group mapping option for group sync
* fixup! feat: add group mapping option for group sync
2023-03-21 14:25:45 -05:00
Josh Vawdrey
97f77c4507
feat: allow DERP headers to be set ( #6572 )
...
* feat: allow DERP headers to be set
* chore: remove custom flag
* Clone DERP header on client create
* Adjust to use interface to cast headers
---------
Co-authored-by: Kyle Carberry <kyle@carberry.com >
2023-03-21 18:43:20 +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
Steven Masley
2321160c62
feat: Dbauthz is now default, remove out of experimental ( #6650 )
...
* feat: dbauthz always on, out of experimental
* Add ability to do rbac checks in unit tests
* Remove AuthorizeAllEndpoints
* Remove duplicate rbac checks
2023-03-21 09:10:22 -05:00
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