Colin Adler
17f692a89a
fix(scaletest): correctly validate configs using `SessionToken` ( #7111 )
2023-04-12 17:36:05 -05:00
Ben Potter
f517724caa
chore: reorganize some docs ( #7062 )
...
* chore: move docs pages into corresponding folder
* chore: prioritize clouds in platforms list
* chore: fix networking docs links
* chore: rename to "docker in workspaces"
* mention CLI documentation
* fmt
2023-04-12 21:47:25 +00:00
Muhammad Atif Ali
114d4aac23
chore: update example templates to use `display_name` ( #7001 )
...
* add `display_name`
* fix typos and `terraform validate`
* update display_name
* Update examples/templates/aws-windows/main.tf
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/templates/aws-linux/main.tf
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/templates/azure-linux/main.tf
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/templates/azure-linux/main.tf
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/templates/do-linux/main.tf
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/templates/do-linux/main.tf
Co-authored-by: Ben Potter <me@bpmct.net>
* Update main.tf
* Update main.tf
* Update main.tf
* Update main.tf
* Update main.tf
---------
Co-authored-by: Ben Potter <me@bpmct.net>
2023-04-12 16:33:38 -05:00
Kira Pilot
f6c89a2615
feat: differentiate new user registration from user login in the audit log ( #7096 )
...
* auditing register events
* fix tests
* update docs
* update comments
* Update coderd/audit/request.go
Co-authored-by: Colin Adler <colin1adler@gmail.com>
---------
Co-authored-by: Colin Adler <colin1adler@gmail.com>
2023-04-12 11:46:16 -07:00
Rodrigo Maia
d1d459cb79
feat(site): add advanced schedule settings to UI ( #7061 )
...
* feat: add advanced schedule settings
* Update site/src/pages/CreateTemplatePage/CreateTemplateForm.tsx
Co-authored-by: Dean Sheather <dean@deansheather.com>
* rename variable
* fix optionText css
---------
Co-authored-by: Dean Sheather <dean@deansheather.com>
2023-04-12 17:47:48 +00:00
Muhammad Atif Ali
264093a874
chore: add agent metadata to example templates ( #7044 )
...
* add `display_name`
* fix typos and `terraform validate`
* update display_name
* Add agent metadata
* add % to cpu usage
* update disk usage check script
* remove metadata from containers and pods workspaces
* removes disk metadata from container workspaces
---------
Co-authored-by: Ben <me@bpmct.net>
2023-04-12 12:05:16 -05:00
Ben Potter
af24aea04f
chore: reduce docker examples ( #6849 )
2023-04-12 16:26:03 +00:00
Mathias Fredriksson
770712e1f5
ci: Add script for fetching past test stats from CI ( #7086 )
...
Refs: #6677 , #6675
2023-04-12 10:03:26 +00:00
Muhammad Atif Ali
531fd23fd2
fix(docs): fix broken markdown links ( #7081 )
...
* fix(docs): fix markdown docs links
More than half of them were actually valid links but, due to missing file extensions were flagged as invalid. I added a file extension, so it should pass now.
* Updated docgen to include extension
2023-04-11 15:05:51 -05:00
Colin Adler
a44070e2ec
feat(scaletest): allow scaletests to run using the host credentials ( #7075 )
2023-04-11 19:49:28 +00:00
Steven Masley
2585249014
chore: Move writeConfig to a cli middleware ( #7093 )
...
* chore: Move writeConfig to a cli middleware
Trying to reduce the server LoC, it's very long and unwieldy.
The workspace proxy code needs to replicate, and trying to reuse
as much as possible
* Move deprecation warnings too
2023-04-11 14:47:07 -05:00
Marcin Tojek
e1db64a1e8
chore: bump up coder/tailscale ( #7089 )
2023-04-11 11:44:47 -05:00
Bruno Quaresma
b86ed11bc0
refactor(site): Refactor the schedule controls in the workspace page ( #7083 )
2023-04-11 13:33:24 -03:00
Bruno Quaresma
b92e7d4fab
refactor(site): Refactor workspace schedule page ( #7069 )
2023-04-11 16:27:52 +00:00
Kevin Conley
4dd5d79412
fix: Parse `CODER_GITAUTH_N_NO_REFRESH` env var value instead of key ( #7051 )
2023-04-11 09:18:17 -05:00
Marcin Tojek
3b10e89047
Revert "fix: change auto-start to automatically update workspaces ( #6053 )" ( #7084 )
...
This reverts commit bdddc3e7ae
.
2023-04-11 14:14:35 +00:00
Steven Masley
9d39371ee0
feat: Option to remove WorkspaceExec from `owner` role ( #7050 )
...
* chore: Add AllResources option for listing all RBAC objects
* Owners cannot do workspace exec site wide
* Fix FE authchecks to valid RBAC resources
2023-04-11 08:57:23 -05:00
Marcin Tojek
ad2353c3d8
chore: improve syntax in metrics collector ( #7085 )
2023-04-11 13:50:34 +00:00
Muhammad Atif Ali
63af4c6ed1
chore: Add exceptions for markdown check ( #7078 )
...
* rename and run slack step on failure
* add exceptions
2023-04-11 13:15:44 +02:00
Ben Potter
45776e57f6
docs: remove RBAC section ( #7040 )
2023-04-10 21:57:00 -05:00
Muhammad Atif Ali
fb44dc653e
fix(ci): fix typo in cron-weekly.yaml ( #7059 )
...
Co-authored-by: Dean Sheather <dean@deansheather.com>
2023-04-11 01:58:37 +00:00
Kyle Carberry
81e2b2500a
feat: add level support for startup logs ( #7067 )
...
This allows external services like our devcontainer support to display
errors and warnings with custom styles to indicate failures to users.
2023-04-10 14:29:59 -05:00
Bruno Quaresma
aa2468b16e
fix(site): Handle rename a folder to a file ( #7063 )
2023-04-10 13:30:21 -03:00
Eric Paulsen
e5c6ebdc96
docs: bump tf version in offline docs ( #7065 )
2023-04-10 11:04:31 -04:00
Ammar Bandukwala
4b99e2d07e
feat: add YAML support to server ( #6934 )
2023-04-07 22:58:21 +00:00
Colin Adler
a3c6cb1768
fix: don't query workspace in `UpdateWorkspaceAgentConnectionByID` ( #7042 )
2023-04-07 15:21:52 -05:00
Muhammad Atif Ali
592b84984f
chore: Update code-server in example templates ( #6806 )
...
Update code-server from `4.8.3` to `4.11.0`
2023-04-07 12:09:46 -05:00
Muhammad Atif Ali
7e530b0652
chore: check for invalid markdown links in docs weekly ( #6795 )
...
* chore(ci): add an automatic check to verify markdown links.
As per #6793 , there are multiple broken links in our docs. This action will check if all markdown links are valid.
cc: @ammario @bpmct
* Revert "chore(ci): add an automatic check to verify markdown links. "
This reverts commit 294767e056
.
* Create cron-weekly.yaml
* add workflow dispatch for testing
* fmt
* Update cron-weekly.yaml
* remove slack notification for now
* Add slack notification
* Update cron-weekly.yaml
* Add logs URL
* fmt
2023-04-07 16:50:08 +00:00
Marcin Tojek
3e250c6609
chore: clidocgen: generate consistent docs ( #7047 )
...
* chore: clidocgen: ensure same generated docs
* fix
2023-04-07 18:32:06 +02:00
Marcin Tojek
0347231bb8
feat: expose agent metrics via Prometheus endpoint ( #7011 )
...
* WIP
* WIP
* WIP
* Agents
* fix
* 1min
* fix
* WIP
* Test
* docs
* fmt
* Add timer to measure the metrics collection
* Use CachedGaugeVec
* Unit tests
* Address PR comments
2023-04-07 17:48:52 +02:00
Ammar Bandukwala
dd85ea8977
feat: tolerate disconnects in agent metadata frontend ( #6939 )
2023-04-06 19:51:52 -05:00
Dean Sheather
5398150c25
chore: move workspace apps tests to new package ( #7025 )
...
* chore: move workspace apps tests to new package
* chore: move reconnecting pty to apptest package
2023-04-06 16:35:27 -05:00
Steven Masley
b2892c3d17
test: Increase test coverage on auditable resources ( #7038 )
...
* test: Increase test coverage on auditable resources
When adding a new audit resource, we also need to add it to the
function switch statements. This is a likely mistake, now a unit
test will check this for you
2023-04-06 16:16:53 -05:00
Ammar Bandukwala
24d8644c0b
chore: de-flake TestWorkspaceAgent_Metadata (round 2) ( #7039 )
...
This time, we keep the timing / "racey" tests, but avoid running
them in the harsher CI conditions.
2023-04-06 21:10:13 +00:00
Kyle Carberry
e1149992d8
feat: support ansi colors in startup script logs ( #7037 )
...
This will help with beautiful output for devcontainers!
2023-04-06 12:39:09 -05:00
Ammar Bandukwala
2637f5501b
chore: de-flake TestWorkspaceAgent_Metadata ( #7036 )
2023-04-06 17:20:16 +00:00
Kyle Carberry
c68ab7d9a8
fix: support `X-Forwarded-Host` with `CODER_REDIRECT_TO_ACCESS_URL` ( #7035 )
...
Fixes #7026 .
2023-04-06 12:07:24 -05:00
Mathias Fredriksson
aa660e0631
feat(agentssh): Gracefully close SSH sessions on Close ( #7027 )
...
By tracking and closing sessions manually before closing the underlying
connections, we ensure that the termination is propagated to SSH/SFTP
clients and they're not left waiting for a connection timeout.
Refs: #6177
2023-04-06 19:57:30 +03:00
Colin Adler
f4f40d0ed2
fix: increase workspace name randomess in tests ( #7018 )
2023-04-06 11:53:02 -05:00
Mathias Fredriksson
0224426e5b
refactor(agent): Move SSH server into agentssh package ( #7004 )
...
Refs: #6177
2023-04-06 19:39:22 +03:00
Kyle Carberry
3ff2ae1b1a
fix: output askpass to stderr ( #7034 )
...
This fixes askpass not outputting a prompt.
2023-04-06 11:32:43 -05:00
Marcin Tojek
5bd02917ec
docs: Update description for mutable parameters ( #7003 )
2023-04-06 18:23:47 +02:00
Mathias Fredriksson
121c2bcde8
test(agent): Fix tests without cmd.Wait() ( #7029 )
2023-04-06 16:45:53 +03:00
Eric Paulsen
2da0702009
fix(helm): missing templating for deployment labels ( #6869 )
...
Co-authored-by: Dean Sheather <dean@deansheather.com>
2023-04-06 17:03:21 +10:00
Colin Adler
a32951c46a
fix: reduce idle workspace queries ( #7022 )
2023-04-06 01:58:54 +00:00
Dean Sheather
63f9ef2480
chore: fix minor int coercion codeql vulnerability ( #7024 )
2023-04-05 21:43:24 +00:00
Dean Sheather
c18ed6197c
chore: fix trivy ci workflow ( #7023 )
2023-04-05 21:36:04 +00:00
Eric Paulsen
0167d76a7c
docs: add helm example for OIDC_GROUP_MAPPING var ( #7007 )
...
* docs: add helm example for OIDC_GROU_MAPPING var
* fix: fmt
2023-04-05 21:05:48 +00:00
Colin Adler
e0f7cf5ec6
chore: fix `postGroupByOrganization` swagger tag ( #7021 )
2023-04-05 20:17:36 +00:00
Colin Adler
391738cc25
chore: remove documented groups endpoint that doesn't exist ( #7020 )
2023-04-05 14:26:21 -05:00