Bruno Quaresma
441ffd6a0b
feat: add PUT /api/v2/users/:user-id/suspend endpoint ( #1154 )
2022-04-26 09:00:07 -05:00
Kyle Carberry
f9ce54a51e
fix: Increase default provisioner daemons to 3 ( #1180 )
...
It's odd to only build one workspace at a time as a default.
2022-04-26 07:19:17 -05:00
Kyle Carberry
8d85d80a55
fix: Use proper shutdown signal for systemd ( #1179 )
...
Coder was being killed instantly, which caused builds
to randomly fail!
2022-04-25 21:09:11 -05:00
Kyle Carberry
744a00a55d
feat: Add GIT_COMMITTER information to agent env vars ( #1171 )
...
This makes setting up git a bit simpler, and users
can always override these values!
We'll probably add a way to disable our Git integration
anyways, so these could be part of that.
2022-04-25 20:03:54 -05:00
Kyle Carberry
877854a2f3
fix: Display proper access URL on server start ( #1172 )
...
Fixes #1170 .
2022-04-25 23:30:22 +00:00
Kyle Carberry
29d55887f9
fix: Update initial window size on SSH TTY ( #1174 )
...
It required a window resize before to trigger
a size update. This fixes it!
2022-04-25 23:02:54 +00:00
Kyle Carberry
947e8f9d2e
fix: Manually format external URL ( #1168 )
...
path.Join escaped the double slash!
v0.5.0
2022-04-25 22:22:31 +00:00
Kyle Carberry
159024a196
fix: Add redirect for OAuth from /login ( #1163 )
...
This allows for a complete sign-up flow:
1. coder login https://dev.coder.com
2. Navigates to /cli-auth
3. Redirects to /login?redirect=%2Fcli-auth
4. User signs in with GitHub
5. User is redirected back to /cli-auth
2022-04-25 17:07:10 -05:00
Kyle Carberry
4f7ceebe65
fix: Use target="_blank" to redirect for footer version ( #1166 )
2022-04-25 16:27:14 -05:00
Kyle Carberry
88669fd578
feat: Move workspaces under organizations ( #1109 )
...
This removes split ownership for workspaces. They are now
a resource of organizations and have a designated owner,
which is a user.
This enables simple administration for commands like:
- `coder stop ben/dev`
- `coder build logs colin/arch`
or if we decide to allow administrators to access workspaces,
they could even SSH using this syntax: `coder ssh colin/dev`.
2022-04-25 16:11:03 -05:00
Kyle Carberry
759fa5f626
fix: Use Lax mode for OAuth redirect cookies ( #1162 )
...
OAuthing was resulting in an error, because Strict
cookies are not sent on redirects.
2022-04-25 20:42:18 +00:00
dependabot[bot]
a201610761
chore: bump eslint-plugin-jest from 26.1.4 to 26.1.5 in /site ( #1136 )
...
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest ) from 26.1.4 to 26.1.5.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases )
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v26.1.4...v26.1.5 )
---
updated-dependencies:
- dependency-name: eslint-plugin-jest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 20:38:52 +00:00
Kyle Carberry
587cbac498
fix: Swap height and width for TTY size ( #1161 )
...
This was causing the TTY to be real wonky on Windows.
It didn't seem to have an effect on Linux, but I suspect
that's because of escape codes.
2022-04-25 15:30:02 -05:00
Colin Adler
0c9f27c63b
fix: ensure frontend is built in make install ( #1157 )
2022-04-25 15:24:23 -05:00
dependabot[bot]
8f464ce8c7
chore: bump @types/react-dom from 17.0.15 to 17.0.16 in /site ( #1159 )
...
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom ) from 17.0.15 to 17.0.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom )
---
updated-dependencies:
- dependency-name: "@types/react-dom"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 20:13:04 +00:00
dependabot[bot]
9fb660a6a3
chore: bump @typescript-eslint/eslint-plugin in /site ( #1153 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 5.19.0 to 5.21.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.21.0/packages/eslint-plugin )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 16:03:50 -04:00
dependabot[bot]
bb3420d006
chore: bump @types/node from 14.18.13 to 14.18.15 in /site ( #1155 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.18.13 to 14.18.15.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 16:01:15 -04:00
Presley Pizzo
bdc17f49e4
refactor: curry GetFormHelpers ( #1156 )
2022-04-25 15:45:33 -04:00
Kyle Carberry
33b58a0363
fix: Use forward slashes on Windows for gitssh ( #1146 )
2022-04-25 19:41:52 +00:00
Kyle Carberry
fccd4fab96
fix: Windows resize syscall using incorrect pointer ( #1152 )
...
Resizing of PTYs weren't working on Windows before,
but they are now!
2022-04-25 14:30:57 -05:00
dependabot[bot]
82552a9315
chore: bump eslint from 8.13.0 to 8.14.0 in /site ( #1135 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.13.0 to 8.14.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.13.0...v8.14.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 15:04:48 -04:00
Kyle Carberry
64348882a0
test: Loop if content length is zero for Windows ( #1151 )
...
On Windows it seems the file can be created before the
content has been written, which results in comparing
an empty string.
2022-04-25 19:01:49 +00:00
Kyle Carberry
9056c53054
fix: Disable known hosts checking for config-ssh ( #1150 )
...
This was causing the remote identity changed message.
We don't need to verify remote hosts because we
already auth via our API.
2022-04-25 18:59:18 +00:00
Colin Adler
2a57ea757a
feat: add audit package ( #1046 )
2022-04-25 18:57:59 +00:00
Kyle Carberry
a2dd618849
feat: Use environment variables and startup script in agent ( #1147 )
...
These values were ignored. Environment variables are applied to
new sessions, and are refreshed on reconnect. This is cool because
a workspace could be updated with new environment variables without
requiring a complete start/stop.
The startup script is only ran once regardless of changes, which
feels like the expected behavior.
2022-04-25 18:30:39 +00:00
Kyle Carberry
09405ddc40
test: Wait for WorkspaceResources to complete before exiting ( #1149 )
...
This caused a flake seen in:
https://github.com/coder/coder/runs/6162655678?check_suite_focus=true#step:9:87
2022-04-25 18:11:35 +00:00
dependabot[bot]
1e6f2cf750
chore: bump hashicorp/setup-terraform from 1 to 2 ( #1130 )
...
Bumps [hashicorp/setup-terraform](https://github.com/hashicorp/setup-terraform ) from 1 to 2.
- [Release notes](https://github.com/hashicorp/setup-terraform/releases )
- [Changelog](https://github.com/hashicorp/setup-terraform/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/setup-terraform/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: hashicorp/setup-terraform
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 12:59:47 -05:00
Kyle Carberry
5e6e626ace
test: Disable TestAgent/SessionTTY on Windows ( #1148 )
...
Either our ConPTY implementation is unstable, or something is
flakey with how it sends output. I'm not sure how our
implementation would sometimes work, so it's best to disable
this for CI stability for now.
2022-04-25 17:53:45 +00:00
dependabot[bot]
fdb27eaaf8
chore: bump github.com/hashicorp/hcl/v2 from 2.11.1 to 2.12.0 ( #1142 )
...
Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl ) from 2.11.1 to 2.12.0.
- [Release notes](https://github.com/hashicorp/hcl/releases )
- [Changelog](https://github.com/hashicorp/hcl/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/hcl/compare/v2.11.1...v2.12.0 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcl/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 17:38:59 +00:00
Kyle Carberry
185d97a65b
fix: Increase ptytest buffer to resolve flake ( #1141 )
...
From investigating the following run:
https://github.com/coder/coder/runs/6156348454?check_suite_focus=true
It's believed that the cause is data being discarded due to the buffer
filling up. This _might_ fix it, but not entirely sure.
2022-04-25 12:14:16 -05:00
Kyle Carberry
66d45f391e
test: Check if provisionerd is closed before setting run chan ( #1145 )
...
This race can be seen here:
https://github.com/coder/coder/runs/6159662393?check_suite_focus=true
2022-04-25 12:00:54 -05:00
dependabot[bot]
8c27b4e23d
chore: bump jaxxstorm/action-install-gh-release from 1.4.0 to 1.5.0 ( #1131 )
...
Bumps [jaxxstorm/action-install-gh-release](https://github.com/jaxxstorm/action-install-gh-release ) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/jaxxstorm/action-install-gh-release/releases )
- [Commits](https://github.com/jaxxstorm/action-install-gh-release/compare/v1.4.0...v1.5.0 )
---
updated-dependencies:
- dependency-name: jaxxstorm/action-install-gh-release
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 11:17:15 -05:00
dependabot[bot]
1acc454035
chore: bump github.com/mitchellh/mapstructure from 1.4.3 to 1.5.0 ( #1133 )
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.3 to 1.5.0.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.3...v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 11:16:32 -05:00
Steven Masley
8b54ea8562
test: Fix user pagination sort order ( #1143 )
...
Sort by uuid in expected output to cover when times are equal
for 2 users. The database (fake & pg) use id as as second ordering
to cover this edge case. Should realistically never happen in
production.
2022-04-25 10:27:08 -05:00
dependabot[bot]
c08fdc0c8c
chore: bump github.com/gohugoio/hugo from 0.97.2 to 0.97.3 ( #1132 )
...
Bumps [github.com/gohugoio/hugo](https://github.com/gohugoio/hugo ) from 0.97.2 to 0.97.3.
- [Release notes](https://github.com/gohugoio/hugo/releases )
- [Changelog](https://github.com/gohugoio/hugo/blob/master/goreleaser.yml )
- [Commits](https://github.com/gohugoio/hugo/compare/v0.97.2...v0.97.3 )
---
updated-dependencies:
- dependency-name: github.com/gohugoio/hugo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 09:43:57 -05:00
dependabot[bot]
2959137f0d
chore: bump github.com/pion/webrtc/v3 from 3.1.29 to 3.1.34 ( #1134 )
...
Bumps [github.com/pion/webrtc/v3](https://github.com/pion/webrtc ) from 3.1.29 to 3.1.34.
- [Release notes](https://github.com/pion/webrtc/releases )
- [Commits](https://github.com/pion/webrtc/compare/v3.1.29...v3.1.34 )
---
updated-dependencies:
- dependency-name: github.com/pion/webrtc/v3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 09:43:40 -05:00
dependabot[bot]
dbb4a979cc
chore: bump cloud.google.com/go/compute from 1.6.0 to 1.6.1 ( #1140 )
...
Bumps [cloud.google.com/go/compute](https://github.com/googleapis/google-cloud-go ) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases )
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-cloud-go/compare/pubsub/v1.6.0...pubsub/v1.6.1 )
---
updated-dependencies:
- dependency-name: cloud.google.com/go/compute
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 09:43:20 -05:00
dependabot[bot]
68d79e0f5f
chore: bump google.golang.org/api from 0.74.0 to 0.75.0 ( #1129 )
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.74.0 to 0.75.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.74.0...v0.75.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 09:28:09 -05:00
dependabot[bot]
5575e3c485
chore: bump gopkg.in/DataDog/dd-trace-go.v1 from 1.37.1 to 1.38.0 ( #1128 )
2022-04-25 06:29:18 -05:00
Cian Johnston
c32a006e8f
feat: add competitive advanced git functionality ( #1077 )
2022-04-25 09:01:32 +01:00
Kyle Carberry
7e33d80fa9
feat: Add helper output on failed gitssh ( #1127 )
2022-04-25 00:29:15 -05:00
Kyle Carberry
4417dd5951
feat: Add STUN servers to enable P2P ( #1126 )
...
This exposes a `--stun-server` option for listing
STUN servers. By default it uses the Google STUN
server, but this is not required.
2022-04-25 04:52:07 +00:00
Kyle Carberry
c8e566fe42
feat: Add links for registering git key ( #1125 )
2022-04-25 04:27:45 +00:00
Kyle Carberry
8ff0c8b02a
fix: Write agent URL to file for gitssh ( #1123 )
...
This was broken because gitssh couldn't find the URL.
Now it can, and SSH is confirmed to work on dogfood! 🥳
2022-04-25 04:06:52 +00:00
Kyle Carberry
68f67c54b6
fix: Add sync.Once to prevent double close in test ( #1124 )
...
https://github.com/coder/coder/runs/6151451291?check_suite_focus=true
2022-04-25 04:06:18 +00:00
Colin Adler
abc13c5a92
fix: use fmt.Fprintln to print workspaces table ( #1122 )
2022-04-25 04:04:34 +00:00
Kyle Carberry
a6ea99541e
fix: Return from update loop when job completes ( #1121 )
...
Update was running forever, which stopped jobs from timing
out unless a restart occurred. This also fixes complete properly
reporting an error.
v0.4.4
2022-04-25 03:41:03 +00:00
Kyle Carberry
d44876382d
fix: Remove unique index on auth tokens ( #1120 )
...
If a workspace is started multiple times, resources may
not be invalidated. This means an auth token can be
reused for a workspace.
coderd closes old agent connections, so this is expected
behavior, and the agent will reconnect properly.
2022-04-24 22:24:02 -05:00
Kyle Carberry
885d5f2098
fix: Monitor TTY size when using SSH ( #1119 )
...
The TTY wasn't resizing properly, and reasonably so considering
we weren't updating it 🤦 .
2022-04-24 22:23:54 -05:00
Kyle Carberry
0c042dc249
fix: Remove duplicate index that blocked same name ( #1118 )
...
Multiple workspaces couldn't be created with the same names!
2022-04-25 02:40:14 +00:00