Skip to content

refactor(iam,identity): rename MachineAccount to ServiceAccount#583

Merged
kevwilliams merged 1 commit intomainfrom
feat/rename-machineaccount-to-serviceaccount
Apr 28, 2026
Merged

refactor(iam,identity): rename MachineAccount to ServiceAccount#583
kevwilliams merged 1 commit intomainfrom
feat/rename-machineaccount-to-serviceaccount

Conversation

@kevwilliams
Copy link
Copy Markdown
Contributor

Summary

  • Renames MachineAccountServiceAccount and MachineAccountKeyServiceAccountKey throughout all Go types, packages, CLI flags, REST storage keys, kubebuilder markers, and YAML config
  • Moves package internal/apiserver/identity/machineaccountkeys/serviceaccountkeys/; REST HTTP path segment /machineaccountkeys/serviceaccountkeys (breaking API change)
  • Renames feature gate MachineAccountKeysServiceAccountKeys and server flags --machineaccountkeys-provider-*--serviceaccountkeys-provider-*
  • Updates CRD, roles, protected-resources, resources-metrics, samples, deployment, and audit-policy YAMLs
  • Regenerates zz_generated.deepcopy.go (×2) and zz_generated.openapi.go

This is a pre-GA breaking rename aligning with industry-standard terminology (Kubernetes, GCP, AWS) for non-human machine identities.

Out of scope (follow-on PRs needed)

  • graphql-gateway — queries the /machineaccountkeys API path directly
  • Prometheus dashboards/alerts referencing milo_machine_account* metric names
  • Operator overlays using old --machineaccountkeys-provider-* flag names

Test plan

  • grep -r "MachineAccount\|machineAccount\|machine_account\|machine-account" --include="*.go" --include="*.yaml" --include="*.yml" | grep -v zz_generated | grep -v _test.go returns zero results
  • go build ./... passes
  • task generate:code && task generate:openapi:identity produces no diff (already regenerated in this PR)

@joggrbot
Copy link
Copy Markdown
Contributor

joggrbot Bot commented Apr 28, 2026

📝 Documentation Analysis

All docs are up to date! 🎉


✅ Latest commit analyzed: 8892eb8 | Powered by Joggr

Renames all MachineAccount and MachineAccountKey types, packages, CLI
flags, REST storage keys, YAML resources, and kubebuilder markers to
ServiceAccount and ServiceAccountKey throughout milo.

This is a pre-GA breaking API rename aligning with industry-standard
terminology (Kubernetes, GCP, AWS) for non-human machine identities.

Key changes:
- Go types: MachineAccount → ServiceAccount, MachineAccountKey → ServiceAccountKey
- Package: internal/apiserver/identity/machineaccountkeys/ → serviceaccountkeys/
- REST path segment: /machineaccountkeys → /serviceaccountkeys
- Feature gate: MachineAccountKeys → ServiceAccountKeys
- CLI flags: --machineaccountkeys-provider-* → --serviceaccountkeys-provider-*
- CRD, roles, protected-resources, resources-metrics, samples YAMLs all renamed
- PolicyBinding Subject enum: MachineAccount → ServiceAccount
- Regenerated zz_generated.deepcopy.go (×2) and zz_generated.openapi.go
@kevwilliams kevwilliams force-pushed the feat/rename-machineaccount-to-serviceaccount branch from a3e3dbd to 8892eb8 Compare April 28, 2026 19:48
@scotwells
Copy link
Copy Markdown
Contributor

@kevwilliams you'll need to adjust the zitadel provider as well.

@kevwilliams kevwilliams merged commit ead128a into main Apr 28, 2026
10 of 11 checks passed
@kevwilliams kevwilliams deleted the feat/rename-machineaccount-to-serviceaccount branch April 28, 2026 20:38
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.

2 participants