Ben Potter
09ee844389
fix: git docs link ( #5099 )
2022-11-15 21:19:52 +00:00
Kyle Carberry
fc0a493b72
feat: Add no_refresh option to Git auth configs ( #5097 )
...
This allows organizations to disable refreshing Git tokens
and instead prompt for authentication again.
2022-11-15 21:06:13 +00:00
Bruno Quaresma
2a46702fc5
fix: Syntax highlighting with long lines and untar content with emojis ( #5098 )
2022-11-15 20:09:54 +00:00
Ammar Bandukwala
44d3225932
.github: remove issue templates
...
Developers prefer no template based on Slack poll.
2022-11-15 20:02:50 +00:00
Mathias Fredriksson
d9a83fc723
fix: Refactor tailnet conn AwaitReachable to allow for pings >1s RTT ( #5096 )
2022-11-15 20:59:22 +02:00
Marcin Tojek
eda7c66896
chore: TemplatesPage tests failing on M1 ( #5088 )
2022-11-15 19:45:01 +01:00
Bruno Quaresma
e68923fa36
fix: Worker security policy ( #5093 )
2022-11-15 17:02:24 +00:00
Mathias Fredriksson and 李董睿煊
9fb710a04f
feat: Add allow everyone option to GitHub OAuth2 logins ( #5086 )
...
* feat: Add allow everyone option for GitHub OAuth
* fix: Detect team when multiple orgs are present
Co-authored-by: 李董睿煊 <dongruixuan@hotmail.com >
2022-11-15 18:56:46 +02:00
Bruno Quaresma
f262fb4811
feat: Add template version page ( #5071 )
2022-11-15 16:24:13 +00:00
Kyle Carberry
773fc73280
fix: Add debug logging for connecting to psql ( #5078 )
...
If a database connection hung, the output was unclear.
2022-11-14 20:10:37 -06:00
Kyle Carberry
50b5becfb0
fix: Invert err nil check for opening Git URL ( #5077 )
...
Thanks @kconley-sq! 🥳
2022-11-14 20:10:23 -06:00
Geoffrey Huntley
b5181aacd7
feat(i18n): adjust language when deleting a template ( #5056 )
2022-11-15 10:12:53 +10:00
Garrett Delfosse
88f3691dcc
feat: add count to get users endpoint ( #5016 )
2022-11-14 17:22:57 -05:00
Marcin Tojek
49b340e039
Show template.display_name in the site UI ( #5069 )
...
* Show display_name field in the template settings
* Show template.display_name on pages: Templates, CreateWorkspace
* Fix: template.display_name pattern
* make fmt/prettier
* Fix tests
* Fix: make fmt/prettier
* Fix: merge
* Fix: autoFocus
* i18n: display_name
v0.12.7
2022-11-14 21:11:50 +01:00
Mathias Fredriksson
e872e18883
chore: Set initialism for DefaultTTL (from DefaultTtl) ( #4996 )
2022-11-14 20:14:08 +02:00
Ammar Bandukwala
97dbd4dc5d
Implement Quotas v3 ( #5012 )
...
* provisioner/terraform: add cost to resource_metadata
* provisionerd/runner: use Options struct
* Complete provisionerd implementation
* Add quota_allowance to groups
* Combine Quota and RBAC licenses
* Add Opts to InTx
2022-11-14 17:57:33 +00:00
Kira Pilot
3fb7892c07
fix: template permissions page never loads ( #5014 )
...
* removed redundant permissions loader
* fixed tests
2022-11-14 12:33:17 -05:00
Kyle Carberry
fefacc5bfd
chore: Expose additional agent options to telemetry ( #5070 )
...
This also adds a few properties for deployments!
2022-11-14 10:11:08 -06:00
Geoffrey Huntley
9692cc2e22
housekeeping: structure GitHub issues via templates ( #5025 )
2022-11-14 09:32:54 -06:00
Marcin Tojek
cf5d48bb5a
fix: do not skip properties on creating templates ( #5060 )
...
* fix: do not skip properties while creating templates
* test: empty edit
2022-11-14 15:32:18 +01:00
Mathias Fredriksson
4b3d211e00
fix: Use UTC in cli/cliui table test to match expected output ( #5063 )
2022-11-14 15:08:51 +02:00
Muhammad Atif Ali and Dean Sheather
990be63c60
feat: create winget package workflow ( #4761 )
...
Co-authored-by: Dean Sheather <dean@deansheather.com >
2022-11-14 12:59:08 +00:00
Marcin Tojek and Mathias Fredriksson
1b6d0c39e1
docs: Rephrase Templates section ( #5062 )
...
* docs: Rephrase Templates section
* Update docs/templates.md
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
* Update docs/templates.md
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
* Update docs/templates.md
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
* Update docs/templates.md
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
2022-11-14 12:06:16 +00:00
Mathias Fredriksson
e72927f3ab
fix: Avoid running shell twice in coder agent ( #5061 )
...
The users login shell would be executed as:
/bin/bash -c '/bin/bash -l'
This simplifies the command for login shells so that the executed
command is:
/bin/bash -l
2022-11-14 14:01:22 +02:00
Mathias Fredriksson
c515085450
fix: Unify context usage for agent cmd and logs ( #5059 )
2022-11-14 13:48:44 +02:00
Geoffrey Huntley
cbb1e91372
feat(windows): default to PowerShell v7 over v6 and fallback to cmd.exe ( #5053 )
2022-11-14 15:43:40 +10:00
Mathias Fredriksson
f017548a9c
fix: Return correct exit code for SFTP sessions ( #5044 )
...
Fixes #5038
2022-11-13 23:22:50 +02:00
Kyle Carberry
2a6fff9227
fix: Set a default CODER_ACCESS_URL in Helm ( #5041 )
...
* fix: Set a default `CODER_ACCESS_URL` in Helm
This allows for a simple `helm apply` to create a full Coder
deployment that works for creating workspaces.
* Update docs
2022-11-13 14:49:57 -06:00
Ammar Bandukwala and Kyle Carberry
73f91e4690
ci: use big runners ( #4990 )
...
* chore: Close idle connections on test cleanup
It's possible that this was the source of a leak on Windows...
* ci: use big runners
* fix: Improve tailnet connections by reducing timeouts
This awaits connection ping before running a dial. Before,
we were hitting the TCP retransmission and handshake timeouts,
which could intermittently add 1 or 5 seconds to a connection
being initialized.
* Add logging to Startupscript test
* Add better logging
* Write startup script logs to fs dir
* Fix startup script test
* Fix startup script test
* Reduce test timeout
* Use central tmp dir in agent
* Adjust output
* Skip startup script test on Windows
Co-authored-by: Kyle Carberry <kyle@carberry.com >
2022-11-13 14:23:23 -06:00
Arthur Normand
9578ce9f77
OAuth now uses client TLS certs (if configured) ( #5042 )
...
* OAuth now uses client TLS certs (if configured)
* Update docs
* Cleaning
* Fix lint errors and generate static files
* Fix lint error and regenerate more static files
* Suppress lint error
2022-11-13 14:15:06 -06:00
Kyle Carberry
49c7648af5
chore: Close idle connections on test cleanup ( #4993 )
...
It's possible that this was the source of a leak on Windows...
2022-11-13 14:06:03 -06:00
zhaozhiming
30e9ecbc96
docs: fix offline install docs some errors ( #5039 )
...
* docs: fix offline install docs some error
* retrigger checks
2022-11-13 14:05:19 -06:00
Kyle Carberry
82f494c99c
fix: Improve tailnet connections by reducing timeouts ( #5043 )
...
* fix: Improve tailnet connections by reducing timeouts
This awaits connection ping before running a dial. Before,
we were hitting the TCP retransmission and handshake timeouts,
which could intermittently add 1 or 5 seconds to a connection
being initialized.
* Update Tailscale
2022-11-13 11:33:05 -06:00
Geoffrey Huntley
4646f58072
housekeeping(terraform): bump TerraformVersion ( #4867 )
2022-11-12 09:35:12 +10:00
Ammar Bandukwala
95fb59696e
Refactor Provisioner to distinguish Plan and Apply ( #5036 )
2022-11-11 16:45:58 -06:00
Mathias Fredriksson
71601f4971
fix: Fix log wrapper for vite in scripts/develop.sh ( #5030 )
...
The pid tracking refactor resulted in the pipe while echo to block the
script from continuing and showing the banner at the end. This change
redirects the stdout for the `start_cmd` to a new fd which `while` is
reading from.
2022-11-11 12:39:33 +00:00
Eric Paulsen
823b02ac9c
docs: deprecate name arg ( #5026 )
2022-11-11 06:16:14 +00:00
Kyle Carberry
4b7c710755
fix: Block creating workspaces with deleted templates ( #5019 )
...
@coadler and @deansheather bricked a Coder deployment with this...
v0.12.6
2022-11-10 16:53:14 -06:00
Kyle Carberry
927c241995
fix: Debounce AcquireJob when no jobs are available ( #5017 )
...
This prevents constant database spam at scale to a maximum
of 60 queries/s per coderd instance.
2022-11-10 22:37:33 +00:00
Geoffrey Huntley
f32748c929
housekeeping(stalebot): never close never stales ( #4891 )
2022-11-10 16:28:20 -06:00
Dean Sheather
8e5af82275
feat: add api-rate-limit flag ( #5013 )
2022-11-10 21:53:48 +00:00
Marcin Tojek
2042b575dc
feat: Add template display name (backend) ( #4966 )
...
* Rename to nameValidator
* Refactor: NameValid
* Fix: comment
* Define new migration
* Include display_name
* Update typesGenerated.ts
* Update meta
* Adjust tests
* CLI tests
* Fix: audit
* Fix: omitempty
* site: display_name is optional
* unit: TestUsernameValid
* entities.ts: add display_name
* site: TemplateSettingsPage.test.tsx
* Fix: TemplateSettingsForm.tsx
* Adjust tests
* Add comment to display_name column
* Fix: rename
* Fix: make
* Loosen regexp
* Fix: err check
* Fix: template name length
* Allow for whitespaces
* Update migration number
2022-11-10 21:51:09 +01:00
Colin Adler
f3eb662208
fix: add index for workspace_resource.job_id column ( #5009 )
2022-11-10 20:09:44 +00:00
Mathias Fredriksson
5e2253030f
fix: Revert develop.sh timeout -> curl change ( #5008 )
...
It seems `--retry-all-errors` is not available on e.g. curl 7.68.0.
2022-11-10 19:49:11 +00:00
Colin Adler and Dean Sheather
8c8344ca13
fix: tolerate non-json lines in provisionerd logs ( #5006 )
...
Co-authored-by: Dean Sheather <dean@deansheather.com >
2022-11-10 13:26:57 -06:00
Mathias Fredriksson
a25deb939b
fix: Misc improvements to scripts/develop.sh ( #4995 )
...
* Use new `/healthz` endpoint for checking API liveness
* Improved credential handling/retrying in failure scenarios
* Separate site (`vite`) logs with prefix and date, additionally this
method also disables the `vite` clearing of the screen
* Show all interfaces coder API is listening on (due to `0.0.0.0`)
* Improved shutdown procedure / interrupt handling
2022-11-10 20:47:42 +02:00
Garrett Delfosse and Presley Pizzo
766a2ad590
chore: refactor workspace count to single route ( #4809 )
...
Co-authored-by: Presley Pizzo <presley@coder.com >
2022-11-10 13:25:46 -05:00
Mathias Fredriksson
5fb9c33ecd
fix: Fix ssh message/spinner in VSCode integrated terminal ( #5000 )
...
* fix: Fix ssh message/spinner in VSCode integrated terminal
The messages never show up in VSCode integrated terminal due to the
defer `fmt.Fprintf`. There could be a race in VSCode in handling the
terminal codes but ultimately, we can simplify our logic by just
stopping the spinner for the duration of the update.
* Avoid race in starting spinner after exit
2022-11-10 18:21:38 +00:00
Dean Sheather
e847276d74
feat: add cleanup strategy to loadtest ( #4991 )
2022-11-11 04:14:50 +10:00
Kira Pilot
1c9677d37a
Template delete button/kira pilot ( #4992 )
...
* removed button
* ripped out delete dialog
* fixed tests
* added error message back
* redirecting after success
2022-11-10 10:41:36 -05:00