Bruno Quaresma
7a864bdb28
refactor(site): Refactor template settings ( #6239 )
2023-02-17 13:27:35 +00:00
Bruno Quaresma
2c309194e9
refactor(site): Remove untar dep and support nested folders on template version page ( #6244 )
2023-02-16 18:38:14 +00:00
Bruno Quaresma
8360357834
refactor(site): Redesign dialogs ( #6237 )
2023-02-16 14:03:07 -03:00
Bruno Quaresma
909fbb6d2c
fix(site): Upload template files on template version editor ( #6222 )
2023-02-16 13:59:48 -03:00
Marcin Tojek
3b7b96ac28
feat: Expose managed variables via API ( #6134 )
...
* WIP
* hcl
* useManagedVariables
* fix
* Fix
* Fix
* fix
* go:build
* Fix
* fix: bool flag
* Insert template variables
* API
* fix
* Expose via API
* More wiring
* CLI for testing purposes
* WIP
* Delete FIXME
* planVars
* WIP
* WIP
* UserVariableValues
* no dry run
* Dry run
* Done FIXME
* Fix
* Fix: CLI
* Fix: migration
* API tests
* Test info
* Tests
* More tests
* fix: lint
* Fix: authz
* Address PR comments
* Fix
* fix
* fix
2023-02-15 18:24:15 +01:00
Kira Pilot
5e60879fb8
feat: audit addition and removal of licenses ( #6125 )
...
* added license audit resource
* audit delete licenses
* added filtering
* remove logs
* making the best of the current UUID situation
* fixed lint
* fix tests
* regen docs
* PR feedback
* PR feedback
2023-02-14 16:34:13 -05:00
Ammar Bandukwala
6e3330a03f
feat: add support for telemetry-required licenses ( #6194 )
2023-02-14 20:26:47 +00:00
Kyle Carberry
51f17b1820
fix: allow disabling all password auth even if owner ( #6193 )
...
* fix: allow disabling all password auth even if owner
Removes any and all ability to auth with a password.
* Hide create user if password auth is disabled
2023-02-14 08:58:12 -06:00
Bruno Quaresma
b171cb562c
fix(site): Support underscore files ( #6159 )
2023-02-10 16:52:56 -03:00
Steven Masley
6189035e98
feat: Add option to enable hsts header ( #6147 )
...
* feat: Add option to enable hsts header
* Update golden files
2023-02-10 10:52:49 -06:00
Bruno Quaresma
77afdf71dc
fix(site): Show folders in the template version editor ( #6145 )
2023-02-10 13:22:20 -03:00
Bruno Quaresma
4493649d7e
refactor(site): Add bottom spacing to the dashboard layout ( #6084 )
2023-02-08 21:53:42 -03:00
Kyle Carberry
d803bb76d5
feat: automatically open workspaces in vscode in the dir specified ( #6115 )
...
This makes a one-click magical experience not only possible, but really nice too!
2023-02-09 06:38:34 +10:00
Kyle Carberry
2ed0eafd75
feat: add minimum password entropy requirements ( #6090 )
...
* feat: add minimum password entropy requirements
* Fix all the tests
* Fix E2E tests
2023-02-08 14:10:08 -06:00
Kira Pilot
7a1731b620
chore: change build audit log string to be clearer ( #6093 )
...
* changed bbuild string
* clean up friendly string
* using Trans component
* general cleanup
* fixed tests
* fix lint
* fixing bolding
* removing dead strings in auditLogRow
* fix tests
2023-02-08 13:06:57 -05:00
Ben Potter
5655ec6862
Revert "fix: open terminal and coder_app in a new tab, not window ( #6044 )" ( #6106 )
...
This reverts commit a655f03a1e .
2023-02-08 15:57:27 +00:00
Kira Pilot
3da33d23a4
chore: fix status color for redirects on audit page ( #6096 )
2023-02-08 09:40:51 -05:00
Marcin Tojek
1dc477819e
feat: render Markdown in rich parameter descriptions ( #6098 )
2023-02-08 12:57:12 +01:00
Kyle Carberry
691495d761
feat: add expanded_directory to the agent for extension support ( #6087 )
...
This will enable opening the default `dir` of an agent in
the VS Code extension!
2023-02-07 21:35:09 +00:00
Ben Potter
a5f3f02ef8
fix: duplicate list when updating workspaces ( #6032 )
2023-02-07 10:26:04 -06:00
Kyle Carberry
e7ebcb54dc
fix: use workspace name when opening links via the terminal ( #6077 )
...
This was using the `<workspace>.<agent>` syntax before, which was invalid.
2023-02-07 09:58:11 -06:00
Kira Pilot
4155b085b7
feat: add preset filter for audit logins ( #6066 )
2023-02-07 09:17:06 -05:00
Kyle Carberry
bed37b4208
feat: use wildcard url for local links in the web terminal ( #6070 )
2023-02-07 07:21:06 -06:00
Marcin Tojek
b86bce8494
feat!: Validate monotonic numbers for rich parameters ( #6046 )
...
* Database changes
* protobuf
* Fix: docs
* workspaces_test
* Validation in coderd
* Fix: resources
* omitempty
* UI changes
* UI tests
* fix
2023-02-07 09:36:13 +01:00
Kyle Carberry
e3ae664a29
fix: add typegen for templateVersionEditorXService ( #6069 )
...
This was borked before, and actually broken!
2023-02-06 20:30:54 -06:00
Kyle Carberry
dd9e1f3d3f
feat: add template editor to the ui ( #5963 )
...
* Add initial editor
* Fix editor file being reset onChange
* Add updating the active build version
* Update nav height
* Add tabs
* Fix title
* Hide timestamps in build logs
* Add create file dialog
* Add validation for empty path
* Hide resources tab
* Fix label names
* Add rename and delete
* Improve UX
* Add padding to the editor
* Add dirty state
* Hide build logs until a build is made
* Add stories
* Add experiment to enable the template editor
* Fix linting errors
* Fix duplicate fields
* Fix theme type
2023-02-07 01:24:04 +00:00
Kira Pilot and Steven Masley
46fe59f5e7
feat: audit login ( #5925 )
...
* added migration for api key resource
* sort of working
* auditing login
* passing the correct user id
* added and fixed tests
* gen documentation
* formatting and lint
* lint
* audit Github oauth and write tests
* audit oauth and write tests
* added defer fn for login error auditing
* fixed test
* feat: audit logout (#5998 )
* Update coderd/userauth.go
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com >
* fix test
* bypassing diff generation if login/logout
* lint
---------
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com >
2023-02-06 15:12:50 -05:00
Ben Potter
a655f03a1e
fix: open terminal and coder_app in a new tab, not window ( #6044 )
...
* fix!: open coder_app in a new tab, not window
* terminal too
2023-02-06 10:22:24 -06:00
Dean Sheather
4fe221a700
feat: add flag to disable password auth ( #5991 )
...
Adds a flag --disable-password-auth that prevents the password login
endpoint from working unless the user has the "owner" (aka. site admin)
role.
Adds a subcommand `coder server create-admin-user` which creates a user
directly in the database with the "owner" role, the "admin" role in
every organization, and password auth. This is to avoid lock-out
situations where all accounts have the login type set to an identity
provider and nobody can login.
2023-02-06 14:58:21 +00:00
Dean Sheather
cf9abe3a6c
feat: add session expiry control flags ( #5976 )
...
Adds --session-duration which lets admins customize the default session
expiration for browser sessions.
Adds --disable-session-expiry-refresh which allows admins to prevent
session expiry from being automatically bumped upon the API key being
used.
2023-02-03 17:38:36 +00:00
Bruno Quaresma
dffd7953bc
fix(site): Minor UI fixes related to avatar components ( #6019 )
2023-02-03 13:09:16 -03:00
Kira Pilot
6c90701a73
chore: ignore trend line in storybook ( #6003 )
2023-02-03 09:05:38 -05:00
Bruno Quaresma and Kyle Carberry
f60f06e2c6
fix(site): Only display fields with redisplay enabled during workspace creation ( #6004 )
...
* fix(site): Only display fields with redisplay_value during workspace creation
* Fix test
---------
Co-authored-by: Kyle Carberry <kyle@carberry.com >
2023-02-03 01:28:47 +00:00
Kyle Carberry
a5e8911d67
fix: index template versions by template and name ( #5993 )
...
* fix: index template versions by template and name
We were incorrectly returning template versions by name relative
to organizations. This could result in an incorrect version being
returned if multiple templates had versions with the same name.
* Fix auth referencing
* Fix route location
* Fix authorize route name
* Fix previous call
* Fix authorize route name
2023-02-02 15:47:53 -06:00
Bruno Quaresma
ea7e55fcf9
refactor(site): Adjust icon sizes and show password btn in login page ( #5992 )
2023-02-02 18:28:30 -03:00
Bruno Quaresma
9ff313a260
refactor(site): Remove version and add template link in workspaces page ( #5990 )
2023-02-02 18:27:56 -03:00
Kira Pilot
a70e722e7f
fix: hide IP on workspace build logs ( #5997 )
2023-02-02 20:22:36 +00:00
Bruno Quaresma
4df1031f8b
refactor(site): Add press any key option to reconnect on terminal screen ( #5969 )
2023-02-02 15:19:18 -03:00
Bruno Quaresma
7b49517c18
refactor(site): Add more info on agent outdated tooltip and update action ( #5967 )
2023-02-02 15:18:59 -03:00
dependabot[bot]
5d9263f050
chore: bump chromatic from 6.11.4 to 6.15.0 in /site ( #5954 )
...
Bumps [chromatic](https://github.com/chromaui/chromatic-cli ) from 6.11.4 to 6.15.0.
- [Release notes](https://github.com/chromaui/chromatic-cli/releases )
- [Changelog](https://github.com/chromaui/chromatic-cli/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chromaui/chromatic-cli/compare/v6.11.4...v6.15.0 )
---
updated-dependencies:
- dependency-name: chromatic
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>
2023-02-02 12:06:51 -06:00
Kyle Carberry
be00e2541c
chore: remove unused workspace_owner_count field ( #5958 )
...
This added unnecessary database load, because it's not used!
2023-02-02 17:59:43 +00:00
dependabot[bot]
92c5be971c
chore: bump @typescript-eslint/eslint-plugin in /site ( #5955 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 5.38.1 to 5.50.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.50.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>
2023-02-02 11:45:48 -06:00
dependabot[bot]
c4b70f3ae1
chore: bump eslint from 8.29.0 to 8.33.0 in /site ( #5956 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.29.0 to 8.33.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.29.0...v8.33.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>
2023-02-02 11:45:29 -06:00
Kyle Carberry
b9b402cd0c
feat!: generate a self-signed certificate if no certificates are specified ( #5973 )
...
* feat: generate a self-signed certificate if no certificates are specified
Clouds like AWS automatically navigate to https://<ip-here>. This
allows us to bind to that immediately, serve a self-signed certificate,
then reroute to the access URL.
* Add new flag and deprecate old one
* Fix redirect if not using tunnel
* Add deprecation notice
* Fix TLS redirect
* Run `make gen`
* Fix bad test
* Fix gen
2023-02-02 17:08:35 +00:00
Marcin Tojek
e27f7accd7
feat: Group immutable and mutable rich parameters ( #5975 )
2023-02-02 18:01:18 +01:00
Bruno Quaresma
01ebfdc9dd
fiix(site): Fix custom logo size in Safari ( #5966 )
2023-02-02 10:42:05 -03:00
Bruno Quaresma
c9f3acabd3
fix(site): Don't hide/show errors during requests ( #5962 )
2023-02-02 10:38:05 -03:00
Marcin Tojek
f9ae105a26
feat: Adjust forms to include Rich Parameters ( #5856 )
...
* XService: GetTemplateParameters
* Rich parameter input shows up
* Render option icons
* Icons
* WIP
* For testing purposes: template
* Fix: useState
* WIP: dynamic validation
* Yup validation
* Translations
* Remove temporary template
* make fmt
* WIP
* Fix: tests
* Fix: fmt
* URL param
* Refactor
* Test: rich param value
* Storybook
* Fix
* Refactor for testing purposes
* Typo
* test: string validation
* Button: build parameters
* Full screen page
* Fix: navigate
* XState done
* refactor: postWorkspaceBuild
* RichParameterInput rendered
* Fix: bad initial value
* Validation works
* Maybe
* Fix
* Go back button
* GoBack button
* Form
* Fix
* Storybook
* Fix: CreateWorkspacePage
* fmt
* Test
* ns
* fmt
* All tests
* feat: WorkspaceActions depend on template parameters
* Fix
2023-02-01 18:13:11 +01:00
Arthur Normand and Kyle Carberry
69fce0488e
feat: Allow hiding password auth, changing OpenID Connect text and OpenID Connect icon ( #5101 )
...
* Allow hiding password entry, changing OpenID Connect text and OpenID Connect icon
* Docs
* Cleaning
* Fix Prettier and Go test and TS compile error
* Fix LoginPage test
* Prettier
* Fix storybook
* Add query param to un-hide password auth
* Cleaning
* Hide password by default when OIDC enabled
* Ran prettier, updated goldenfiles and ran "make gen"
* Fixed and added LoginPage test
* Ran prettier
* PR Feedback and split up SignInForm.tsx
* Updated golden files
* Fix auto-genned-files
* make gen -B
* Revert provisioner files?
* Fix lint error
---------
Co-authored-by: Kyle Carberry <kyle@coder.com >
2023-01-31 18:33:25 +00:00
Kira Pilot and Steven Masley
b31b0fd189
fix: audit log broken build links ( #5895 )
...
* pushing for guidance
* added test
* PR feedback
* fixed tests
* Update coderd/audit.go
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com >
* runnig make gen
---------
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com >
2023-01-30 18:43:29 +00:00