Bruno Quaresma
57bb108465
feat: Add update user password endpoint ( #1310 )
2022-05-06 09:20:08 -05:00
Presley Pizzo
a2be7c0294
fix: create and read workspace page ( #1294 )
...
* Change name of existing workspace call
* Add new api call (has handler already)
* WorkspacesPage -> WorkspacePage
* starting to replace swr
* Add other api calls
* Fix api call
* Replace swr with xstate
* Format
* Test - wip
* Fix route in template page
* Fix endpoint in create workspace
* Fix tests
* Lint
2022-05-06 10:02:17 -04:00
Mathias Fredriksson
3dbcddc310
fix: Confirm password in cli create first user step ( #1220 )
...
Fixes #1182
2022-05-06 15:47:38 +03:00
Kyle Carberry
914a2f477c
fix: Restore terminal on interrupt when connecting ( #1312 )
...
Fixes #1292 .
2022-05-05 20:11:44 -05:00
Ben Potter
f965066517
feat: add screenshot to readme ( #1313 )
...
* feat: add screenshot to readme
* change
2022-05-06 01:09:27 +00:00
Ben Potter
568574c118
fix: use CODER_AGENT_TOKEN for docker example ( #1295 )
2022-05-04 22:42:58 +00:00
Colin Adler
0ccf0102d7
fix: ensure correct version of sqlc is executed ( #1287 )
...
If `/usr/local/bin` is searched before `$GOPATH/bin` in your `$PATH` the
wrong version of `sqlc` can be executed.
2022-05-04 20:09:13 +00:00
Kyle Carberry
d7f63217f1
feat: Add code splitting to reduce bundle size ( #1285 )
...
This splits our pages to use separate JavaScript bundles. It
initially splits the terminal, which reduces our primary
bundle size by ~400KB.
We should do this for all pages, but that can come in a future
change. This leaves the loading page empty for now, which I
think is fine. None of our pages are large enough that the blank
screen temporarily would be concerning.
2022-05-04 14:24:31 -05:00
Bruno Quaresma
f911c8a781
feat: Add suspend user action ( #1275 )
2022-05-04 16:10:38 +00:00
Presley Pizzo
34b91fd577
feat: add margins to pages ( #1217 )
...
* Add Margin, use constants
* Change throughout
* Add to a page, lint
* Format
2022-05-04 11:36:54 -04:00
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