Permission map with one entry per module ACL
ameihm0912 opened this issue · 0 comments
ameihm0912 commented
The ACL type is defined as a list of Permissions:
Lines 14 to 22 in d1f33f2
In a permission, the key is the module name, and the value of the entry is the ACL configuration for that particular module.
In the ACL verification code, the function walks over the list of permissions, assuming they have been defined as a map with one key, where the key is the module name.
Lines 387 to 391 in d1f33f2
Should this be defined simply as a map, since we should only have one ACL entry for each module anyway? In the example agent configuration, permissions are a slice of maps where each map only has one key.