Skip to main content
Version: 0.4.0

KQ109 — a grant has a call behind it

Lint · over-grant · Workload identity

A client is granted a role only on an API it calls.

A client is granted a role on an API that nothing it is the identity of calls. Remove the grant, or model the call it is for. A role the cloud defines on a resource, such as a deployment right, is never reported.

Examples​

A client granted read on the accounts API, which it never calls, raises KQ109:

platform banking { component cards "Cards" : backend { workload cards-id "Cards" : client in iam/entra { credential managed grant accounts/accounts-id/read } } }

With the call the grant is for, it raises nothing:

platform banking { component cards "Cards" : backend { workload cards-id "Cards" : client in iam/entra { credential managed } } cards -> accounts/accounts-api over http auth workload-identity via iam/entra grant read }

© 2026 Extenza Works. All rights reserved.