Commit Graph

3021 Commits

Author SHA1 Message Date
Colin Adler 1cd5f38cb0
feat: add debug server for tailnet coordinators (#5861)
Implements a Tailscale-like debug server for our in-memory coordinator. This should provide some visibility into why connections could be failing.
Resolves: https://github.com/coder/coder/issues/5845

![image](https://user-images.githubusercontent.com/6332295/214680832-2724d633-2d54-44d6-a7ce-5841e5824ee5.png)
2023-01-25 21:27:36 +00:00
Kyle Carberry 8830ddfd56
docs: update the readme to reduce unnecessary text (#5837)
The README was starting to get quite large, and I felt it was a bit bloaty.

- Removes Twitter badge (the API was removed, so it wasn't working anyways)
- Adds tagline to the title (an experiment, but worth a shot)
- Reduces highlights
- Removes recommended reading (people want to get started asap on a repo)
- Updates doc links `/docs/coder-oss` -> `/docs/v2`
- Moves comparison to the bottom
- Removes adopters.md (we never promoted this, so it hasn't been used)
2023-01-25 14:49:15 -06:00
Steven Masley 08412fd1af
chore: Remove unused SQL functions (#5857)
* chore: Remove unused sql functions
- GetProvisionerDaemonByID
- UpdateProvisionerDaemonByID
- GetUserGroups
- GetWorkspaceCountByUserID
- GetLatestAgentStat
2023-01-25 11:30:12 -06:00
Steven Masley b678309fc9
chore: Authz should support non-named roles (#5855)
* chore: Authz should support non-named roles

Named roles are a construct for users to assign/interact with roles.
For authzlayer implementation, we need to create "system" users.
To enforce strict security, we are making specific roles with
the exact required permissions for the system action.
These new roles should not be available to the user. There is a
clear code divide with this implementation that allows a RoleNames
implemenation for users to user, and system users can create their
own implementation
2023-01-25 10:54:16 -06:00
Bruno Quaresma de66f0d540
docs: Add frontend guide (#5852) 2023-01-25 16:15:06 +00:00
Mathias Fredriksson 5c5ddc6b23
fix(site): Hide agent lifecycle unless opted in via `delay_login_until_ready` (#5850)
Refs: #5835, #5749
2023-01-25 15:23:31 +02:00
Mathias Fredriksson 78ede50be8
ci: Add authors to release notes (#5834) 2023-01-25 11:13:42 +02:00
Kira Pilot 322a4d93e1
feat: add audit log filter for autostarted and autostopped workspace builds (#5830)
* added query

* fixed query

* added example to dropdown

* added documentation

* added test

* fixed formatting

* fixed format
2023-01-24 15:34:29 -05:00
Bruno Quaresma 36384aa3c1
chore(site): Use react-query and refactor the workspaces page to use it (#5838) 2023-01-24 16:22:42 -03:00
Bruno Quaresma bef9e72078
refactor(site): Update agent status to include the lifecycle (#5835) 2023-01-24 14:48:03 -03:00
Bruno Quaresma f65c7ca6b3
chore(site): Improve the e2e setup (#5840) 2023-01-24 14:45:44 -03:00
Kira Pilot 1213162163
feat: adding template version id to workspace build diff (#5841)
* adding template-version-id to build diff

* fix tests
2023-01-24 10:53:04 -05:00
Marcin Tojek 26c69525d1
feat: Validate workspace build parameters (#5807) 2023-01-24 14:22:00 +01:00
Mathias Fredriksson 138887de7e
feat: Add workspace agent lifecycle state reporting (#5785) 2023-01-24 14:24:27 +02:00
Kyle Carberry dbfeb5630c
fix: update docs link for configuration (#5827)
This was set to the old URL pre docs move!
2023-01-23 18:42:47 -06:00
Colin Adler c3731a1be0
fix: ensure agent websocket only removes its own conn (#5828) 2023-01-23 17:22:34 -06:00
Kira Pilot 443e2180fa
feat: indicate when workspace builds are stopped/started by Coder (#5813)
* feat: indicate when workspace_builds are stopped/started by Coder

* added translattion

* added json tags and adjust type
2023-01-23 15:47:58 -05:00
Kira Pilot 882832cc51
chore: removed FE code owners (#5826) 2023-01-23 20:29:18 +00:00
Colin Adler d2ae16dd22
fix: routinely ping agent websocket to ensure liveness (#5824) 2023-01-23 20:05:29 +00:00
Kyle Carberry ba8dd496c3
chore: manually specify templates to embed (#5823)
This is part of a multi-step cleanup for the example templates.
The goal is to have a lot of templates here, and only embed
specific ones we feel are impactful during setup.
2023-01-23 18:12:11 +00:00
Marcin Tojek bbb208e29c
feat: Add CLI support for workspace build parameters (#5768)
* WIP

* WIP

* CLI: handle workspace build parameters

* fix: golintci

* Fix: dry run

* fix

* CLI: is mutable

* coderd: mutable

* fix: golanci

* fix: richParameterFile

* CLI: create unit tests

* CLI: update test

* Fix

* fix: order

* fix
2023-01-23 15:01:22 +01:00
Mathias Fredriksson 6a245ab1cc
test: Fix GPG test so it does not inherit parent parallelism (#5820)
* test: Fix GPG test so it does not inherit parent parallelism

Running a subtest in a parent with `t.Parallel()` and using `t.Setenv`
is not allowed in Go 1.20, so we move it to a separate test function.

* Fix shadowed import
2023-01-23 11:40:41 +00:00
Cian Johnston 73afdd7c09
chore: agent_test.go: use ptty.Peek() instead of expecting caret in TestAgent_SessionTTYShell (#5821) 2023-01-23 11:23:25 +00:00
Mathias Fredriksson 8afdf24d10
chore: Update sqlc to v1.16.0 (#5788)
* chore: Update sqlc to v1.16.0

* chore: Fix cases where types became Null-types

* chore: Set parameter_schemas default_destination_scheme and default_source_scheme to NOT NULL

* chore: Add enum validation to database fake

* chore: Fix all tests that skipping enum values

* fix: Use correct err in providionerdserver audit log failure log
2023-01-23 13:14:47 +02:00
sharkymark f67acac2b7
docs: updated diagram with git provider logos (#5816) 2023-01-21 11:07:39 -08:00
Dean Sheather 37628c8b5b
fix: comment on winget PR correctly (#5789) 2023-01-21 00:27:58 +00:00
Bruno Quaresma b045734b6a
feat: Add use template button to template row (#5811) 2023-01-20 17:29:16 -03:00
Kira Pilot 0e58772f5b
fix: filter workspace_build resource on start/stop action (#5809)
* fix: ufilter workspace_build resource on start/stop action

* added preset filter for workspace_build filtering

* cleaning up the preset filters
2023-01-20 13:23:13 -05:00
Bruno Quaresma 918c37c358
chore: Ignore expired at on chromatic (#5808) 2023-01-20 12:41:54 -03:00
Colin Adler 8819f798f8
fix(helm): revert `app.kubernetes.io/part-of` as a selector (#5806)
Deployment selectors are immutable!
2023-01-20 05:31:05 +00:00
Kyle Carberry 546a8931aa
chore: move vscode local out of experiments (#5773)
We've been dogfooding the VS Code extension for a while,
and it seems stable enough that it's overall positive
to release!
2023-01-20 04:32:59 +00:00
Ammar Bandukwala b91b4533d8
docs: fix typo 2023-01-19 20:30:50 -06:00
Bruno Quaresma ff69c0e70f
refactor: Refactor auth provider (#5782) 2023-01-19 21:02:29 -03:00
Kira Pilot a0a959c7a5
feat: better display secret audit values (#5801) 2023-01-19 17:47:53 -05:00
Colin Adler 341b7caff6
fix(examples): move k8s email label to an annotation (#5802) 2023-01-19 22:03:53 +00:00
Mathias Fredriksson 320cd3f3bc
feat(cli): Add `restart` subcommand (#5799)
Fixes #2464
2023-01-19 23:56:41 +02:00
Ben Potter 8e5aefb841
docs: architecture diagram improvements (#5784)
* docs: architecture diagram improvements

* use new diagram
2023-01-19 21:39:04 +00:00
Ben Potter 9c563af459
fix: disable autocomplete for deletion dialogs (#5794) 2023-01-19 20:24:41 +00:00
Steven Masley 08cce81ac8
feat: Implement allow_list for scopes for resource specific permissions (#5769)
* feat: Implement allow_list for scopes for resource specific permissions

Feature that adds an allow_list for scopes to specify particular resources.
This enables workspace agent tokens to use the same RBAC system as users.

- Add ID to compileSQL matchers
* Plumb through WithID on rbac objects
* Rename Scope -> ScopeName
* Update input.json with scope allow_list

Co-authored-by: Cian Johnston <cian@coder.com>
2023-01-19 13:41:36 -06:00
Mathias Fredriksson f0df0686f9
chore(dogfood): Avoid calling ~/personalize unless executable (#5793) 2023-01-19 19:02:15 +00:00
Mathias Fredriksson 2ed70c7af9
chore: Fix make gen for docs/manifest.json (#5792) 2023-01-19 18:16:36 +00:00
Bruno Quaresma 36e97e3fa1
chore: update JS teests in CI (#5786) 2023-01-19 16:48:32 +00:00
Ben Potter 9e346b3251
docs: scaling Coder (#5550)
* docs: scaling Coder

* change icon

* Update docs/admin/scale/index.md

Co-authored-by: Dean Sheather <dean@deansheather.com>

* Update docs/admin/scale/index.md

Co-authored-by: Dean Sheather <dean@deansheather.com>

* Update docs/admin/scale/index.md

Co-authored-by: Dean Sheather <dean@deansheather.com>

* add prom link

* add plumbing for gke doc

* add limits/requests

* changes from feedback

* change

* simplify

* changes from colin feedback

* more edits from testing

* more fixes from Colin feedback

* clarify providers have different resource requirments

* kylecarbs feedback

* format

* explain concurrency

* move doc

* consolidate table

* fix broken links

Co-authored-by: Dean Sheather <dean@deansheather.com>
2023-01-19 07:12:39 -08:00
Mathias Fredriksson 1f3b7b658f
docs: Add documentation for releases and commit style (#5675) 2023-01-19 15:13:11 +02:00
Bruno Quaresma bd8437b679
refactor: Refactor tokens layout a bit (#5771) 2023-01-19 10:00:59 -03:00
Ben Potter a040bcc0cf
docs: clarify access URL in install flow (#5626)
* fix: TLS disabled copy

* clarify default access URL

* add docs for coder address
2023-01-18 23:23:55 +00:00
Dean Sheather 0374af23b2
fix(security)!: path-based app sharing changes (#5772)
This commit disables path-based app sharing by default. It is possible
for a workspace app on a path (not a subdomain) to make API requests to
the Coder API. When accessing your own workspace, this is not much of a
problem. When accessing a shared workspace app, the workspace owner
could include malicious javascript in the page that makes requests to
the Coder API on behalf of the visitor.

This vulnerability does not affect subdomain apps.

- Disables path-based app sharing by default. Previous behavior can be
  restored using the `--dangerous-allow-path-app-sharing` flag which is
  not recommended.

- Disables users with the site "owner" role from accessing path-based
  apps from workspaces they do not own. Previous behavior can be
  restored using the `--dangerous-allow-path-app-site-owner-access` flag
  which is not recommended.

- Adds a flag `--disable-path-apps` which can be used by
  security-conscious admins to disable all path-based apps across the
  entire deployment. This check is enforced at app-access time, not at
  template-ingest time.
2023-01-18 22:56:14 +00:00
Colin Adler b42e2ae81f
feat(examples): add labels and antiAffinity to k8s example (#5774) 2023-01-18 22:53:54 +00:00
Colin Adler 45eb26d5d0
fix(scaletest): increase time range check causing flake on MacOS (#5776) 2023-01-18 22:41:14 +00:00
Kyle Carberry 41145a6842
fix: improve error handling when posting workspace agent version (#5775)
A customer ran into an unfortunate error here that we miss!
2023-01-18 22:03:11 +00:00