Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the minimum access Crossplane needs for AKS creation? #381

Open
danilodorgam opened this issue May 10, 2024 · 0 comments
Open

What is the minimum access Crossplane needs for AKS creation? #381

danilodorgam opened this issue May 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@danilodorgam
Copy link

What happened?

What is the minimum access Crossplane needs for AKS creation?

Currently, I'm using these permissions, but I don't feel comfortable granting Directory.ReadWrite.All and Application.ReadWrite.All.

Is there something more specific?

How can we reproduce it?

export CIL_AZURE_SUBSCRIPTION_ID="ABC"
export CIL_AZURE_SP_NAME="devsecops-iac-rbac"

az ad sp create-for-rbac --sdk-auth \
--role Owner \
--scopes="/subscriptions/${CIL_AZURE_SUBSCRIPTION_ID}" -n ${CIL_AZURE_SP_NAME} > "creds.json"

if which jq > /dev/null 2>&1; then
AZURE_CLIENT_ID=$(jq -r ".clientId" < "./creds.json")
else
AZURE_CLIENT_ID=$(cat creds.json | grep clientId | cut -c 16-51)
fi

RW_ALL_APPS=1cda74f2-2616-4834-b122-5cb1b07f8a59
RW_DIR_DATA=78c8a3c8-a07e-4b9e-af1b-b5ccab50a175
AAD_GRAPH_API=00000002-0000-0000-c000-000000000000

az ad app permission add --id "${AZURE_CLIENT_ID}" --api ${AAD_GRAPH_API} --api-permissions ${RW_ALL_APPS}=Role ${RW_DIR_DATA}=Role

What environment did it happen in?

Crossplane version: v1.15.2
minikube version: v1.32.0
kubectl: v1.29.3

@danilodorgam danilodorgam added the bug Something isn't working label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant