Ben Potter
64a8b4ac47
chore: add bpmct to contributors list ( #1332 )
2022-05-13 02:01:31 +00:00
David Wahler
86cba4d3f8
chore: Deploy internally accessible godoc container ( #1415 )
2022-05-12 19:39:18 -05:00
Ben Potter
333d6a4374
fix: typo in CODER_VERSION
2022-05-12 16:13:43 -05:00
Steven Masley
64e408c954
feat: Check permissions endpoint ( #1389 )
...
* feat: Check permissions endpoint
Allows FE to query backend for permission capabilities.
Batch requests supported
2022-05-12 20:56:23 +00:00
Ben Potter
75a5877c1d
fix: remove docker release flake ( #1412 )
2022-05-12 15:44:46 -05:00
G r e y
9ef64fd192
chore: add myself as a contributor ( #1408 )
2022-05-12 14:44:54 -04:00
Asher
6f7d9bb1e4
fix: remove unimplemented account pages ( #1411 )
...
It appears unclear as of now when/if these will be implemented so I
opted to remove them (as opposed to commenting them out) to avoid having
them rot (they are easily added back anyway).
Closes #1232 .
2022-05-12 13:34:49 -05:00
Ben Potter
bbb8f836bf
feat: build & release cross-platform Docker images ( #1178 )
...
* feat: add dockerfile and docker-compose
* build docker images on release
* add Docker dependencies to release.yaml
* remove docker compose for now
* fix license mismatch
* add docker-compose
* rename volume
* add WF dispatch for debugging
v0.5.6
2022-05-12 17:59:34 +00:00
Kyle Carberry
7b5300d0cc
fix: Improve develop script to start tunnel by default ( #1409 )
...
This allows for running the development script to actually
build workspaces!
2022-05-12 12:37:51 -05:00
David Wahler
20916281d8
feat: Add reset-password command ( #1380 )
...
* allow non-destructively checking if database needs to be migrated
* feat: Add reset-password command
* fix linter errors
* clean up reset-password usage prompt
* Add confirmation to reset-password command
* Ping database before checking migration, to improve error message
2022-05-12 12:32:56 -05:00
Bruno Quaresma
a629a705d0
refactor: Add vertical space to the footer ( #1410 )
2022-05-12 12:28:20 -05:00
Asher
26b04cc96f
chore: switch to generated types ( #1394 )
...
* Make column renderer use the same type as its key
That way the renderer only takes `string` for example when rendering the
name field instead of `string | number` when the interface has some
fields that are strings and some fields are numbers.
This will be necessary when switching to generated types since some of
the fields are numbers (like the owner count on a template).
* Switch fully to generated types
In some places the organization ID is part of the URL but not part of
the request so I separated out the ID into a separate argument in the
relevant API functions.
Otherwise this was a straightforward replacement where I mostly only
needed to change some of the interface names (User instead of
UserResponse for example) and add a few missing but required properties.
I kind of winged the template form; I am not sure what the difference
between a template and template version is or why the latter comes
before the former so the form just returns all the data required to
create both.
* Delete handwritten types
Except for UserAgent which seems to be purely frontend and
ReconnectingPTYRequest which is not in codersdk so I am just leaving it
for now.
* Remove implemented omitempty as a future idea
This was implemented in 2d3dc436a8 .
* Add missing optionalities to generated request interfaces
2022-05-12 10:01:28 -05:00
Mathias Fredriksson
56076a0aa2
feat: Unify cli behavior for templates create and update ( #1385 )
...
Fixes #565
2022-05-12 14:54:58 +03:00
Kira Pilot
2569787324
chore: add eslint extension recommendation ( #1400 )
...
resolves #1399
2022-05-11 19:01:21 -04:00
Asher
ce660f8bbc
fix: add missing return when template version is not found ( #1402 )
2022-05-11 17:58:22 -05:00
Cian Johnston
f4da5d4f3a
feat: add lifecycle.Executor to manage autostart and autostop ( #1183 )
...
This PR adds a package lifecycle and an Executor implementation that attempts to schedule a build of workspaces with autostart configured.
- lifecycle.Executor takes a chan time.Time in its constructor (e.g. time.Tick(time.Minute))
- Whenever a value is received from this channel, it executes one iteration of looping through the workspaces and triggering lifecycle operations.
- When the context passed to the executor is Done, it exits.
- Only workspaces that meet the following criteria will have a lifecycle operation applied to them:
- Workspace has a valid and non-empty autostart or autostop schedule (either)
- Workspace's last build was successful
- The following transitions will be applied depending on the current workspace state:
- If the workspace is currently running, it will be stopped.
- If the workspace is currently stopped, it will be started.
- Otherwise, nothing will be done.
- Workspace builds will be created with the same parameters and template version as the last successful build (for example, template version)
2022-05-11 23:03:02 +01:00
Kira Pilot
e8e6d3c2f1
chore: updated documentation link ( #1387 )
...
* chore: updated documentation link
* PR feedback
2022-05-11 17:10:03 -04:00
Kira Pilot
f93804a2a0
chore: renaming index files ( #1397 )
2022-05-11 17:02:28 -04:00
Garrett Delfosse
be3bc5cc55
Remove coder templates edit command ( #1396 )
2022-05-11 20:05:45 +00:00
Ben Potter
537897c0bb
chore: add "needs grooming" label to new issues ( #1384 )
2022-05-11 14:35:58 -05:00
Ben Potter
982769f0dc
fix: uses "projects" instead of "templates" in examples docs
2022-05-11 13:42:47 -05:00
Kyle Carberry and Ben
3024e25c09
example: Add Kubernetes multi-service ( #1092 )
...
* example: Add Kubernetes multi-service
* fix: change to CODER_AGENT_TOKEN
* example: use ServiceAccount for cluster authentication (#1096 )
Co-authored-by: Ben <ben@coder.com >
2022-05-11 18:27:31 +00:00
Ben Potter and kylecarbs
f5817248de
feat: arm(v7/64) builds for releases and agent scripts ( #1337 )
...
* feat: build armv7 linux releases
* upload ARM binaries to bin
* Only build arm 7 for Linux
* add ARM agent scripts
* fix: specify armv7 to match tf provider
* append arm version to slim builds
* use descript armv7 binary
* Add script mappings for each architecture
Co-authored-by: kylecarbs <kyle@carberry.com >
2022-05-11 09:44:43 -05:00
Ben Potter
a169542bda
chore: bump hc-install from v0.3.1 to v0.3.2 ( #1382 )
...
* chore: bump hc-install from v0.3.1 to v0.3.2
* fix
2022-05-11 09:05:25 -05:00
Spike Curtis
9d94f4f714
fix: macOS backspace processing ( #1379 )
...
Revert "fix: Remove line length limit on MacOS for input prompts (#839 )"
This reverts commit ccba2ba99d .
2022-05-10 15:20:36 -07:00
Colin Adler
f816bbe801
feat: add codegen for audit.AuditableResources entries ( #1370 )
2022-05-10 21:27:45 +00:00
Colin Adler
97a95f1377
chore: upgrade golangci-lint to v1.46.0 ( #1373 )
2022-05-10 16:04:23 -05:00
Kyle Carberry
e0a7aec228
fix: Match kubectl table style for simpler scripting ( #1363 )
...
Fixes #1322 .
2022-05-10 15:57:07 -05:00
Bruno Quaresma
2df92e6fd3
feat: Add update user roles action ( #1361 )
2022-05-10 19:13:07 +00:00
Spike Curtis
c96d439f3d
chore: add Spike Curtis to contributors ( #1333 )
...
Signed-off-by: Spike Curtis <spike@coder.com >
2022-05-10 16:46:28 +00:00
Ben Potter and Katie Horne
e8e4cf9a37
feat: add comparison to docs ( #1315 )
...
* fix typo
* feat: add comparison table
* Update docs/about.md
Co-authored-by: Katie Horne <katie@23spoons.com >
* Update docs/about.md
Co-authored-by: Katie Horne <katie@23spoons.com >
* Update docs/about.md
Co-authored-by: Katie Horne <katie@23spoons.com >
* chore: remove gitpod
Co-authored-by: Katie Horne <katie@23spoons.com >
2022-05-10 16:31:59 +00:00
dependabot[bot]
47f1fd57e4
chore: bump ts-loader from 9.2.9 to 9.3.0 in /site ( #1253 )
...
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader ) from 9.2.9 to 9.3.0.
- [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.9...v9.3.0 )
---
updated-dependencies:
- dependency-name: ts-loader
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-05-10 09:45:31 -04:00
Mathias Fredriksson
2d3dc436a8
feat: Implement unified pagination and add template versions support ( #1308 )
...
* feat: Implement pagination for template versions
* feat: Use unified pagination between users and template versions
* Sync codepaths between users and template versions
* Create requestOption type in codersdk and add test
* Fix created_at edge case for pagination cursor in queries
* feat: Add support for json omitempty and embedded structs in apitypings (#1318 )
* Add scripts/apitypings/main.go to Makefile
2022-05-10 07:44:09 +00:00
Kyle Carberry
dc115b8ca0
fix: Use proper endpoint for user workspaces ( #1356 )
...
This was a silly mistake in a prior PR, so the code wasn't
actually being called!
2022-05-10 03:10:47 +00:00
Kyle Carberry
b675aec4dd
feat: Add endpoint to get all workspaces a user can access ( #1354 )
...
This iterates through user organizations to get permitted
workspaces. This will allow admins to manage user workspaces!
2022-05-10 02:38:20 +00:00
Kyle Carberry
e6f1ce1fb2
fix: Allow coderd to exit on error channel ( #1355 )
...
coderd would fail silently if this was called, because connections
would never drain. HashiCorp's hc-install package broke today,
and we couldn't notice because this was hanging!
2022-05-10 02:19:20 +00:00
dependabot[bot]
3660483b97
chore: bump github.com/moby/moby ( #1339 )
...
Bumps [github.com/moby/moby](https://github.com/moby/moby ) from 20.10.14+incompatible to 20.10.15+incompatible.
- [Release notes](https://github.com/moby/moby/releases )
- [Changelog](https://github.com/moby/moby/blob/master/CHANGELOG.md )
- [Commits](https://github.com/moby/moby/compare/v20.10.14...v20.10.15 )
---
updated-dependencies:
- dependency-name: github.com/moby/moby
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>
v0.5.5
2022-05-09 19:01:33 -05:00
dependabot[bot]
48f004bb3d
chore: bump github.com/charmbracelet/charm from 0.12.0 to 0.12.1 ( #1341 )
...
Bumps [github.com/charmbracelet/charm](https://github.com/charmbracelet/charm ) from 0.12.0 to 0.12.1.
- [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.12.0...v0.12.1 )
---
updated-dependencies:
- dependency-name: github.com/charmbracelet/charm
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-09 19:00:11 -05:00
dependabot[bot]
5653c4455a
chore: bump google.golang.org/api from 0.77.0 to 0.78.0 ( #1340 )
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.77.0 to 0.78.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.77.0...v0.78.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-09 18:50:32 -05:00
dependabot[bot]
9b30ff8e59
chore: bump @typescript-eslint/parser from 5.22.0 to 5.23.0 in /site ( #1353 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 5.22.0 to 5.23.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.23.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>
2022-05-09 18:29:40 -05:00
Kyle Carberry
ddb9631d7a
fix: Group subcommands for cognitive ease ( #1351 )
2022-05-09 17:42:02 -05:00
Colin Adler
20caee1502
feat: add audit exporting and filtering ( #1314 )
2022-05-09 22:05:01 +00:00
dependabot[bot]
ac27f645eb
chore: bump @typescript-eslint/parser from 5.21.0 to 5.22.0 in /site ( #1343 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 5.21.0 to 5.22.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.22.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>
2022-05-09 16:41:54 -05:00
David Wahler
d847d2b1c5
chore: add dwahler as contributor ( #1352 )
2022-05-09 20:57:03 +00:00
Kira Pilot
f5693dff3d
chore: added contributer ( #1349 )
2022-05-09 14:49:23 -04:00
Bruno Quaresma
e54324d880
refactor: Add roles into the user response ( #1347 )
2022-05-09 16:38:14 +00:00
Spike Curtis
ad8d9dd71a
feat: make it harder to skip graceful shutdown accidentally ( #1327 )
...
* feat: make it harder to skip graceful shutdown accidentally
Signed-off-by: Spike Curtis <spike@coder.com >
* fixup: don't use unbuffered signal channel
Signed-off-by: Spike Curtis <spike@coder.com >
2022-05-06 13:45:18 -07:00
Bruno Quaresma
00806580f5
refactor: Return the display_name and name in the roles endpoint ( #1328 )
2022-05-06 19:18:00 +00:00
Kyle Carberry
97ee5600c7
fix: Remove "CODER_URL" and "CODER_TOKEN" ( #1330 )
...
These aren't being used, so it's best to remove for now.
It caused issues with dogfooding from v1 too!
2022-05-06 18:46:21 +00:00
Bruno Quaresma
cf5aca799d
Add reset user password action ( #1320 )
2022-05-06 13:23:03 -05:00