mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: backend support for creating and storing service accounts (#22698)
Add is_service_account column to users table with CHECK constraints enforcing login_type='none' and empty email for service accounts. Update user creation API to validate service account constraints. Related to: https://linear.app/codercom/issue/PLAT-27/feat-backend-support-for-creating-and-storing-service-accounts
This commit is contained in:
@@ -160,6 +160,7 @@ var auditableResourcesTypes = map[any]map[string]Action{
|
||||
"hashed_one_time_passcode": ActionIgnore,
|
||||
"one_time_passcode_expires_at": ActionTrack,
|
||||
"is_system": ActionTrack, // Should never change, but track it anyway.
|
||||
"is_service_account": ActionTrack, // Should never change, but track it anyway.
|
||||
},
|
||||
&database.WorkspaceTable{}: {
|
||||
"id": ActionTrack,
|
||||
|
||||
Reference in New Issue
Block a user