576e1f48fe
feat!: allow disabling notifications ( #15509 )
...
Resolves https://github.com/coder/coder/issues/15513
Disables notifications when both `$CODER_NOTIFICATIONS_WEBHOOK_ENDPOINT` and `$CODER_EMAIL_SMARTHOST` are unset.
Breaking change: `$CODER_EMAIL_SMARTHOST` is no longer set by default as `localhost:587`, meaning any deployments that make use of this default value will need to add it back.
---------
Co-authored-by: Danny Kopping <danny@coder.com >
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
2024-11-19 15:05:12 +00:00
Steven Masley
c3c23ed3d9
chore: add query to fetch top level idp claim fields ( #15525 )
...
Adds an api endpoint to grab all available sync field options for IDP
sync. This is for autocomplete on idp sync forms. This is required for
organization admins to have some insight into the claim fields available
when configuring group/role sync.
2024-11-18 14:31:39 -06:00
Sas Swart
814dd6f854
feat(coderd): update API to allow filtering provisioner daemons by tags ( #15448 )
...
This PR provides new parameters to an endpoint that will be necessary
for #15048
2024-11-15 11:33:22 +02:00
Aaron Lehmann
f1cb3a5b11
fix: correct example for /extend endpoint in the documentation ( #15521 )
...
The example in the docs wrongly shows a POST to this endpoint.
Signed-off-by: Aaron Lehmann <alehmann@netflix.com >
2024-11-14 12:13:27 -05:00
Steven Masley
99dd13d4cd
chore: add cli command to update organization sync settings ( #15459 )
2024-11-13 13:44:21 -06:00
Stephen Kirby
75b299071c
docs: update version flags ( #15501 )
2024-11-13 13:40:06 -06:00
Cian Johnston
55dccae5a3
chore(docs): document how to correctly override list(string) parameters ( #15497 )
...
- Adds documentation for how to correctly hold --parameter with list(string)
- Adds tests for the aforementioned documented correct finger positions for --parameter list(string)
2024-11-13 15:41:36 +00:00
Muhammad Atif Ali and Edward Angert
6ff302b740
docs: add Docker to provider authentication docs ( #15494 )
...
Co-authored-by: Edward Angert <EdwardAngert@users.noreply.github.com >
2024-11-13 15:40:41 +00:00
Ethan
fa69d1ca74
ci: reenable link checker & fix broken links ( #15489 )
...
Follow-up on #15484 .
2024-11-13 16:04:10 +11:00
Edward Angert and EdwardAngert
56e219b50d
docs: update template-from-scratch ( #15101 )
...
closes https://github.com/coder/internal/issues/104
- [x] update screenshots
- [x] consistent md
- [x] confirm and update `Dockerfile` and `main.tf`
- matched up to the Docker Containers starter template
- upload template
- [x] confirm CLI steps
- [x] add steps in tab for Dashboard
- [x] ~confirm that the expand works~ it doesn't
<https://coder.com/docs/@template-from-scratch-update/tutorials/template-from-scratch >
---------
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-11-12 14:01:51 -05:00
Edward Angert and EdwardAngert
eff07a2db0
docs: clarify admin email telemetry ( #15485 )
...
add a note to the telemtery doc that explains that we do collect the
admin email
https://coder.com/docs/@telemetry-clarification/admin/setup/telemetry#what-we-collect
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-11-12 11:24:13 -05:00
Mathias Fredriksson
78b4967571
docs: fix mention of incorrect env var to enable/disable telemetry ( #15467 )
2024-11-11 11:12:39 +00:00
Edward Angert and EdwardAngert
50e95ba676
docs: adjust manual github action screenshot in contributing.md ( #15439 )
...
resolves #15407
adjust manual github action screenshot in contributing.md
[preview](https://coder.com/docs/@15407-contrib-image/CONTRIBUTING#deploying-a-pr )
(once ready)
---------
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-11-08 13:15:57 -05:00
Danny Kopping and EdwardAngert
111029ec07
chore: clarify template provisioning speed doc ( #15383 )
...
I noticed a few inaccuracies in this doc, or aspects which could've been
explained a little more. In other cases, I've added some specificity in
service of clarity.
---------
Signed-off-by: Danny Kopping <danny@coder.com >
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-11-08 16:06:20 +00:00
Steven Masley
782214bcd8
chore: move organizatinon sync to runtime configuration ( #15431 )
...
Moves the configuration from environment to database backed, to allow
configuring organization sync at runtime.
2024-11-08 08:44:14 -06:00
Edward Angert and EdwardAngert
f7694568eb
docs: add workplace scheduling to manifest ( #15384 )
...
- [ ] check links to
<https://coder.com/docs/@workspace-scheduling/admin/templates/managing-templates/schedule#dormancy-threshold-enterprise-premium >
- @mattvollmer reports that
<https://coder.com/docs/templates/managing-templates/schedule#dormancy-threshold-enterprise >
is missing. I'll try to find refs to it
[preview](https://coder.com/docs/@workspace-scheduling/admin/templates/managing-templates/schedule )
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-11-08 00:54:52 -05:00
Edward Angert and EdwardAngert
e688ff723b
docs: add deploy id to license doc ( #15415 )
...
resolves #15414
adds a section to licensing doc to show where to find the deployment ID
[preview](https://coder.com/docs/@15414-deploy-id/admin/licensing#find-your-deployment-id )
---------
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-11-07 21:54:11 -08:00
Cian Johnston and Ben Potter
9f05b192b4
chore(docs): fix inconsistencies in external provisioner docs ( #15416 )
...
This PR:
- Updates the table in `docs/admin/provisioners.md` to include highlight
multi-org changes
- Updates the instructions for the provisionerd helm chart when using
provisioner keys
---------
Co-authored-by: Ben Potter <ben@coder.com >
2024-11-07 13:28:53 +00:00
Ethan
6e18742ad3
ci: replace unmaintained markdown link checker ( #15424 )
...
The old one was flaking a bunch and blocking PRs. This is the one
recommended by the maintainer of the old.
2024-11-07 22:30:43 +11:00
Stephen Kirby
1532ea7d2d
docs: bump versions in docs for 2.17 ( #15387 )
2024-11-05 12:53:34 -06:00
Edward Angert and EdwardAngert
62fa7e5ab8
docs: disable markdown link check on mailto links ( #15382 )
...
to satisfy CI
---------
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-11-05 12:35:46 -05:00
Vincent Vielle and BrunoQuaresma
4fe2c5f09a
fix: improve password validation flow ( #15132 )
...
Refers to #14984
Currently, password validation is done backend side and is not explicit
enough so it can be painful to create first users.
We'd like to make this validation easier - but also duplicate it
frontend side to make it smoother.
Flows involved :
- First user set password
- New user set password
- Change password
---------
Co-authored-by: BrunoQuaresma <bruno_nonato_quaresma@hotmail.com >
2024-11-05 17:22:32 +01:00
Benjamin Peinhardt
040e5cf9f3
docs: provide example regexes to properly escape . characters ( #14983 )
2024-11-03 10:01:06 -06:00
Edward Angert and EdwardAngert
1f93b80e09
chore: fix docs/admin links and upgrade notice ( #15043 )
...
- Update links to /docs/admin to match the new structure
- TODO: remove the release string from the "upgrade available"
instructions link
- [x]
https://github.com/coder/coder/blob/update-upgrade-config-links/cli/server.go#L646

---------
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-11-01 19:43:51 +00:00
Stephen Kirby
399c830b51
chore(docs): add info on new build timings in docs ( #15310 )
...
Adds information on workspace build timings in workspace lifecycle and
template troubleshooting docs.
2024-11-01 12:17:50 -05:00
Bruno Quaresma and Danny Kopping
e232aee011
feat(site): add agent connection timings ( #15276 )
...
Local preview:
<img width="1260" alt="Screenshot 2024-10-29 at 16 16 01"
src="https://github.com/user-attachments/assets/10fdb20d-1f2a-4b0a-a8a1-171050ee620d ">
Close https://github.com/coder/internal/issues/116
---------
Co-authored-by: Danny Kopping <danny@coder.com >
2024-11-01 13:29:00 -03:00
18ef954a03
docs: add new best practice doc to speed up templates and workspaces ( #15296 )
...
closes https://github.com/coder/coder/issues/14858
- [x] TODO: update `build-timeline.png`
- [x] TODO: `Best practices` doesn't show up in the sidebar until you're
actually in the doc 🤔
[preview](https://coder.com/docs/@bp-speed-up-templates/tutorials/best-practices/speed-up-templates )
---------
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
Co-authored-by: Muhammad Atif Ali <atif@coder.com >
Co-authored-by: Ben Potter <ben@coder.com >
2024-11-01 11:24:35 -05:00
Ethan
b1298a3c1e
feat: add WorkspaceUpdates tailnet RPC ( #14847 )
...
Closes #14716
Closes #14717
Adds a new user-scoped tailnet API endpoint (`api/v2/tailnet`) with a new RPC stream for receiving updates on workspaces owned by a specific user, as defined in #14716 .
When a stream is started, the `WorkspaceUpdatesProvider` will begin listening on the user-scoped pubsub events implemented in #14964 . When a relevant event type is seen (such as a workspace state transition), the provider will query the DB for all the workspaces (and agents) owned by the user. This gets compared against the result of the previous query to produce a set of workspace updates.
Workspace updates can be requested for any user ID, however only workspaces the authorised user is permitted to `ActionRead` will have their updates streamed.
Opening a tunnel to an agent requires that the user can perform `ActionSSH` against the workspace containing it.
2024-11-01 14:53:53 +11:00
Colin Adler
088f21965b
feat: add audit logs for dormancy events ( #15298 )
2024-10-31 17:55:42 -05:00
Danielle Maywood
330acd1270
chore: create ResourceNotificationMessage and AsNotifier ( #15301 )
...
Closes https://github.com/coder/coder/issues/15213
This PR enables sending notifications without requiring the auth system
context, instead using a new auth notifier context.
2024-10-31 17:01:51 +00:00
Stephen Kirby
e9fbfcc45b
chore(docs): include custom roles examples and mention of password reset ( #15294 )
...
Added example custom roles for admin inspiration, mention of headless
authentication use case, and user-activated password reset.
2024-10-30 11:41:52 -05:00
Danielle Maywood
823a2ea22e
chore(cli): drop 'notification' prefix for configuring email auth ( #15270 )
...
Closes https://github.com/coder/coder/issues/14644
2024-10-30 10:06:10 +00:00
Stephen Kirby
25738388d5
chore(docs): add documentation on custom roles ( #15280 )
...
These docs were overwritten in the restructure merge.
2024-10-29 20:58:26 -05:00
Danielle Maywood
4e20eea9e6
chore: remove unused 'must_reset_password' column ( #15265 )
...
Closes https://github.com/coder/internal/issues/153
Remove the 'must_reset_password' as it was introduced for use in the
"forgot password?" flow but never used.
2024-10-29 09:57:40 +00:00
Stephen Kirby
971388762c
chore(docs): change mentions of enterprise to premium ( #15258 )
...
Matches our latest licensing verbiage.
2024-10-28 15:56:51 -05:00
Colin Adler
074faec7d7
chore: update Terraform to 1.9.8 ( #15256 )
2024-10-28 15:24:57 -05:00
Ethan
03940f5fef
chore: ensure make gen runs on CI when docs are updated ( #15252 )
...
https://github.com/coder/coder/pull/15203 was merged with a failing
`make gen`, as it only updated the docs. This makes it so this can't
happen again.
The capitalization of the Go type used in the auto-generated docs
(`codersdk.OAuth2GithubConfig`) wasn't updated as it would technically
be a breaking change for the sdk.
2024-10-28 15:22:37 +00:00
Edward Angert and EdwardAngert
007f0a35a4
fix: adjust instances of Github to GitHub ( #15203 )
...
s/Github/GitHub
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-10-28 07:43:30 -04:00
Steven Masley
e03ef62a13
chore: add scim service provider config endpoint ( #15235 )
...
Adds a static `/scim/v2/ServiceProviderConfig` endpoint. Our scim
support is static, so the response config is also defined statically.
2024-10-25 18:27:34 -04:00
Colin Adler
27f5ff2dd1
chore: correctly document SCIM authentication ( #15234 )
2024-10-25 12:40:13 -05:00
Jon Ayers
cd890aa3a0
feat: enable key rotation ( #15066 )
...
This PR contains the remaining logic necessary to hook up key rotation
to the product.
2024-10-25 17:14:35 +01:00
Steven Masley
ccfffc6911
chore: add tx metrics and logs for serialization errors ( #15215 )
...
Before db_metrics were all or nothing. Now `InTx` metrics are always recorded, and query metrics are opt in.
Adds instrumentation & logging around serialization failures in the database.
2024-10-25 12:14:15 -04:00
Edward Angert and EdwardAngert
0fba291ffe
docs: add date to Quickstart guide ( #15199 )
...
and try to trick the CI into passing + building the page 😬
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-10-23 12:56:17 -05:00
ed5da65a54
chore(docs): add Quickstart doc to tutorials ( #14744 )
...
New doc to get users up and running quickly
preview: https://coder.com/docs/@quickstart-guide/tutorials/quickstart
## To Do
- [x] update or remove Codium steps
- [x] add to sidebar
- [x] add to README and others as needed
- [x] reference https://github.com/coder/coder/pull/11946 and the
discussion to influence this PR
closes https://github.com/coder/internal/issues/107
---------
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
Co-authored-by: Muhammad Atif Ali <atif@coder.com >
2024-10-23 11:31:29 -04:00
Edward Angert and EdwardAngert
d7baa49d6d
docs: add primary to wsproxy ls ( #15185 )
...
Add primary to `coder wsproxy ls` results in
<https://coder.com/docs/admin/networking/workspace-proxies#step-2-deploy-the-proxy >
---------
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-10-23 11:15:55 -04:00
Edward Angert and EdwardAngert
20a9e9bdfb
chore(docs): remove workspace proxy map ( #15070 )
...
remove workspace proxy map
- replace later with another image or diagram
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
2024-10-23 11:15:32 -04:00
Cian Johnston and Edward Angert
84f0cf215f
chore(docs): update external provisioners helm docs ( #15155 )
...
Closes https://github.com/coder/coder/issues/14985
Updates external provisioner documentation to show steps for using
provisioner keys via Helm:
---------
Co-authored-by: Edward Angert <EdwardAngert@users.noreply.github.com >
2024-10-23 09:25:53 +01:00
Steven Masley
343f8ec9ab
chore: join owner, template, and org in new workspace view ( #15116 )
...
Joins in fields like `username`, `avatar_url`, `organization_name`,
`template_name` to `workspaces` via a **view**.
The view must be maintained moving forward, but this prevents needing to
add RBAC permissions to fetch related workspace fields.
2024-10-22 09:20:54 -05:00
Danielle Maywood
5076161078
fix: show audit logs for forgot password flow ( #15181 )
...
Fixes https://github.com/coder/coder/issues/15150
Audit logs for requesting a password reset, and a user updating their
password, now show up in the audit log.
2024-10-22 13:47:30 +01:00
Joobi S B and Muhammad Atif Ali
5ebc748e94
feat: allow promoting an existing template version to active from CLI ( #15051 )
...
Co-authored-by: Muhammad Atif Ali <atif@coder.com >
2024-10-17 14:15:14 +05:00