Map ITAM actions to v1:itam OAuth2 scopes

ITAM GraphQL actions were never registered in the shared OAuth2
scope registry, so bearer-token callers failed closed even when
role policies allowed them. Add v1:itam / v1:itam:read mappings,
register them in probod, and sync the CLI client scopes.

Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
Ludovic Vielle
2026-07-30 11:13:28 +02:00
parent 7731566c68
commit 7bce67454c
5 changed files with 113 additions and 2 deletions

View File

@@ -516,7 +516,8 @@ func (impl *Implm) Run(
Register(management.OAuth2ScopeMappings).
Register(agentrun.OAuth2ScopeMappings).
Register(accessreview.OAuth2ScopeMappings).
Register(resourcealias.OAuth2ScopeMappings)
Register(resourcealias.OAuth2ScopeMappings).
Register(itam.OAuth2ScopeMappings)
var accountKey crypto.Signer
if impl.cfg.CustomDomains.ACME.AccountKey != "" {