-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⭐️ integrate preflight check: role assignments (#1494)
This change adds a minimalistic preflight check where we verify that the user has the right role assignments to onboard an Azure environment. We need one of "Privileged Role Administrator" or "Global Administrator" => https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/permissions-reference#privileged-role-administrator Note that we run Azure CLI commands directly so that `cnspec` doesn't have to import the entire Azure SDK which will make the binary much bigger, which today is unnecessary for the amount of checks we are running. Signed-off-by: Salim Afiune Maya <[email protected]>
- Loading branch information
Showing
2 changed files
with
104 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters