Skip to content

rename: machine accounts → service accounts in config#586

Merged
kevwilliams merged 7 commits intomainfrom
rename/machine-account-to-service-account-roles
Apr 29, 2026
Merged

rename: machine accounts → service accounts in config#586
kevwilliams merged 7 commits intomainfrom
rename/machine-account-to-service-account-roles

Conversation

@kevwilliams
Copy link
Copy Markdown
Contributor

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-machineaccountiam.miloapis.com-serviceaccount, etc.)
  • Renames resource-metrics config files and updates metric name prefixes (milo_machine_accountsmilo_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)

Renames all role, protected resource, resource metrics, audit policy,
and activity policy config files from machineaccount/machineaccountkeys
to serviceaccount/serviceaccountkeys to match the IAM API rename.

Also updates the apiserver deployment flag names from
--machineaccountkeys-provider-* to --serviceaccountkeys-provider-*.
@joggrbot
Copy link
Copy Markdown
Contributor

joggrbot Bot commented Apr 29, 2026

📝 Documentation Analysis

All docs are up to date! 🎉


✅ Latest commit analyzed: fec88c1 | Powered by Joggr

zachsmith1
zachsmith1 previously approved these changes Apr 29, 2026
## ✨ Autofixed 1 outdated doc(s)

This pull was automatically generated by Joggr to fix 1 outdated doc(s)
due to code changes in pull #586

### Fixed docs

The following docs were fixed:

- `docs/api/iam.md`: The MachineAccount resource has been renamed to
ServiceAccount at the API, manifest, and RBAC levels. The documentation
is updated to consistently reference 'ServiceAccount' throughout,
guaranteeing that users reference the correct resource going forward.

### How to fix

To fix the docs, you can either:

1. Merge this pull request into your pull request to fix the docs
2. Wait for your pull request to be merged and then merge this pull
request into your base branch

---

Powered by
[Joggr](https://joggr.ai?utm_source=gh&utm_medium=gh&utm_campaign=ghapr&utm_id=ghapr)
- The documentation assistant for your codebase.
@cla-assistant
Copy link
Copy Markdown

cla-assistant Bot commented Apr 29, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ kevwilliams
❌ joggrbot[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@kevwilliams kevwilliams merged commit 0edf61c into main Apr 29, 2026
8 of 9 checks passed
@kevwilliams kevwilliams deleted the rename/machine-account-to-service-account-roles branch April 29, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants