Spike Curtis
f5dbc718a7
fix: accept agent RPC connection without version query parameter ( #11790 )
...
Fixes an issue where Coder v2.7.1 agents connect to /api/v2/workspaceagents/me/rpc without a version query parameter
2024-01-24 09:10:16 +04:00
Colin Adler
13beb04521
fix: disable keepalives in workspaceapps transport ( #11789 )
...
Connection caching causes requests to hit the wrong workspaces. See
comment.
Fixes https://github.com/coder/coder/issues/11767
2024-01-24 14:46:59 +10:00
Muhammad Atif Ali
1e2634d2d0
chore(dogfood): use versioning for coder modules ( #11774 )
2024-01-24 01:33:25 +00:00
Kayla Washburn-Love
31a6a5dc6d
chore: add stories for DropdownArrow ( #11764 )
2024-01-23 16:02:57 -07:00
Jon Ayers
383eed93f8
fix: use correct logger for lifecycle_executor ( #11763 )
2024-01-23 14:33:55 -06:00
Bruno Quaresma
e828daba6e
refactor(site): simplify create workspace form ( #11771 )
...
This is the first PR of a series of PRs trying to simplify and improve the create workspace flow.
- Use the existent template header and remove the selected template card
- Move the owner field to the general section so we don't have "anemic" sections with single fields
Before:
<img width="1512" alt="Screenshot 2024-01-23 at 10 22 45" src="https://github.com/coder/coder/assets/3165839/6a2ba6b4-9ffb-4576-9282-7901691f45ee ">
Now:
<img width="1512" alt="Screenshot 2024-01-23 at 10 22 56" src="https://github.com/coder/coder/assets/3165839/84301548-4af9-4de0-96ff-2a6363fc8cf7 ">
2024-01-23 15:39:23 -03:00
Steven Masley
d6ba0dfecb
feat: add "updated" search param to workspaces ( #11714 )
...
* feat: add "updated" search param to workspaces
* rego -> sql needs to specify which <table>.organization_id
2024-01-23 11:52:06 -06:00
Steven Masley
081fbef097
fix: code-server path based forwarding, defer to code-server ( #11759 )
...
Do not attempt to construct a path based port forward url.
Always defer to code server, as it has it's own proxy method.
2024-01-23 11:36:44 -06:00
Marcin Tojek
77a4792ecd
fix(cli): ssh: auto-update workspace ( #11773 )
2024-01-23 18:01:44 +01:00
Bruno Quaresma
369821ea19
feat(site): generates unique workspace names by default ( #11772 )
2024-01-23 15:55:29 +00:00
Bruno Quaresma
910f17f4e7
refactor(site): refactor external auth component ( #11758 )
...
Recommended improvements:
- Rename component for clarity
- Simplify interface for contextual relevance
- Handle polling errors based on section, not every button
Before:
<img width="1511" alt="Screenshot 2024-01-22 at 15 24 26" src="https://github.com/coder/coder/assets/3165839/cfb8c0bc-f5a2-4708-bd97-fdfc46bd1eee ">
Now:
<img width="1512" alt="Screenshot 2024-01-22 at 15 24 41" src="https://github.com/coder/coder/assets/3165839/5aaad448-1bb2-45ea-9250-cd374a072be2 ">
2024-01-23 12:26:12 -03:00
Spike Curtis
059e533544
feat: agent uses Tailnet v2 API for DERPMap updates ( #11698 )
...
Switches the Agent to use Tailnet v2 API to get DERPMap updates.
Subsequent PRs will do the same for the CLI (`codersdk`) and `wsproxy`.
2024-01-23 14:42:07 +04:00
Spike Curtis
3e0e7f8739
feat: check agent API version on connection ( #11696 )
...
fixes #10531
Adds a check for `version` on connection to the Agent API websocket endpoint. This is primarily for future-proofing, so that up-level agents get a sensible error if they connect to a back-level Coderd.
It also refactors the location of the `CurrentVersion` variables, to be part of the `proto` packages, since the versions refer to the APIs defined therein.
2024-01-23 14:27:49 +04:00
Spike Curtis
eb12fd7d92
feat: make ServerTailnet set peers lost when it reconnects to the coordinator ( #11682 )
...
Adds support to `ServerTailnet` to set all peers lost before attempting to reconnect to the coordinator. In practice, this only really affects `wsproxy` since coderd has a local connection to the coordinator that only goes down if we're shutting down or change licenses.
2024-01-23 13:17:56 +04:00
dependabot[bot]
f86186eef2
chore: bump github.com/hashicorp/terraform-json from 0.20.0 to 0.21.0 ( #11738 )
...
Bumps [github.com/hashicorp/terraform-json](https://github.com/hashicorp/terraform-json ) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/hashicorp/terraform-json/releases )
- [Commits](https://github.com/hashicorp/terraform-json/compare/v0.20.0...v0.21.0 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-json
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>
2024-01-23 09:46:11 +03:00
Ben Potter
18d43405c0
chore: change SSH wording on workspace page ( #11702 )
2024-01-23 09:45:44 +03:00
dependabot[bot]
ca38bfd2fc
ci: bump the github-actions group with 2 updates ( #11745 )
...
Bumps the github-actions group with 2 updates: [crate-ci/typos](https://github.com/crate-ci/typos ) and [toshimaru/auto-author-assign](https://github.com/toshimaru/auto-author-assign ).
Updates `crate-ci/typos` from 1.17.1 to 1.17.2
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.17.1...v1.17.2 )
Updates `toshimaru/auto-author-assign` from 2.0.1 to 2.1.0
- [Release notes](https://github.com/toshimaru/auto-author-assign/releases )
- [Changelog](https://github.com/toshimaru/auto-author-assign/blob/main/CHANGELOG.md )
- [Commits](https://github.com/toshimaru/auto-author-assign/compare/v2.0.1...v2.1.0 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: toshimaru/auto-author-assign
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 09:43:02 +03:00
Stephen Kirby
91a8b1b886
chore: fix broken docs links ( #11760 )
...
* fixed broken install/packages.md link
* fixed broken docs links
* fixed admin/auth link
* fixed example-guide links
* replaced mitchell tweet with nix docs
* make fmt
* replaced private image with imgur
2024-01-22 18:45:34 -06:00
Asher and Steven Masley
3014777d2a
feat: add endpoints to oauth2 provider applications ( #11718 )
...
These will show up when configuring the application along with the
client ID and everything else. Should make it easier to configure the
application, otherwise you will have to go look up the URLs in the
docs (which are not yet written).
Co-authored-by: Steven Masley <stevenmasley@gmail.com >
2024-01-22 13:25:25 -09:00
Steven Masley
8e0a153725
chore: implement device auth flow for fake idp ( #11707 )
...
* chore: implement device auth flow for fake idp
2024-01-22 20:46:05 +00:00
Asher and Steven Masley
16c6cefde8
chore: pass lifetime directly into api key generate ( #11715 )
...
Rather than passing all the deployment values. This is to make it
easier to generate API keys as part of the oauth flow.
I also added and fixed a test for when the lifetime is set and the
default and expiration are unset.
Co-authored-by: Steven Masley <stevenmasley@gmail.com >
2024-01-22 11:42:55 -09:00
Bruno Quaresma
a31d19d538
refactor(site): apply cosmetic changes and remove ExternalAuth from settings page ( #11756 )
2024-01-22 16:07:43 -03:00
Asher
7589df325b
fix: display error when fetching OAuth2 provider apps ( #11713 )
2024-01-22 09:56:36 -09:00
Kayla Washburn-Love
69e963b1a2
refactor: move dashboard functionality to modules/dashboard/ ( #11721 )
2024-01-22 11:44:33 -07:00
Bruno Quaresma
14f114b224
chore(site): add test for sensitive value ( #11755 )
2024-01-22 15:03:15 -03:00
Kayla Washburn-Love
f74ef142d0
refactor: reorganize auth components and hooks ( #11717 )
2024-01-22 10:43:32 -07:00
Bruno Quaresma
f02561a599
chore(site): minor refactor to the resource metadata code ( #11746 )
2024-01-22 12:55:46 -03:00
Spike Curtis
5388a1b6d7
fix: use TSMP ping for reachability, not latency ( #11749 )
...
Use TSMP ping for reachability, but leave Disco ping for when we call Ping() since we often use that to determine whether we have a direct connection.
Also adds unit tests to make sure Ping() returns direct connection vs DERP correctly.
2024-01-22 17:37:15 +04:00
Ben Potter
66f119bde8
docs: add v2.7.1 changelog ( #11747 )
v2.7.1
2024-01-22 07:09:18 -06:00
Spike Curtis
7ffd99cfe2
fix: use DiscoPing (partially reverts #11306 ) ( #11744 )
2024-01-22 12:40:21 +00:00
Spike Curtis
3d85cdfa11
feat: set peers lost when disconnected from coordinator ( #11681 )
...
Adds support to Coordination to call SetAllPeersLost() when it is closed. This ensure that when we disconnect from a Coordinator, we set all peers lost.
This covers CoderSDK (CLI client) and Agent. Next PR will cover MultiAgent (notably, `wsproxy`).
2024-01-22 15:26:20 +04:00
Danny Kopping
9f6b38ce9c
chore: use correct anchor link on scale.md ( #11728 )
2024-01-22 10:34:38 +00:00
Dean Sheather
15a90f028e
chore: collect more template telemetry to gauge feature usage
...
We don't have visibility into some feature usage, so this adds a lot of fields missing from `database.Template` to `telemetry.Template`. Deprecation message is not collected, just whether it's set or not.
2024-01-22 18:55:27 +10:00
Spike Curtis
b7b936547d
feat: add setAllPeersLost to the configMaps subcomponent ( #11665 )
...
adds setAllPeersLost to the configMaps subcomponent of tailnet.Conn --- we'll call this when we disconnect from a coordinator so we'll eventually clean up peers if they disconnect while we are retrying the coordinator connection (or we don't succeed in reconnecting to the coordinator).
2024-01-22 12:12:15 +04:00
Spike Curtis
f01cab9894
feat: use tailnet v2 API for coordination ( #11638 )
...
This one is huge, and I'm sorry.
The problem is that once I change `tailnet.Conn` to start doing v2 behavior, I kind of have to change it everywhere, including in CoderSDK (CLI), the agent, wsproxy, and ServerTailnet.
There is still a bit more cleanup to do, and I need to add code so that when we lose connection to the Coordinator, we mark all peers as LOST, but that will be in a separate PR since this is big enough!
2024-01-22 11:07:50 +04:00
Muhammad Atif Ali
5a2cf7cd14
chore(docs): remove tabs from appearance settings ( #11726 )
2024-01-20 13:27:28 +00:00
dependabot[bot]
83013792b1
chore: bump vite from 4.5.1 to 4.5.2 in /site ( #11723 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 12:19:26 +00:00
Muhammad Atif Ali
4bed9611a8
fix(docs): fix tabs for support links ( #11724 )
2024-01-20 15:12:07 +03:00
Ben Potter
77de24c94f
docs: add v2.7.0 changelog ( #11719 )
...
* docs: add v2.7.0 changelog
* some modifications
v2.7.0
2024-01-19 23:11:35 +00:00
Kayla Washburn-Love
80eac73ed1
chore: remove useLocalStorage hook ( #11712 )
2024-01-19 16:04:19 -07:00
Asher
fa99f6a200
chore: make yarn use the right version of node ( #11716 )
...
Otherwise if for example you try to run `yarn storybook` it complains
that the version of Node is wrong.
`pnpm storybook` works fine and that is probably what we should
actually use, but as long as we are installing Yarn and not restricting
its use we might as well make it use the right version of Node.
2024-01-19 12:59:38 -09:00
Kayla Washburn-Love
76911f1375
chore: fix TemplateVersionEditor story ( #11709 )
2024-01-19 12:13:30 -07:00
Steven Masley
ca48b8783b
fix: update template with noop returned undefined template ( #11688 )
...
* fix: doing a noop patch to templates resulted in 404
The patch response did not include the template. The UI required the
template to be returned to form the new page path
null is more explicit, and harder to make occur by mistake.
2024-01-19 18:54:25 +00:00
Kayla Washburn-Love
75d70a9542
chore: add a story for WorkspaceOutdatedTooltip ( #11695 )
2024-01-19 11:41:18 -07:00
Muhammad Atif Ali
6090007708
docs: update docs to set SupportLinks ( #11699 )
2024-01-19 20:10:10 +03:00
Steven Masley
d67c9d1bb5
fix: set request header before do ( #11706 )
2024-01-19 16:14:08 +00:00
Steven Masley
ccfd1a561b
chore: improve device handling error message ( #11606 )
2024-01-19 09:41:52 -06:00
Mathias Fredriksson
593a1e9f60
feat(cli/exp): add target workspace/users to scaletest commands ( #11701 )
2024-01-19 15:32:46 +00:00
Marcin Tojek
4b059c4c93
fix: make workspace tooltips actionable ( #11700 )
2024-01-19 15:17:02 +01:00
Mathias Fredriksson
200a87e7d4
feat(cli/ssh): allow multiple remote forwards and allow missing local file ( #11648 )
2024-01-19 15:21:10 +02:00