128674918b
chore: include organization name when fetching templates ( #13751 )
...
* chore: include organization name when fetching templates
* chore: rename template_with_user to template_with_names
2024-07-02 09:08:30 -05:00
10c2817f4d
chore: swagger docs omit brower based credentials, rely on swagger auth ( #13742 )
...
* chore: swagger docs omit brower based credentials, rely on swagger auth
Swagger has an "Authorize" button which should be the only
authentication being used in the api requests
2024-07-01 13:44:35 -05:00
6c94dd4f23
chore: add DRPC server implementation for network telemetry ( #13675 )
2024-07-02 01:50:52 +10:00
6daf330d3a
chore: allow organization name or uuid for audit log searching ( #13721 )
...
* chore: allow organization name or uuid for audit log searching
2024-06-28 10:01:23 -05:00
3cc86cf62d
chore: implement sane default pagination limit for audit logs ( #13676 )
...
* chore: implement sane default pagination limit for audit logs
2024-06-28 07:38:04 -05:00
0a221e8d5b
feat: create database tables and queries for notifications ( #13536 )
2024-06-28 09:21:25 +00:00
c4f1676055
feat: expose workspace build ID to terraform-plugin-coder ( #13680 )
2024-06-27 10:07:30 +02:00
30c4b4db5c
chore: implement fetch all authorized templates api ( #13678 )
2024-06-26 11:50:32 -06:00
08e728bcb2
chore: implement organization scoped audit log requests ( #13663 )
...
* chore: add organization_id filter to audit logs
* chore: implement organization scoped audit log requests
2024-06-26 12:38:46 -05:00
8a3592582b
feat: add "Full Name" field to user creation ( #13659 )
...
Adds the ability to specify "Full Name" (a.k.a. Name) when
creating users either via CLI or UI.
2024-06-26 09:00:42 +01:00
87ad560aff
feat: add groups and group members to telemetry snapshot ( #13655 )
...
* feat: Added in groups and groups members to telemetry snapshot
* feat: adding in test to dbauthz for getting group members and groups
2024-06-25 11:01:40 -07:00
fed668b432
chore: switch ssh session stats based on experiment ( #13637 )
2024-06-25 10:58:45 -04:00
d7eadee4d7
chore: insert audit log entries for organization CRUD ( #13660 )
...
* chore: insert audit log entries for organization CRUD
2024-06-25 09:03:15 -05:00
65b9f9bfd6
chore: audit organization member add/delete/edit ( #13620 )
...
* chore: audit organization member add/removals
2024-06-24 14:19:32 -05:00
34c67e8428
test: add unit test helper to create templates in second organizations ( #13628 )
...
* chore: add coderdtest helpers
2024-06-24 12:55:57 -05:00
54e8f30002
chore: remove failing_sections
from healthcheck ( #13426 )
...
Closes #10854 .
2024-06-21 14:49:02 -04:00
5177f366f5
fix: organization 404 write 1 http status ( #13629 )
2024-06-21 13:01:46 -05:00
0e933f0537
chore: refactor user -> rbac.subject into a function ( #13624 )
...
* chore: refactor user subject logic to be in 1 place
* test: implement test to assert deleted custom roles are omitted
* add unit test for deleted role
2024-06-21 11:30:02 -05:00
819bfd3170
fix: remove assigning org-member role, this is implied from membership ( #13578 )
2024-06-21 08:01:39 -05:00
2ef2f97388
chore: improve error message on adding existing org_member ( #13621 )
2024-06-20 18:05:11 -05:00
889daf200e
feat(enterprise): add auditing to SCIM ( #13614 )
2024-06-20 17:22:27 -05:00
43e45f4ab7
fix: fill out zero-value user properties in /audit ( #13604 )
2024-06-20 12:40:08 -08:00
57b38e5bb8
fix: allow coder.com in CSP if telemetry is enabled ( #13615 )
...
* fix: allow coder.com in CSP if telemetry is enabled
* Fix control couple lint
2024-06-20 16:05:22 -04:00
0793a4b35b
feat: add cross-origin reporting for telemetry in the dashboard ( #13612 )
...
* feat: add cross-origin reporting for telemetry in the dashboard
* Respect the telemetry flag
* Fix embedded metadata
* Fix compilation error
* Fix linting
2024-06-20 15:19:45 -04:00
a1db6d809e
chore: implement delete organization member ( #13589 )
...
Side effects of removing an organization member will orphan their
user resources. These side effects are not addressed here
2024-06-20 10:06:37 -05:00
8e06ad46d0
chore: add organization member api + cli ( #13577 )
2024-06-20 09:19:24 -05:00
e987ad1d89
fix: don't allow "new" or "create" as url-friendly names ( #13596 )
2024-06-18 15:36:13 -06:00
3a1fa04590
fix: write server config to telemetry ( #13590 )
...
* fix: add external auth configs to telemetry
* Refactor telemetry to send the entire config
* gen
* Fix linting
2024-06-18 16:20:21 -04:00
44d69139d5
chore: accept payload on workspace usage route ( #13544 )
2024-06-14 10:08:45 -04:00
fe240add86
fix(coderd): userOIDC: ignore leading @ of EmailDomain ( #13568 )
2024-06-14 09:29:07 +01:00
d04959cea8
chore: implement custom role assignment for organization admins ( #13570 )
...
* chore: static role assignment mapping
Until a dynamic approach is created in the database, only org-admins
can assign custom organization roles.
2024-06-13 15:59:06 -05:00
3d30c8dc68
chore: protect reserved builtin rolenames ( #13571 )
...
Conflicting built-in and database role names makes it hard to
disambiguate
2024-06-13 15:12:37 -05:00
0268c7a659
chore: refactor autobuild/notify to use clock test ( #13566 )
...
Refactor autobuild/notify and tests to use the clock testing library.
I also rewrote some of the comments because I didn't understand them when I was looking at the package.
2024-06-13 16:01:17 +04:00
fc09077b7b
feat!: add interface report to coder netcheck ( #13562 )
...
re: #13327
Adds local interfaces to `coder netcheck` and checks their MTUs for potential problems.
This is mostly relevant for end-user systems where VPNs are common. We _could_ also add it to coderd healthcheck, but until I see coderd connecting to workspaces over a VPN in the wild, I don't think its worth the UX effort.
Netcheck results get the following:
```
"interfaces": {
"error": null,
"severity": "ok",
"warnings": null,
"dismissed": false,
"interfaces": [
{
"name": "lo0",
"mtu": 16384,
"addresses": [
"127.0.0.1/8",
"::1/128",
"fe80::1/64"
]
},
{
"name": "en8",
"mtu": 1500,
"addresses": [
"192.168.50.217/24",
"fe80::c13:1a92:3fa5:dd7e/64"
]
}
]
}
```
_Technically_ not back compatible if anyone is parsing `coder netcheck` output as JSON, since the original output is now under `"derp"` in the output.
2024-06-13 10:19:36 +04:00
d0fc81a51c
chore: implement cli list organization members ( #13555 )
...
example cli command:
`coder organization members`
2024-06-12 10:07:12 -10:00
bbe23edc7d
chore: implement api layer for listing organization members ( #13546 )
2024-06-12 09:52:18 -10:00
de9e6889bb
chore: merge organization member db queries ( #13542 )
...
Merge members queries into 1 that also joins in the user table for username.
Required to list organization members on UI/cli
2024-06-12 09:23:48 -10:00
28228f1bcb
feat: allow editing org icon ( #13547 )
2024-06-12 12:28:13 -06:00
ba7d1835e5
fix: fix flake in TestWorkspaceAgent_Metadata_CatchMemoryLeak ( #13553 )
...
Fixes flake seen here: https://github.com/coder/coder/actions/runs/9461246505/job/26061605278
#13486 subtly changes the test so that `post` uses the new v2 Agent API, and when canceling context, there is a race condition where the yamux session underpinning the API can get torn down before the RPC processes the canceled context, yielding a different error response than the test was previously expecting.
I've refactored the test to just stop posting when the test finishes, rather than depend on a context cancel to end the posting goroutine.
2024-06-12 18:33:22 +04:00
5ccf5084e8
chore: create type for unique role names ( #13506 )
...
* chore: create type for unique role names
Using `string` was confusing when something should be combined with
org context, and when not to. Naming this new name, "RoleIdentifier"
2024-06-11 08:55:28 -05:00
c9cca9d56e
fix: transform underscores to hyphens for github login ( #13384 )
...
Fixes #13339 .
2024-06-11 13:34:05 +00:00
dd243686e4
chore!: remove deprecated agent v1 routes ( #13486 )
2024-06-11 12:22:59 +10:00
5b9a65e5c1
chore: move Batcher and Tracker to workspacestats ( #13418 )
2024-06-10 15:35:23 -04:00
8326a3a675
chore: change mock clock to allow Advance() within timer/tick functions ( #13500 )
2024-06-10 15:27:24 +04:00
0d65143301
chore: implement audit log for custom role edits ( #13494 )
...
* chore: implement audit log for custom role edits
2024-06-07 14:11:57 -05:00
48ecee1025
chore(cli): address cli netcheck test flake ( #13492 )
...
* netcheck: removes check for healthy node report in test
* coderd/healthcheck/derphealth: do not override parent context deadline
2024-06-07 10:01:54 +01:00
7c3b8b6224
chore: duplicate migration file fix, 000216 ( #13498 )
2024-06-06 16:13:00 -05:00
e2b330fcba
chore: change sql parameter for custom roles to be a (name,org_id)
tuple ( #13480 )
...
* chore: sql parameter to custom roles to be a (name,org) tuple
CustomRole lookup takes (name,org_id) tuples as the search criteria.
2024-06-06 15:36:37 -05:00
44a70a5bc2
feat: edit org display names and descriptions ( #13474 )
2024-06-06 10:59:59 -06:00
1131772e79
feat(coderd): set full name from IDP name claim ( #13468 )
...
* Updates OIDC and GitHub OAuth login to fetch set name from relevant claim fields
* Adds CODER_OIDC_NAME_FIELD as configurable source of user name claim
* Adds httpapi function to normalize a username such that it will pass validation
* Adds firstName / lastName fields to dev OIDC setup
2024-06-06 13:37:08 +01:00