123fe0131e
fix: Avoid double escaping of ProxyCommand on Windows ( #3664 )
...
Fixes #2853
2022-08-24 19:12:40 +03:00
09142255e6
fix: Add consistent use of coder templates init
( #3665 )
...
Closes #2303 .
2022-08-24 11:40:36 -04:00
706bceb7e7
fix: Remove reference to coder rebuild
command ( #3670 )
...
Closes #2464 .
2022-08-24 15:35:46 +00:00
eba753ba87
fix: template: enforce bounds of template max_ttl ( #3662 )
...
This PR makes the following changes:
- enforces lower and upper limits on template `max_ttl_ms`
- adds a migration to enforce 7-day cap on `max_ttl`
- allows setting template `max_ttl` to 0
- updates template edit CLI help to be clearer
2022-08-24 15:45:14 +01:00
343d1184b2
fix: Clean up coder config-ssh
dry-run behavior ( #3660 )
...
This commit also drops old deprecated code.
Fixes #2982
2022-08-24 16:58:46 +03:00
7a71180ae6
chore: Enable comments for database dump / models ( #3661 )
2022-08-24 12:44:30 +00:00
253e6cbffa
web: fix template permission check ( #3652 )
...
Resolves #3582
2022-08-23 23:44:32 +00:00
184f0625e1
coder licenses add CLI command ( #3632 )
...
* coder licenses add CLI command
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix up lint
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix t.parallel call
Signed-off-by: Spike Curtis <spike@coder.com >
* Code review improvements
Signed-off-by: Spike Curtis <spike@coder.com >
* Lint
Signed-off-by: Spike Curtis <spike@coder.com >
Signed-off-by: Spike Curtis <spike@coder.com >
2022-08-23 13:55:39 -07:00
6dacf70898
fix: disable AccountForm when user is not allowed edit users ( #3649 )
...
* RED: add unit tests for AccountForm username field
* GREEN: disable username field and button on account form when user edits are not allowed
Co-authored-by: Joe Previte <jjprevite@gmail.com >
2022-08-23 20:19:26 +00:00
b9dd566804
fix scrollbar on ssh key view ( #3647 )
2022-08-23 15:22:42 -04:00
e44f7adb7e
feat: Set SSH env vars: SSH_CLIENT
, SSH_CONNECTION
and SSH_TTY
( #3622 )
...
Fixes #2339
2022-08-23 21:19:57 +03:00
9c0cd5287c
fix: clarify we download templates on template select ( #3296 )
...
Co-authored-by: Joe Previte <jjprevite@gmail.com >
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com >
2022-08-23 17:30:46 +00:00
5025fe2fa0
fix: Protect circular buffer during close in reconnectingPTY ( #3646 )
2022-08-23 16:07:31 +00:00
49de44c76d
feat: Add LicenseBanner ( #3568 )
...
* Extract reusable Pill component
* Make icon optional
* Get pills in place
* Rough styling
* Extract Expander component
* Fix alignment
* Put it in action - type error
* Hide banner by default
* Use generated type
* Move PaletteIndex type
* Tweak colors
* Format, another color tweak
* Add stories
* Add tests
* Update site/src/components/Pill/Pill.tsx
Co-authored-by: Kira Pilot <kira@coder.com >
* Update site/src/components/Pill/Pill.tsx
Co-authored-by: Kira Pilot <kira@coder.com >
* Comments
* Remove empty story, improve empty test
* Lint
Co-authored-by: Kira Pilot <kira@coder.com >
2022-08-23 11:26:22 -04:00
f7ccfa2ab9
feat: Set CODER=true
in workspaces ( #3637 )
...
Fixes #2340
2022-08-23 14:29:01 +03:00
8343a4f199
chore: cleanup go.mod ( #3636 )
2022-08-22 22:40:11 -05:00
a7b49788f5
chore: deduplicate OAuth login code ( #3575 )
2022-08-22 18:13:46 -05:00
a07ca946c3
Increase default auto-stop to 12h ( #3631 )
...
Resolves #3462 .
And, clarify language to resolve #3509 .
2022-08-22 17:24:15 -05:00
8ca3fa9712
fix: use hardcoded "coder" user for AWS and Azure ( #3625 )
2022-08-22 22:19:30 +00:00
b101a6f3f4
POST license API endpoint ( #3570 )
...
* POST license API
Signed-off-by: Spike Curtis <spike@coder.com >
* Support interface{} types in generated Typescript
Signed-off-by: Spike Curtis <spike@coder.com >
* Disable linting on empty interface any
Signed-off-by: Spike Curtis <spike@coder.com >
* Code review updates
Signed-off-by: Spike Curtis <spike@coder.com >
* Enforce unique licenses
Signed-off-by: Spike Curtis <spike@coder.com >
* Renames from code review
Signed-off-by: Spike Curtis <spike@coder.com >
* Code review renames and comments
Signed-off-by: Spike Curtis <spike@coder.com >
Signed-off-by: Spike Curtis <spike@coder.com >
2022-08-22 15:02:50 -07:00
85acfdf0dc
chore: bump msw from 0.44.2 to 0.45.0 in /site ( #3629 )
...
Bumps [msw](https://github.com/mswjs/msw ) from 0.44.2 to 0.45.0.
- [Release notes](https://github.com/mswjs/msw/releases )
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mswjs/msw/compare/v0.44.2...v0.45.0 )
---
updated-dependencies:
- dependency-name: msw
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 16:56:39 -04:00
2ee6acb2ad
Upgrade frontend to React 18 ( #3353 )
...
Co-authored-by: Kira Pilot <kira.pilot23@gmail.com >
2022-08-22 15:42:06 -05:00
6fde537f9c
web: use seconds in max TTL input ( #3576 )
...
Milliseconds are more difficult to deal with due to
all of the zeros.
Also, describe this feature as "auto-stop" to be
consistent with our Workspace page UI and CLI. "ttl"
is our backend lingo which should eventually be updated.
2022-08-22 20:35:17 +00:00
5e36be8cbb
docs: remove architecture diagram ( #3615 )
...
The diagram was more confusion than helpful.
v0.8.6
2022-08-22 10:56:10 -05:00
58d29264aa
feat: Add template icon to the workspaces page ( #3612 )
...
This removes the last built by column from the page. It seemed
cluttered to have both on the page, and is simple enough to
click on the workspace to see additional info.
2022-08-22 09:42:11 -05:00
369a9fb535
fix: add writeable home dir to docker image ( #3603 )
2022-08-22 19:43:13 +10:00
68e17921f0
fix: tooltip 404 ( #3618 )
2022-08-21 18:50:36 -05:00
b0fe9bcdd1
chore: Upgrade to Go 1.19 ( #3617 )
...
This is required as part of #3505 .
2022-08-21 22:32:53 +00:00
d37fb054c8
docs: outdent remote desktop docs ( #3614 )
...
Resolves #3590
2022-08-21 01:59:40 +00:00
54b8e794ce
feat: Add emoji picker for template icons ( #3601 )
2022-08-19 16:42:05 -04:00
a4c90c591d
feat: Add icon to the template page ( #3604 )
2022-08-19 15:37:16 -03:00
690e6c6585
Check AGPL code doesn't import enterprise ( #3602 )
...
* Check AGPL code doesn't import enterprise
Signed-off-by: Spike Curtis <spike@coder.com >
* use error/log instead of echo/exit
Signed-off-by: Spike Curtis <spike@coder.com >
Signed-off-by: Spike Curtis <spike@coder.com >
2022-08-19 17:49:08 +00:00
91bfcca287
fix(ui): decrease WorkspaceActions popover padding ( #3555 )
...
There was too much padding on the WorkspaceActions dropdown. This fixes
that.
2022-08-19 09:58:31 -07:00
c14a4b92ed
feat: Display and edit template icons in the UI ( #3598 )
2022-08-19 13:09:07 -03:00
e938e8577f
fix: add missing && \ in Dockerfile ( #3594 )
...
* fix: add missing && \ in Dockerfile
* fixup: add goboring after PATH goboring
2022-08-19 15:41:17 +00:00
985eea6099
fix: Update icon when metadata is changed ( #3587 )
...
This was causing names to become empty! Fixes #3586 .
2022-08-19 10:11:54 -05:00
c417115eb1
feat: add cmake, nfpm to dogfood dockerfile ( #3558 )
...
* feat: add cmake, nfpm to dogfood dockerfile
* fixup: formatting
* Update dogfood/Dockerfile
Co-authored-by: Cian Johnston <cian@coder.com >
Co-authored-by: Cian Johnston <cian@coder.com >
2022-08-19 15:10:56 +00:00
544bf01fbb
chore: Update coder/coder
provider in example templates ( #3581 )
...
Additionally, a convenience script was added to
`examples/update_template_versions.sh` to keep the templates up-to-date.
Fixes #2966
2022-08-19 17:18:11 +03:00
80f042f01b
feat: Add icon to templates ( #3561 )
2022-08-19 13:17:35 +00:00
57f3410009
cli: remove confirm prompt when starting a workspace ( #3580 )
2022-08-19 11:08:56 +01:00
3fdae47b87
fix: Shadow err in TestProvision_Cancel to fix test race ( #3579 )
...
Fixes #3574
2022-08-19 11:56:28 +03:00
4ba3573632
fix: quickstart 404 ( #3564 )
2022-08-18 18:47:12 -05:00
f6b0835982
fix: avoid processing updates to usernames ( #3571 )
...
- With the support of OIDC we began processing updates to a user's
email and username to stay in sync with the upstream provider. This
can cause issues in templates that use the user's username as a stable
identifier, potentially causing the deletion of user's home volumes.
- Fix some faulty error wrapping.
2022-08-18 17:56:17 -05:00
04c5f924d7
fix: ui: workspace bumpers now honour template max_ttl ( #3532 )
...
- chore: WorkspacePage: invert workspace schedule bumper logic for readibility
- fix: make workspace bumpers honour template max_ttl
- chore: refactor workspace schedule bumper logic to util/schedule.ts and unit test separately
2022-08-18 23:32:23 +01:00
7599ad4bf6
feat: Add template settings page ( #3557 )
2022-08-18 16:58:01 -03:00
aabb72783c
docs: update CONTRIBUTING requirements ( #3541 )
...
* docs: update CONTRIBUTING requirements
* Update docs/CONTRIBUTING.md
* refactor: remove dev from Makefile
* fixup: add linux section
2022-08-18 17:11:58 +00:00
55890df6f1
feat: add helm README, install guide, linters ( #3268 )
2022-08-19 02:41:23 +10:00
3610402cd8
Use new table formatter everywhere ( #3544 )
2022-08-19 02:41:00 +10:00
c43297937b
feat: Add Kubernetes and resource metadata telemetry ( #3548 )
...
Fixes #3524 .
2022-08-18 15:57:46 +00:00
f1423450bd
fix: Allow terraform provisions to be gracefully cancelled ( #3526 )
...
* fix: Allow terraform provisions to be gracefully cancelled
This change allows terraform commands to be gracefully cancelled on
Unix-like platforms by signaling interrupt on provision cancellation.
One implementation detail to note is that we do not necessarily kill a
running terraform command immediately even if the stream is closed. The
reason for this is to allow for graceful cancellation even in such an
event. Currently the timeout is set to 5 minutes by default.
Related: #2683
The above issue may be partially or fully fixed by this change.
* fix: Remove incorrect minimumTerraformVersion variable
* Allow init to return provision complete response
2022-08-18 17:03:55 +03:00