Relocate agent-run authorization to its package
The agent-run actions and policies lived in the core probo policy set, which forced every authorization change for the agent-run domain to touch unrelated core files. Move the actions and the OWNER/ADMIN and VIEWER/AUDITOR policies into the agentrun package and have it expose a PolicySet that probod registers into the authorizer at composition time, so the rules live alongside the domain logic they govern. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -595,6 +595,7 @@ func (impl *Implm) Run(
|
||||
)
|
||||
|
||||
agentRunService := agentrun.NewService(pgClient)
|
||||
iamService.Authorizer.RegisterPolicySet(agentrun.PolicySet())
|
||||
|
||||
thirdPartyService := thirdparty.NewService(pgClient, fileService, thirdPartyVetter)
|
||||
riskManagementService := riskmanagement.NewService(pgClient)
|
||||
|
||||
Reference in New Issue
Block a user