Skip to content

Commit

Permalink
add missing keyvault access role
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Sanft <[email protected]>
  • Loading branch information
msanft committed Sep 21, 2023
1 parent b5d489e commit 6141a8d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/actions/constellation_create/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,16 @@ runs:
--force
echo "::endgroup::"
- name: Add Azure Keyvault access role
if: inputs.cloudProvider == 'azure' && inputs.isDebugImage == 'true'
shell: bash
run: |
UAMI=$(yq eval ".provider.azure.userAssignedIdentity | upcase" constellation-conf.yaml)
PRINCIPAL_ID=$(az identity list | yq ".[] | select(.id | test(\"(?i)$UAMI\"; \"g\")) | .principalId")
az role assignment create --role "Key Vault Secrets User" \
--assignee "$PRINCIPAL_ID" \
--scope /subscriptions/0d202bbb-4fa7-4af8-8125-58c269a05435/resourceGroups/e2e-test-creds/providers/Microsoft.KeyVault/vaults/opensearch-creds
- name: Constellation init
id: constellation-init
shell: bash
Expand Down

0 comments on commit 6141a8d

Please sign in to comment.