Kyle Carberry
4c35b8174a
fix: Prefix paths in find on macOS ( #1284 )
...
This fixes paths not resolving in macOS, causing
the build target to fail. This also renames the
site target to specify the index.html, which is
the output artifact of building the site.
v0.5.4
2022-05-04 09:47:48 -05:00
Kyle Carberry
e860cc4814
fix: Build site in release ( #1283 )
...
This was using Mac Make, which is missing some options:
https://github.com/coder/coder/runs/6265845123?check_suite_focus=true#step:10:6
2022-05-04 14:23:48 +00:00
Colin Adler
9d2e788fea
feat: allow verbose logging in coder server ( #1280 )
2022-05-03 16:13:30 -05:00
Steven Masley
d0293e4d33
feat: Implement list roles & enforce authorize examples ( #1273 )
2022-05-03 16:10:19 -05:00
Colin Adler
0f9e30e54f
fix: use correct enable bool for pprof ( #1279 )
2022-05-03 19:54:10 +00:00
Colin Adler
e530ab2838
chore: add api specific 404 ( #1272 )
...
Prevents weird errors when routes are moved, like
https://github.com/coder/coder/issues/1205
2022-05-03 09:22:08 -05:00
dependabot[bot]
ba80c799d7
chore: bump typescript from 4.6.3 to 4.6.4 in /site ( #1252 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.6.3 to 4.6.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.3...v4.6.4 )
---
updated-dependencies:
- dependency-name: typescript
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-05-03 09:11:39 -05:00
Kyle Carberry
60aa40a56f
fix: Remove microsecond wait in peer.(*Channel) ( #1270 )
...
This was implemented when our WebRTC code was much less hardened.
It's likely this was a cause of some other problem.
Closes #1076 .
2022-05-03 14:00:59 +00:00
Colin Adler
eda85a0141
fix: force logs to flush on close in peer.(*Conn) ( #1268 )
2022-05-03 08:36:48 -05:00
Colin Adler
9319c39257
fix: additional provisionerd test double closes ( #1267 )
2022-05-03 08:02:54 -05:00
Colin Adler
55ad97bbd7
feat: add pprof and prometheus metrics to coder server ( #1266 )
2022-05-03 12:48:02 +00:00
Kyle Carberry
5dcaf940b6
fix: Build site in deploy ( #1265 )
v0.5.3
2022-05-02 23:12:13 +00:00
Kyle Carberry
fd49a18b47
feat: Add "state" command to pull and push workspace state ( #1264 )
...
It's possible for a workspace to become in an invalid state.
This is something we'll detect for jobs, and allow monitoring of.
These commands will allow admins to manually reconcile state.
2022-05-02 17:51:58 -05:00
Kyle Carberry
43c6bff5ae
fix: Use "terraform state pull" instead of "terraform show" ( #1262 )
...
Although the terraform-exec docs don't indicate this, the result of
"terraform show" isn't actually the state... it's a trimmed version
of the state that excludes resource identifiers, essentially removing
all state that did exist.
Tests will be written to ensure Terraform state reconciliation can occur.
This will happen in another PR, as dogfood is currently broken because of this.
2022-05-02 20:02:38 +00:00
Kyle Carberry
fc642edf51
fix: Use GoReleaser Action in deploy script ( #1263 )
...
This reduces conflictions with our Makefile, which is presently
primarily a user script.
2022-05-02 20:00:08 +00:00
Colin Adler
81bef1c83e
feat: add audit logging database schema ( #1225 )
2022-05-02 19:30:46 +00:00
Kyle Carberry
e4e60256ac
fix: Use "make build" on deploy ( #1261 )
...
This was a missed item in https://github.com/coder/coder/pull/1259 .
2022-05-02 14:04:45 -05:00
Kyle Carberry
dacc025cf3
fix: Adjust Makefile tagets to use dependencies ( #1259 )
...
It was getting slow to run `make gen` and other operations,
but this resolves it by targeting files properly.
2022-05-02 13:23:13 -05:00
dependabot[bot]
2293d7efd1
chore: bump github.com/gohugoio/hugo from 0.97.3 to 0.98.0 ( #1247 )
...
Bumps [github.com/gohugoio/hugo](https://github.com/gohugoio/hugo ) from 0.97.3 to 0.98.0.
- [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.3...v0.98.0 )
---
updated-dependencies:
- dependency-name: github.com/gohugoio/hugo
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-05-02 17:49:02 +00:00
dependabot[bot]
9032b7e33f
chore: bump github.com/open-policy-agent/opa from 0.39.0 to 0.40.0 ( #1245 )
...
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa ) from 0.39.0 to 0.40.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases )
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.39.0...v0.40.0 )
---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
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-05-02 17:36:02 +00:00
dependabot[bot]
6dd378c194
chore: bump google.golang.org/api from 0.75.0 to 0.77.0 ( #1249 )
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.75.0 to 0.77.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.75.0...v0.77.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-05-02 17:32:27 +00:00
Kyle Carberry
3d96785bf5
fix: Add lock around read/write of circular buffer ( #1258 )
...
This fixes a race seen in:
https://github.com/coder/coder/runs/6260926628?check_suite_focus=true#step:10:666
2022-05-02 17:31:04 +00:00
dependabot[bot]
7fb3c5728b
chore: bump gopkg.in/DataDog/dd-trace-go.v1 from 1.38.0 to 1.38.1 ( #1246 )
...
Bumps [gopkg.in/DataDog/dd-trace-go.v1](https://github.com/DataDog/dd-trace-go ) from 1.38.0 to 1.38.1.
- [Release notes](https://github.com/DataDog/dd-trace-go/releases )
- [Commits](https://github.com/DataDog/dd-trace-go/compare/v1.38.0...v1.38.1 )
---
updated-dependencies:
- dependency-name: gopkg.in/DataDog/dd-trace-go.v1
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-05-02 17:16:45 +00:00
Kyle Carberry
3176e10562
fix: Use atomic value for logger in peer ( #1257 )
...
This caused many races where logs would escape the tests
by milliseconds. By using an atomic on the logger,
we can fix all of it!
2022-05-02 11:49:59 -05:00
Kyle Carberry
e531c0930c
fix: Write agent logs to "/tmp/coder-agent.log" for debugging ( #1239 )
...
It was difficult to obtain logs for the agent if it failed to
start for some reason. Now they'll go to a consistent spot!
2022-05-02 16:36:51 +00:00
Kyle Carberry
c2b5009208
fix: Unnest workspaces command to the top-level ( #1241 )
...
This changes all "coder workspace *" commands to root.
A few of these were already at the root, like SSH. The
inconsistency made for a confusing experience.
2022-05-02 11:08:52 -05:00
Kyle Carberry
252d868298
fix: Prefix buildinfo tag with "v" ( #1256 )
...
This fixes the format of production and development build
tags.
2022-05-02 15:58:36 +00:00
Kyle Carberry
d139a16446
fix: Allow remote state to be used with Terraform ( #1242 )
...
The Terraform Provisioner depended on the statefile content
being at a specific path, which disallowed the use of external
state providers. This fixes it!
2022-05-02 15:41:27 +00:00
Ben Potter
aaf6aee979
fix: clarify AWS access key ID vs secret ( #1231 )
2022-05-02 10:28:58 -05:00
Kyle Carberry
8701e0084c
feat: Update Terraform provider to support "dir" in "coder_agent" ( #1219 )
...
This allows users to specify a starting directory for shell sessions.
2022-05-02 10:27:34 -05:00
Kyle Carberry
a79aa6418a
fix: Use cliui.WorkspaceBuild to prevent cancel of builds jobs ( #1255 )
...
Build jobs cannot gracefully terminate because Terraform generally
cannot gracefully terminate.
2022-05-02 10:20:47 -05:00
Bruno Quaresma
75343288ff
feat: Add user menu on users table ( #1222 )
2022-05-02 14:58:49 +00:00
dependabot[bot]
a71f3934c5
chore: bump github.com/go-playground/validator/v10 ( #1254 )
...
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator ) from 10.10.1 to 10.11.0.
- [Release notes](https://github.com/go-playground/validator/releases )
- [Commits](https://github.com/go-playground/validator/compare/v10.10.1...v10.11.0 )
---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
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-05-02 08:21:35 -05:00
Bruno Quaresma
2043d1a4cc
chore: Port ConfirmDialog from v1 ( #1228 )
2022-05-02 08:17:15 -05:00
dependabot[bot]
4ff5734720
chore: bump github.com/charmbracelet/charm from 0.11.0 to 0.12.0 ( #1248 )
...
Bumps [github.com/charmbracelet/charm](https://github.com/charmbracelet/charm ) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/charmbracelet/charm/releases )
- [Changelog](https://github.com/charmbracelet/charm/blob/main/.goreleaser.yml )
- [Commits](https://github.com/charmbracelet/charm/compare/v0.11.0...v0.12.0 )
---
updated-dependencies:
- dependency-name: github.com/charmbracelet/charm
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-05-02 07:59:46 -05:00
Kyle Carberry
34dbca7166
fix: Remove unnecessary warnings on SSH ( #1243 )
...
This disables the "Warning: Permanently added 'hostname' (RSA) to the list of known hosts."
message from appearing on every SSH. This happens because we ignore the known hosts.
2022-05-01 20:31:22 -05:00
Kyle Carberry
9b37a0de31
fix: Disable ErrorLog in http.Server ( #1244 )
...
Vault does similarly: https://github.com/hashicorp/vault/blob/e2490059d0711635e529a4efcbaa1b26998d6e1c/command/server.go#L2714
These messages have primarily been noise.
2022-05-01 20:31:12 -05:00
Kyle Carberry
b948f2dab5
fix: Use environment variables for agent authentication ( #1238 )
...
* fix: Update GIT_COMMITTER_NAME to use username
This was a mistake when adding the committer fields 🤦 .
* fix: Use environment variables for agent authentication
Using files led to situations where running "coder server --dev" would
break `gitssh`. This is applicable in a production environment too. Users
should be able to log into another Coder deployment from their workspace.
Users can still set "CODER_URL" if they'd like with agent env vars!
v0.5.2
2022-04-30 16:40:30 +00:00
Kyle Carberry
eb606924ab
fix: Update GIT_COMMITTER_NAME to use username ( #1237 )
...
This was a mistake when adding the committer fields 🤦 .
2022-04-29 20:51:11 -05:00
Kyle Carberry
2acdd3b44f
fix: Add "GIT_COMMITTER_*" to remove Git prompt ( #1236 )
2022-04-30 01:22:17 +00:00
Kyle Carberry
e15566c7fa
test: Regenerate GitSSHKey flake when comparing times ( #1235 )
...
This is a crazy one! The in-memory DB is fast, which allows the same
exact timestamp to occur for regenerating the key!
See: https://github.com/coder/coder/runs/6234173911?check_suite_focus=true#step:9:82
2022-04-29 20:19:16 -05:00
Kyle Carberry
81577f120a
feat: Add web terminal with reconnecting TTYs ( #1186 )
...
* feat: Add web terminal with reconnecting TTYs
This adds a web terminal that can reconnect to resume sessions!
No more disconnects, and no more bad bufferring!
* Add xstate service
* Add the webpage for accessing a web terminal
* Add terminal page tests
* Use Ticker instead of Timer
* Active Windows mode on Windows
2022-04-29 17:30:10 -05:00
Kyle Carberry
23e5636dd0
fix: Use verified and primary email for GitHub signup ( #1230 )
...
This was causing a panic due to nil pointer dereference.
It required all users signing up had a public email,
which is an unreasonable requirement!
2022-04-29 15:13:35 -05:00
Bruno Quaresma
021e4cd957
refactor: Load users from the API ( #1218 )
2022-04-29 13:59:14 -05:00
Steven Masley
69e26c4036
feat: Allow using username in user queries ( #1221 )
...
* feat: Allow using username in user queries
* Test needs a username/email to not match empty string
2022-04-29 11:44:22 -05:00
dependabot[bot]
365c96ccaa
chore: bump @fontsource/fira-code from 4.5.8 to 4.5.9 in /site ( #1188 )
...
Bumps [@fontsource/fira-code](https://github.com/fontsource/fontsource/tree/HEAD/fonts/google/fira-code ) from 4.5.8 to 4.5.9.
- [Release notes](https://github.com/fontsource/fontsource/releases )
- [Changelog](https://github.com/fontsource/fontsource/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fontsource/fontsource/commits/HEAD/fonts/google/fira-code )
---
updated-dependencies:
- dependency-name: "@fontsource/fira-code"
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-29 15:58:33 +00:00
dependabot[bot]
a3decc4fba
chore: bump eslint-plugin-react-hooks from 4.4.0 to 4.5.0 in /site ( #1190 )
...
Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks ) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/facebook/react/releases )
- [Changelog](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/CHANGELOG.md )
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks )
---
updated-dependencies:
- dependency-name: eslint-plugin-react-hooks
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-29 10:55:15 -05:00
dependabot[bot]
27811976ad
chore: bump ts-loader from 9.2.8 to 9.2.9 in /site ( #1192 )
...
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader ) from 9.2.8 to 9.2.9.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases )
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md )
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.2.8...v9.2.9 )
---
updated-dependencies:
- dependency-name: ts-loader
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-29 10:54:54 -05:00
dependabot[bot]
3ebe1d27b1
chore: bump @playwright/test from 1.21.0 to 1.21.1 in /site ( #1191 )
...
Bumps [@playwright/test](https://github.com/Microsoft/playwright ) from 1.21.0 to 1.21.1.
- [Release notes](https://github.com/Microsoft/playwright/releases )
- [Commits](https://github.com/Microsoft/playwright/compare/v1.21.0...v1.21.1 )
---
updated-dependencies:
- dependency-name: "@playwright/test"
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-29 10:54:39 -05:00
Steven Masley
35211e2190
feat: Add user roles, but do not yet enforce them ( #1200 )
...
* chore: Rework roles to be expandable by name alone
2022-04-29 09:04:19 -05:00