You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rename: machine accounts → service accounts in config (#586)
## Summary
- Renames all Role objects from `iam-machine-accounts-*` /
`identity-machine-account-keys-*` to `iam-service-accounts-*` /
`identity-service-account-keys-*`
- Updates permissions in roles from `machineaccounts.*` /
`machineaccountkeys.*` to `serviceaccounts.*` / `serviceaccountkeys.*`
- Updates `iam-editor` and `iam-viewer` aggregate roles to reference
`serviceaccounts` permissions
- Renames ProtectedResource objects (`iam.miloapis.com-machineaccount` →
`iam.miloapis.com-serviceaccount`, etc.)
- Renames resource-metrics config files and updates metric name prefixes
(`milo_machine_accounts` → `milo_service_accounts`)
- Updates audit policy configmap to audit `serviceaccountkeys` instead
of `machineaccountkeys`
- Updates activity policy for the renamed `ServiceAccount` resource kind
- Updates apiserver deployment flag names to
`--serviceaccountkeys-provider-*`
Without this PR, users get a 403 when trying to list/create service
accounts because the RBAC permission
`iam.miloapis.com/serviceaccounts.list` doesn't exist yet — only
`machineaccounts.list` was defined.
## Test plan
- [ ] Verify users with `iam-viewer` or `iam-editor` role can list
service accounts after milo picks up these config changes
- [ ] Verify service account keys can be created/listed/deleted
- [ ] Confirm old `iam-machine-accounts-*` roles are deleted from the
cluster (or coexist during transition)
Copy file name to clipboardExpand all lines: docs/api/identity.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Package v1alpha1 contains API types for identity-related resources.
12
12
13
13
-[UserIdentity](#useridentity)
14
14
-[Session](#session)
15
-
-[MachineAccountKey](#machineaccountkey)
15
+
-[ServiceAccountKey](#serviceaccountkey)
16
16
17
17
---
18
18
@@ -77,33 +77,33 @@ This resource provides information about user authentication sessions, including
77
77
78
78
---
79
79
80
-
### MachineAccountKey
80
+
### ServiceAccountKey
81
81
82
-
MachineAccountKey represents a credential for a MachineAccount.
82
+
ServiceAccountKey represents a credential for a ServiceAccount.
83
83
84
-
This resource allows users to manage API keys for machine-to-machine authentication. When a MachineAccountKey is created, the system generates a private key that is returned in the status only once.
84
+
This resource allows users to manage API keys for machine-to-machine authentication. When a ServiceAccountKey is created, the system generates a private key that is returned in the status only once.
85
85
86
86
**Use cases:**
87
87
88
88
- Authenticating external services and automation scripts
89
89
- Managing key rotation and expiration
90
-
- Auditing machine account activity
90
+
- Auditing service account activity
91
91
92
92
**Important notes:**
93
93
94
94
- The `privateKey` is ONLY available in the creation response and is NEVER persisted in the Milo API server.
95
95
- Keys can have an optional expiration date.
96
-
- Each key is associated with a specific `MachineAccount` identified by its email.
96
+
- Each key is associated with a specific `ServiceAccount` identified by its email.
97
97
98
-
#### MachineAccountKeySpec
98
+
#### ServiceAccountKeySpec
99
99
100
100
| Field | Type | Description |
101
101
| :--- | :--- | :--- |
102
-
|`machineAccountUserName`| string | The email address of the MachineAccount that owns this key. |
102
+
|`serviceAccountUserName`| string | The email address of the ServiceAccount that owns this key. |
103
103
|`expirationDate`| metav1.Time | Optional date and time when the key will expire. |
104
104
|`publicKey`| string | Optional public key to be registered. If not provided, one will be auto-generated. |
0 commit comments