63572d9f53
fix: loosen timing checks for heartbeats ( #15923 )
...
Fixes #15782 .
I believe that Windows doesn't always have high-resolution timers available, so this PR loosens the check for PG Coordinator heartbeats, to avoid flakes like:
https://github.com/coder/coder/actions/runs/12397381823/job/34607639048
2024-12-19 13:49:01 +04:00
9ef22bebc4
chore: bump google.golang.org/grpc from 1.68.0 to 1.69.2 ( #15928 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-19 08:26:17 +00:00
6499106796
chore: bump google.golang.org/api from 0.210.0 to 0.213.0 ( #15929 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-19 13:12:40 +05:00
e7152d67c4
docs: add a link to the quickstart guide in the install Coder document ( #15931 )
2024-12-19 12:47:21 +05:00
7697005663
chore(dogfood): prevent downloading modules on workspace stop ( #15922 )
2024-12-19 12:46:41 +05:00
cdc1978f4d
feat: add breadcrumbs to admin settings pages ( #15865 )
...
resolves coder/internal#174
Uses shadcn/ui for admin settings breadcrumbs
Figma:
https://www.figma.com/design/OR75XeUI0Z3ksqt1mHsNQw/Dashboard-v1?node-id=139-1380&m=dev
<img width="1180" alt="Screenshot 2024-12-13 at 21 37 18"
src="https://github.com/user-attachments/assets/7ab5faa0-dcc9-437e-9ecf-5365cea5d69e "
/>
<img width="1178" alt="Screenshot 2024-12-13 at 21 37 27"
src="https://github.com/user-attachments/assets/b0b55ec2-8a9e-4316-a850-a37480173f9c "
/>
2024-12-18 17:35:31 -05:00
8e61e4a0be
feat: split management settings sidebar into deployment/organization sidebars ( #15388 )
...
resolves coder/internal#199
Currently the admin settings has a combined sidebar for deployment
settings and organization settings, this PR separates the sidebar in 2
sidebars for deployment and organization settings.
This is preparation for the redesign work of the organization settings
sidebar where a dropdown will be user to select and create new
organizations.
see figma:
https://www.figma.com/design/OR75XeUI0Z3ksqt1mHsNQw/Dashboard-v1?node-id=684-5287&m=dev
This also does some of the initial redesign work for the sidebars using
Tailwind.
<img width="1172" alt="Screenshot 2024-11-05 at 5 28 47 PM"
src="https://github.com/user-attachments/assets/5ede14fa-1da9-4e74-a967-81f4e5772c68 ">
<img width="1169" alt="Screenshot 2024-11-05 at 5 28 56 PM"
src="https://github.com/user-attachments/assets/459339ba-f3bf-4ef2-b86a-143c922108b7 ">
2024-12-18 17:18:46 -05:00
2c7f8ac65f
chore: migrate to coder/websocket 1.8.12 ( #15898 )
...
Migrates us to `coder/websocket` v1.8.12 rather than `nhooyr/websocket` on an older version.
Works around https://github.com/coder/websocket/issues/504 by adding an explicit test for `xerrors.Is(err, io.EOF)` where we were previously getting `io.EOF` from the netConn.
2024-12-19 00:51:30 +04:00
50333d312f
feat: add workspace-proxy-url flag to scaletest workspace-traffic ( #15920 )
...
This allows the command to target a workspace proxy when appropriate.
Part of https://github.com/coder/internal/issues/149
So far I've verified the correct url being used with logs:
```
➜ coder git:(f0ssel/workspace-traffic-proxy) ✗ go run ./cmd/coder/main.go exp scaletest workspace-traffic --job-timeout=60s --workspace-proxy-url="https://paris.fly.dev.coder.com "
Running load test...
web url: https://paris.fly.dev.coder.com
...
➜ coder git:(f0ssel/workspace-traffic-proxy) ✗ go run ./cmd/coder/main.go exp scaletest workspace-traffic --job-timeout=60s --workspace-proxy-url="https://paris.fly.dev.coder.com " --app="code-server"
Running load test...
app url: https://paris.fly.dev.coder.com/@f0ssel/scaletest-1.dev/apps/code-server
```
2024-12-18 11:53:01 -05:00
7be96bbb09
chore(docs): clarify that variables be edited through the web UI ( #15799 )
2024-12-18 15:55:19 +00:00
02fd7582de
chore: ignore storybook files on biome ( #15918 )
2024-12-18 14:11:11 +00:00
fe98644393
chore: ensure go file is valid during generation ( #15903 )
...
Closes https://github.com/coder/internal/issues/258
---------
Co-authored-by: Cian Johnston <cian@coder.com >
2024-12-18 07:20:26 -06:00
13bb4492c9
chore: remove apitypings specific go.mod ( #15899 )
...
Keeping the deps in sync between this and the primary go.mod is
a headache.
adds Tailscale generated types
2024-12-18 07:18:31 -06:00
e0f802223d
chore: bump lucide-react from 0.454.0 to 0.462.0 in /site ( #15700 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-18 12:55:05 +00:00
7c82b83232
fix: adjust validation errors for template schedule form ( #15915 )
...
Fixes: https://github.com/coder/coder/issues/15910
This PR sets custom validation errors for the Template Schedule form
when the given value is not integer.
2024-12-18 13:38:19 +01:00
efa9f009b6
fix: correct link to premium plan ( #15914 )
...
Fixes: https://github.com/coder/coder/issues/15911
The link target `/licensing` does not exist, so we need to link to
_Pricing Plans_ instead.
2024-12-18 13:06:46 +01:00
01f2ac0a09
chore: embed Info.plist
in dylib ( #15907 )
...
Relates to https://github.com/coder/coder-desktop-macos/issues/2
2024-12-18 11:08:33 +00:00
91875c2b47
fix: allow users to extend their running workspace's deadline ( #15895 )
...
Fixes https://github.com/coder/coder/issues/15515
This change effectively reverts the changes introduced by
https://github.com/coder/coder/pull/13182 (for
https://github.com/coder/coder/issues/13078 ).
We also rename the `override-stop` command name to `extend` to match the
API endpoint's name (keeping an alias to allow `override-stop` to be used).
2024-12-18 10:58:33 +00:00
4c5b737368
fix: accumulate agentstats until reported and fix insights DAU offset ( #15832 )
2024-12-18 11:26:38 +02:00
77dc510a45
chore: bump cloud.google.com/go/compute/metadata from 0.5.2 to 0.6.0 ( #15878 )
2024-12-18 18:15:45 +09:00
dcf51535bb
fix(coderd/wsbuilder): correctly evaluate dynamic workspace tag values ( #15897 )
...
Relates to https://github.com/coder/coder/issues/15894 :
- Adds `coderdenttest.NewExternalProvisionerDaemonTerraform`
- Adds integration-style test coverage for creating a workspace with
`coder_workspace_tags` specified in `main.tf`
- Modifies `coderd/wsbuilder` to fetch template version variables and
includes them in eval context for evaluating `coder_workspace_tags`
2024-12-17 21:57:03 +00:00
bcb15aab42
docs: add context for wireguard in places referencing tailscale ( #15901 )
...
> We do not use Tailscale (product) but instead import Tailscale OSS
libraries which has some nice ways of handling Wireguard. We also use
Tailscale's logo in our architecture, but calling it only `Tailscale`
seems to throw people off when they're considering Coder and how it
works.
I've left it wherever it seems to make sense (such as when we talk about
[DERP](https://coder.com/docs/admin/networking#relayed-connections )),
and sprinkled some `Wireguard` and `websocket/HTTPS` where I could
2024-12-17 15:13:12 -05:00
8de3cd6400
chore: tweak biome config ( #15864 )
2024-12-17 12:49:34 -07:00
1eba4c08cb
docs: add beta back to orgs ( #15902 )
...
I merged https://github.com/coder/coder/pull/15888/ too early.
This PR incorporates @matifali 's edit suggestions
---------
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-12-17 13:37:26 -05:00
ebb19b34d2
chore: add shadcnui popover, deprecate MUI popover ( #15884 )
...
Add popover component from shadcn/ui -
https://ui.shadcn.com/docs/components/popover
This is preparation for replacing MUI popover and additional work for
organizations redesigns:
https://www.figma.com/design/OR75XeUI0Z3ksqt1mHsNQw/Dashboard-v1?node-id=139-1380&m=dev
2024-12-17 13:31:05 -05:00
21cc6f77fe
docs: move premium and enterprise badges from heading to info in admonition ( #15774 )
...
closes https://github.com/coder/coder.com/issues/666
[preview](https://coder.com/docs/@666-unheading-premium/user-guides/workspace-scheduling#autostop-requirement )
---------
Co-authored-by: EdwardAngert <2408959-EdwardAngert@users.noreply.gitlab.com >
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-12-17 18:20:01 +00:00
badebc79cb
chore: add new avatar component ( #15882 )
...
Related to https://github.com/coder/coder/issues/14997
- Add a new `Avatar` component based on the [new avatar
design](https://www.figma.com/design/WfqIgsTFXN2BscBSSyXWF8/Coder-kit?node-id=711-383&t=xqxOSUk48GvDsjGK-0 ).
- Deprecate existent `Avatar` component.
2024-12-17 05:55:31 -03:00
468ffd9919
docs: copy edit the organizations doc and add link to best practices ( #15888 )
...
[preview](https://coder.com/docs/@orgs-edit-202412/admin/users/organizations )
---------
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-12-17 10:44:21 +05:00
e191d9650c
feat: support created_at filter for the GET /users endpoint ( #15633 )
...
Closes https://github.com/coder/coder/issues/12747
We support these filters currently:
https://coder.com/docs/v2/latest/admin/users#user-filtering , adding
`created_at` filter as well.
2024-12-17 15:24:54 +11:00
f16c80916e
chore: make coder dogfood use dev.registry.coder.com ( #15889 )
...
This PR makes the dogfood template use `dev.registry.coder.com` for its
terraform module registry. I think this should be the state going
forward so that every new deployment of the registry gets a small amount
of dogfooding before going live.
2024-12-16 16:02:52 -06:00
74f07ec9ae
docs: add new security doc to best practices section ( #15805 )
...
[preview](https://coder.com/docs/@bp-security/tutorials/best-practices/security-best-practices )
---------
Co-authored-by: EdwardAngert <2408959-EdwardAngert@users.noreply.gitlab.com >
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
Co-authored-by: Spike Curtis <spike@coder.com >
2024-12-16 20:47:38 +00:00
89479cc843
fix(dogfood): re-enable process priority management for dogfood ( #15765 )
...
- The dogfood-related bugs with this feature are (hopefully) resolved.
This reverts commit 19ec6af2ad
.
2024-12-16 21:05:28 +02:00
05914cb929
fix: disable init() function in github/charmbracelet/bubbletea dependency ( #15817 )
...
- Fixes an issue where an init function
causes writes to the terminal when using `agent-exec` which results in raw
ansi characters being printed to the web terminal.
- Was also causing significant latency in launching a web terminal
2024-12-16 20:58:36 +02:00
202f7f70f0
feat: create e2e tests for organization custom roles page ( #15814 )
...
Adds 5 premium tests and 1 non-premium test.
2024-12-16 10:42:52 -05:00
4c939a6461
ci: bump the github-actions group with 3 updates ( #15874 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-16 18:14:32 +05:00
8b51fdc6b5
ci: pin weekly-docs runner ubuntu version to 22.04 ( #15873 )
...
The action is currently failing due to the runner using `ubuntu-latest`
See [the ubuntu
blog](https://ubuntu.com/blog/whats-new-in-security-for-ubuntu-24-04-lts#:~:text=22.04%20LTS.-,Unprivileged%20user%20namespace%20restrictions,-Unprivileged%20user%20namespaces )
for more.
2024-12-16 10:23:11 +00:00
c84bf9f815
chore(docs): bump version in release calendar, kubernetes install docs ( #15737 )
2024-12-16 09:29:41 +00:00
14ce3aa018
chore(go.mod): update x/crypto to 0.31.0 ( #15869 )
2024-12-16 09:20:31 +00:00
2eee201cd8
fix: encode .dockerconfigjson
value for kubernetes-devcontainer example template ( #15819 )
...
Value of `.dockerconfigjson` in kubernetes_secret datasource is already
decoded, so I encode it again to avoid error for
`ENVBUILDER_DOCKER_CONFIG_BASE64`
2024-12-16 09:05:44 +00:00
67fdbe5f49
fix(vpn): use unbuffered channel in speaker ( #15863 )
...
Closes https://github.com/coder/internal/issues/253 .
2024-12-16 19:48:00 +11:00
50bb13ca7d
chore: bump golang.org/x/crypto from 0.30.0 to 0.31.0 in /scripts/apitypings ( #15840 )
2024-12-16 16:03:52 +09:00
409e2c7a20
fix: use random names for TestUpdateUserProfile ( #15868 )
...
Fixes a flake seen in
https://github.com/coder/coder/actions/runs/12346801529/job/34452940351
It's possible but exceedingly rare for the randomly generated username
to be exactly 32 characters.
Then, appending a `1` to that username causes the username to be invalid
and the test to fail. Instead of appending we'll just generate a new
username that is <=32 characters.
The `UpdateSelf` subtest has the same appending, but uses a fixed
username that is less than 32 characters, so it doesn't need to be
changed.
2024-12-16 06:59:44 +00:00
c92f480fcf
chore: add e2e test for org groups ( #15853 )
2024-12-13 15:14:12 -08:00
50ff06cc3c
chore: acquire lock for individual workspace transition ( #15859 )
...
When Coder is ran in High Availability mode, each Coder instance has a
lifecycle executor. These lifecycle executors are all trying to do the
same work, and whilst transactions saves us from this causing an issue,
we are still doing extra work that could be prevented.
This PR adds a `TryAcquireLock` call for each attempted workspace
transition, meaning two Coder instances shouldn't duplicate effort.
2024-12-13 16:59:27 +00:00
d504e0ea66
feat: add support for specifying LoadBalancer class name ( #15838 )
...
This PR adds support for configuring the loadBalancerClass via the chart
values.
2024-12-13 15:33:16 +00:00
34a2ec8ad9
ci: build images on depot again ( #15860 )
2024-12-13 13:59:24 +00:00
6116776905
feat: show warning dialog if user switches off assign default org ( #15848 )
...
resolves coder/internal#240
Switching off the setting to automatically assign all users to the
default organization is potentially disruptive. This adds a warning
dialog before the change is commited.
<img width="1168" alt="Screenshot 2024-12-13 at 11 20 16"
src="https://github.com/user-attachments/assets/e6bf8c97-3cad-4501-9f28-073fca118668 "
/>
2024-12-13 06:24:40 -05:00
b5ba3e3da8
fix(site): only show provisioner warnings for pending workspaces ( #15858 )
...
When creating, starting, stopping or otherwise mutating a workspace, we
used to erroneously and briefly display a provisioner health warning
alert. This PR updates the component to only display this warning if the
build is pending, not "starting" or any other state that means a
provisioner has already acquired the job.
2024-12-13 11:58:19 +02:00
d35de45d94
ci: try building images on GitHub-hosted runner again ( #15854 )
2024-12-12 23:33:22 +00:00
0e98c0e456
fix(site): remove a misplaced warning banner in the frontend ( #15837 )
...
This PR fixes some faulty frontend logic that was introduced in #15686
2024-12-12 17:25:10 +02:00