chore: Service Account Naming Consistency (#11557)

# Which Problems Are Solved

Inconsistent naming of service account, found in the following
variations:

  - Machine User
  - machine user
  - Service User
  - Machine Account
  - Technical Account
  - User: Type Machine

# How the Problems Are Solved

Attentive search and replace.

Localizations have been translated using Copilot

# Additional Changes

Some unused methods have been removed from the Go code.

# Additional Context

- Closes #11285
This commit is contained in:
Marco A.
2026-02-13 12:31:43 +01:00
committed by GitHub
parent 9f3d7e7bc3
commit 382aec2d61
136 changed files with 493 additions and 507 deletions
+6 -6
View File
@@ -234,8 +234,8 @@ type humanColumns interface {
//go:generate mockgen -typed -package domainmock -destination ./mock/machine_user.mock.go . MachineUserRepository
type MachineUserRepository interface {
// Update updates the machine user
// It ensures that updates are only applied to machine users
// Update updates the service account
// It ensures that updates are only applied to service accounts
Update(ctx context.Context, client database.QueryExecutor, condition database.Condition, changes ...database.Change) (int64, error)
machineConditions
machineChanges
@@ -258,14 +258,14 @@ type machineChanges interface {
// SetAccessTokenType sets the personal access token type field
SetAccessTokenType(tokenType PersonalAccessTokenType) database.Change
// AddKey adds a key for the machine user
// AddKey adds a key for the service account
AddKey(key *MachineKey) database.Change
// RemoveKey removes a key for the machine user
// RemoveKey removes a key for the service account
RemoveKey(id string) database.Change
// AddPersonalAccessToken adds a personal access token for the machine user
// AddPersonalAccessToken adds a personal access token for the service account
AddPersonalAccessToken(pat *PersonalAccessToken) database.Change
// RemovePersonalAccessToken removes a personal access token for the machine user
// RemovePersonalAccessToken removes a personal access token for the service account
RemovePersonalAccessToken(id string) database.Change
}