Skip to content

Commit 2a1154f

Browse files
Move composite grants into service-accounts
The Auth service now treats Auth dumps as authoritative; all other grants to the given principals are removed. So we must make all grants to a given principal in the same place.
1 parent d286451 commit 2a1154f

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

acs-service-setup/dumps/composite.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,3 @@ objects:
6161
# Unimplemented
6262
#- !u ConfigDB.Perm.ReadMemberships
6363
#- !u ConfigDB.Perm.ReadSuperclasses
64-
65-
---
66-
service: !u UUIDs.Service.Authentication
67-
version: 2
68-
grants:
69-
# XXX These should be replaced with individual grants.
70-
!u ACS.ServiceAccount.CmdEsc:
71-
!u ACS.Perm.Composite.CmdEsc: null
72-
!u ACS.ServiceAccount.Warehouse:
73-
!u ACS.Perm.Composite.Warehouse: null

acs-service-setup/dumps/service-accounts.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,9 @@ grants:
120120
!u UUIDs.App.SparkplugAddress: false
121121
!u UUIDs.Permission.Auth.ReadACL:
122122
!u ACS.PermGroup.CmdEsc: true
123+
# XXX This should be replaced by a service role
124+
!u ACS.Perm.Composite.CmdEsc: null
125+
126+
!u ACS.ServiceAccount.Warehouse:
127+
# XXX This should be replaced by a service role
128+
!u ACS.Perm.Composite.Warehouse: null

0 commit comments

Comments
 (0)