Kyle Carberry
026b1cd2a4
chore: update to go 1.20 ( #5968 )
...
Co-authored-by: Colin Adler <colin1adler@gmail.com>
2023-02-02 12:36:27 -06:00
Kira Pilot
fa5b6125a9
fix: ensure fields show up for group resource in docs ( #5918 )
...
* fix: ensure fields show up for group resource in docs
* ran prettier
2023-01-30 10:54:58 -05:00
Kira Pilot
cf93fbd39a
chore: update Audit docs to include Audit Actions ( #5887 )
...
* chore: update Audit docs to include Audit Actions
* regenerated audit docs
* adjusted check_enterprise_imports.sh
* PR feedback
* changing script back for now as CI faiiling
2023-01-27 11:50:21 -05:00
Kira Pilot
3d58e6912a
chore: removing unaudited resources ( #5885 )
...
* chore: removing unaudited resources
* cleaned up tests
* CI errors
2023-01-26 18:14:09 -05:00
Kira Pilot
e2bea2d20f
chore: autogenerate audit log documentation ( #5862 )
...
* added script for table creation
* added tags to audit-logs.md
* removed log
* removed empty block line
* PR feedback
* modify check_unstaged
* third times the charm maybe
* spelling
* relative path
* excluding from the right script this time
* sorted resources to ensure table order
* running make cmd
* running make again
* ensuring order on subtable
2023-01-26 18:12:12 -05: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
Kira Pilot
6b68fbbf18
feat: Auditing group members as part of group resource ( #5730 )
...
* added AuditableGroup type
* added json tags
* Anonymizing gGroup struct
* adding support on the FE for nested group diffs
* added type for GroupMember
* Update coderd/database/modelmethods.go
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com>
* Update coderd/database/modelmethods.go
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com>
* fetching group members in group.delete
* passing through right error
* broke out into util function and added tests
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com>
2023-01-18 15:13:39 -05:00
Kira Pilot
f0eddbaab4
chore: Support anonymously embedded fields for audit diffs ( #5746 )
...
- Anonymously embedded structs are expanded as top level fields.
- Unit tests for anonymously embedded structs
Co-authored-by: Steven Masley <stevenmasley@coder.com>
2023-01-17 12:13:16 -06:00
Kira Pilot
6786ca2854
Audit build outcomes/kira pilot ( #5143 )
...
* auditing failed builds
* logging workspace build successes
* remove duplicate workspace build entry
* fixed workspacebuilds_test
* PR feedback
* lint and migrations
* fix nil auditors
* workspace_build test
* fixed workspaces_teest
Co-authored-by: Colin Adler <colin1adler@gmail.com>
2022-11-22 13:22:56 -05:00
Marcin Tojek
e86539db11
feat: Allow user to cancel workspace jobs ( #5115 )
...
* Add database column allow_user_cancel_workspace_jobs
* Adjust API
* site: typesGenerated.ts
* Expose template.allow_ in Workspaces API
* Fix: site tests
* Fix: make fmt/prettier
* Fix: enterprise
* Database tests
* Add CLI tests
* Add checkbox
* i18n
* Logic: block cancelling
* Unit tests for conditional cancel
* Fix: message
* Address PR comment
* Address PR comments
* Fix: make
2022-11-21 11:43:53 +01:00
Mathias Fredriksson
e872e18883
chore: Set initialism for DefaultTTL (from DefaultTtl) ( #4996 )
2022-11-14 20:14:08 +02:00
Ammar Bandukwala
97dbd4dc5d
Implement Quotas v3 ( #5012 )
...
* provisioner/terraform: add cost to resource_metadata
* provisionerd/runner: use Options struct
* Complete provisionerd implementation
* Add quota_allowance to groups
* Combine Quota and RBAC licenses
* Add Opts to InTx
2022-11-14 17:57:33 +00:00
Marcin Tojek
2042b575dc
feat: Add template display name (backend) ( #4966 )
...
* Rename to nameValidator
* Refactor: NameValid
* Fix: comment
* Define new migration
* Include display_name
* Update typesGenerated.ts
* Update meta
* Adjust tests
* CLI tests
* Fix: audit
* Fix: omitempty
* site: display_name is optional
* unit: TestUsernameValid
* entities.ts: add display_name
* site: TemplateSettingsPage.test.tsx
* Fix: TemplateSettingsForm.tsx
* Adjust tests
* Add comment to display_name column
* Fix: rename
* Fix: make
* Loosen regexp
* Fix: err check
* Fix: template name length
* Allow for whitespaces
* Update migration number
2022-11-10 21:51:09 +01:00
Garrett Delfosse
d277e28427
feat: change template max_ttl to default_ttl ( #4843 )
2022-11-09 19:36:25 +00:00
Kira Pilot
a73dd4f45d
Audit date filter/kira pilot ( #4845 )
...
* sql query
* added time_to
* added validation error
* documentation
* attempt to add test
* removed whiitespace
* fix: ensure date_from and date_to are applied correct audit logs
* added more tests
* ran make gen
* PR feedback
Co-authored-by: Dean Sheather <dean@deansheather.com>
2022-11-03 11:04:36 -04:00
Bruno Quaresma
46e0953876
refactor: Show template versions as timeline ( #4800 )
2022-10-31 16:38:07 +00:00
Kira Pilot
3c5e292c5a
feat: add workspace build start/stop to audit log ( #4744 )
...
* adding workspace_build resource
* added migration
* fix keyword
* got rid oof diffs for workspace builds
* adding workspace name to string
* renamed migrations
* fixed lint
* pass throough AdditionalFields and fix tests
* no need to pass through each handler
* cleaned up migrations
* generated types; fixed missing cases
* logging error
2022-10-25 15:34:48 -04:00
Kyle Carberry
7d04bf2abe
Revert "adding workspace_build resource ( #4636 )" ( #4742 )
...
This reverts commit 145faf4400
.
2022-10-25 08:41:00 -05:00
Kira Pilot
145faf4400
adding workspace_build resource ( #4636 )
...
* adding workspace_build resource
* added migration
* added migration for audit_actions
* fix keyword
* got rid oof diffs for workspace builds
* adding workspace name to string
* renamed migrations
* fixed lint
* pass throough AdditionalFields and fix tests
* no need to pass through each handler
* cleaned up migrations
2022-10-25 09:27:50 -04:00
Kira Pilot
940201313f
chore: remove org_id from audit diffs ( #4668 )
...
* chore: remove org_id from audit diffs
* PR feedback
* fix tests
2022-10-21 10:34:24 -04:00
Jon Ayers
0d1096da6c
feat: add auditing for groups ( #4527 )
...
- Clean up `database.TemplateACL` implementation.
2022-10-19 02:00:45 -05:00
Jon Ayers
3120c94c22
feat: add template RBAC/groups ( #4235 )
2022-10-10 15:37:06 -05:00
Ammar Bandukwala
ee4b934601
Add Users Last Seen At ( #4192 )
2022-09-26 15:31:03 +00:00
Kyle Carberry
850a83097c
feat: Allow deleting users ( #4028 )
...
* Add deleted column to the users table
* Fix user indexes
* Add frontend
* Add test
2022-09-12 23:24:20 +00:00
Colin Adler
3d6d51fbd0
feat: audit log api ( #3898 )
2022-09-07 16:38:19 +00:00
Kyle Carberry
05e2806ff3
feat: Add profile pictures to OAuth users ( #3855 )
...
This supports GitHub and OIDC login for profile pictures!
2022-09-04 11:44:27 -05:00
Colin Adler
55c13c8ff9
chore: fully implement enterprise audit pkg ( #3821 )
2022-09-02 16:42:28 +00:00
Ammar Bandukwala
04b03792cb
feat: add last used to Workspaces page ( #3816 )
2022-09-02 00:08:51 +00:00
Colin Adler
00da01fdf7
chore: rearrange audit logging code into enterprise folder ( #3741 )
2022-08-31 21:12:54 +00:00