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

ARO-9420: *: add acrpull controller, binding #1011

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stevekuznetsov
Copy link
Contributor

Supersedes #986

@stevekuznetsov
Copy link
Contributor Author

Error: failed linting charts: failed processing charts
 ✖︎ frontend => (version: "0.1.0", path: "frontend/deploy/helm/frontend") > failed waiting for process: exit status 1

??

@stevekuznetsov stevekuznetsov force-pushed the skuznets/acrpull branch 2 times, most recently from 76b9942 to a234856 Compare December 19, 2024 21:00

module acrPullerRoles 'acr/acr-permissions.bicep' = [
for (_, i) in acrPullResourceGroups: {
name: guid(acrRg[i].id, aksCluster.id, acrPullRoleDefinitionId)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this name definition is identical with the one used in module acrPullRole - hence the error during the PR check what-if

Suggested change
name: guid(acrRg[i].id, aksCluster.id, acrPullRoleDefinitionId)
name: guid(acrRg[i].id, aksCluster.id, acrPullRoleDefinitionId, 'puller-identity')

Comment on lines +493 to +497
audiences: [
'api://AzureCRTokenExchange'
]
issuer: aksCluster.properties.oidcIssuerProfile.issuerURL
subject: 'system:serviceaccount:${workloadIdentities[i].value.namespace}:${workloadIdentities[i].value.serviceAccountName}'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after running this template i get the error Issuer and subject combination already exists for this Managed Identity

so an MI can be federated only once with a certain SA on a cluster BUT the audience list can only hold one value.

https://learn.microsoft.com/en-us/entra/workload-id/workload-identity-federation-considerations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants