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
Bruno Quaresma
ba4c3ce3b9
feat: add filter by status on GET /users ( #1206 )
2022-04-29 08:29:53 -05:00
Colin Adler
82364d174f
fix: ensure rtc state changes can't log after close ( #1213 )
2022-04-28 16:38:59 -05:00
Bruno Quaresma
00cac37a07
chore: force desktop view on mobile ( #1214 )
2022-04-28 17:05:03 -04:00
Presley Pizzo and G r e y
c16f105727
feat: Create user page ( #1197 )
...
* Add button and route
* Hook up api
* Lint
* Add basic form
* Get users on page mount
* Make cancel work
* Creating -> idle bc users page refetches
* Import as TypesGen
* Handle api errors
* Lint
* Add handler
* Add FormFooter
* Add FullPageForm
* Lint
* Better form, error, stories
bug in formErrors story
* Make detail optional
* Use Language
* Remove detail prop
* Add back autoFocus
* Remove displayError, use displaySuccess
* Lint, export Language
* Tests - wip
* Fix cancel tests
* Switch back to mock
* Add navigate to xservice
Doesn't work in test
* Move error type predicate to xservice
* Lint
* Switch to using creation mode in XState
still problems in tests
* Lint
* Lint
* Lint
* Revert "Switch to using creation mode in XState"
This reverts commit cf8442fa4b .
* Give XService a navigate action
* Add missing validation messages
* Fix XState warning
* Fix tests
IRL is broken bc I need to send org id
* Pretend user has org id and make it work
* Format
* Lint
* Switch to org ids array
* Skip lines between tests
Co-authored-by: G r e y <grey@coder.com >
* Punctuate notification messages
Co-authored-by: G r e y <grey@coder.com >
2022-04-28 16:32:23 -04:00
Mathias Fredriksson
4efde58726
fix: Restore static credentials for develop.sh ( #1212 )
2022-04-28 21:47:35 +03:00
Colin Adler
1661588bd1
fix: user passwords cleanup ( #1202 )
...
1. Adds benchmarks comparing bcrypt and our pbkdf2 settings
1. Changes the pbkdf2 hash iterations back to 65k. 1024 is insecure
1. Gets rid of the short circuit when the user isn't found, preventing
timing attacks which can reveal which emails exist on a deployment
```
$ go test -bench .
goos: linux
goarch: amd64
pkg: github.com/coder/coder/coderd/userpassword
cpu: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
BenchmarkBcryptMinCost-16 1651 702727 ns/op 5165 B/op 10 allocs/op
BenchmarkPbkdf2MinCost-16 1669 714843 ns/op 804 B/op 10 allocs/op
BenchmarkBcryptDefaultCost-16 27 42676316 ns/op 5246 B/op 10 allocs/op
BenchmarkPbkdf2-16 26 45902236 ns/op 804 B/op 10 allocs/op
PASS
ok github.com/coder/coder/coderd/userpassword 5.036s
```
2022-04-28 18:22:38 +00:00
Steven Masley
e330dc1321
feat: Switch packages for typescript generation code ( #1196 )
...
* feat: Switch packages for typescript generation code
Supports a larger set of types
- [x] Basics (string/int/etc)
- [x] Maps
- [x] Slices
- [x] Enums
- [x] Pointers
2022-04-28 16:59:14 +00:00
Mathias Fredriksson
afc43fe95f
feat: Generate random admin user password in dev mode ( #1207 )
...
* feat: Generate random admin user password in dev mode
* Add dev mode test with email/pass from env
* Set email/pass for playwright e2e test via cli flags
v0.5.1
2022-04-28 19:13:44 +03:00
Kyle Carberry
eea9729704
fix: Update buildinfo package location in ldflags ( #1208 )
...
This was causing the version to not be injected!
2022-04-28 10:46:18 -05:00
Bruno Quaresma
816441eff7
feat: add organization_ids in the user(s) response ( #1184 )
2022-04-28 09:10:17 -05:00
Colin Adler
a7fb018414
chore: update github.com/golang-migrate/migrate/v4 to v4.5.2 ( #1201 )
...
Should fix the security warning for https://github.com/advisories/GHSA-crp2-qrr5-8pq7
2022-04-27 22:04:51 +00:00
Mathias Fredriksson
8661f92a10
feat: Output username and password for code server --dev ( #1193 )
...
Fixes #825
2022-04-27 17:59:37 +03:00
Mathias Fredriksson and Cian Johnston
0b1ee3303d
chore: Add Contributors section to readme ( #1144 )
...
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
2022-04-27 11:48:45 +00:00
dependabot[bot]
a769e8623d
chore: bump @types/node from 14.18.15 to 14.18.16 in /site ( #1189 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.18.15 to 14.18.16.
- [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-27 06:04:44 +00:00
dependabot[bot] and G r e y
26f3ceda93
chore: bump @typescript-eslint/parser from 5.19.0 to 5.21.0 in /site ( #1160 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) 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/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.21.0/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
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>
Co-authored-by: G r e y <grey@coder.com >
2022-04-27 05:52:53 +00:00
dependabot[bot]
d85e36ce9e
chore: bump @xstate/cli from 0.1.6 to 0.1.7 in /site ( #1139 )
...
Bumps @xstate/cli from 0.1.6 to 0.1.7.
---
updated-dependencies:
- dependency-name: "@xstate/cli"
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-27 01:44:19 -04:00
dependabot[bot]
7f423951bf
chore: bump jest-junit from 13.1.0 to 13.2.0 in /site ( #1137 )
...
Bumps [jest-junit](https://github.com/jest-community/jest-junit ) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/jest-community/jest-junit/releases )
- [Commits](https://github.com/jest-community/jest-junit/compare/v13.1.0...v13.2.0 )
---
updated-dependencies:
- dependency-name: jest-junit
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-27 01:43:34 -04:00
dependabot[bot]
65d5975592
chore: bump cronstrue from 2.2.0 to 2.4.0 in /site ( #1165 )
...
Bumps [cronstrue](https://github.com/bradymholt/cronstrue ) from 2.2.0 to 2.4.0.
- [Release notes](https://github.com/bradymholt/cronstrue/releases )
- [Commits](https://github.com/bradymholt/cronstrue/compare/v2.2.0...v2.4.0 )
---
updated-dependencies:
- dependency-name: cronstrue
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-27 05:38:17 +00:00
Presley Pizzo
23a1a4dc40
refactor: Add components for styling forms ( #1169 )
...
* Add FormFooter
* Add FullPageForm
* Lint
* Make detail optional
* Use Language
2022-04-26 19:45:48 -04:00
Bruno Quaresma
454ccf7547
refactor: remove the user name ( #1185 )
2022-04-26 19:04:57 +00:00
22668c388c
feat: initial docs pages ( #1107 )
...
* docs structure and edits to getting started
* draft for about page
* skeleton for concepts page
* attempt at explaining templates
* left-align tables
* add best practices and variables
* update structrure
* update structure
* templates are shared
* workspaces docs
* remove coming soon
* fix typos
* docs structure and edits to getting started
* draft for about page
* skeleton for concepts page
* attempt at explaining templates
* left-align tables
* add best practices and variables
* update structrure
* update structure
* templates are shared
* workspaces docs
* remove coming soon
* fix typos
* fix typos
* Update docs/about.md
Co-authored-by: Joe Previte <jjprevite@gmail.com >
* remove line breaks between bullets
* rename variables to parameters
* reduce limits
* chore: edit text
* revert some changes, fix footnotes
Co-authored-by: Katie Horne <katie@coder.com >
Co-authored-by: Joe Previte <jjprevite@gmail.com >
2022-04-26 12:10:50 -05:00
Kyle Carberry
603b7da413
test: Wrap provisionerd channel closes in sync.Once ( #1181 )
...
This caused a few flakes, so figured I'd tackle all of them:
https://github.com/coder/coder/runs/6167856950?check_suite_focus=true#step:9:246
2022-04-26 09:44:16 -05:00
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