Skip to content

Commit

Permalink
refactor: Assign Key Vault Secrets User role for Reader Service Princ…
Browse files Browse the repository at this point in the history
…ipal to Key Vault
  • Loading branch information
PabloZaiden committed Jul 23, 2024
1 parent 0615d6f commit 650d532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/install/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ deploy_dependencies() {
clientId=$(echo "${sp_reader_obj}" | jq -r .appId)
set_kv_secret 'readerClientId' "${clientId}" "${KV_NAME}"

_information "Assign Reader role for Reader Service Principal (${SP_READER_NAME}) to Key Vault ${KV_NAME}"
create_kv_role_assignment "Key Vault Reader" "${clientId}" "${KV_NAME}"
_information "Assign Key Vault Secrets User role for Reader Service Principal (${SP_READER_NAME}) to Key Vault ${KV_NAME}"
create_kv_role_assignment "Key Vault Secrets User" "${clientId}" "${KV_NAME}"

_information "Saving Reader Service Principal (${SP_READER_NAME}) to Key Vault secret 'readerClientSecret'."
clientSecret=$(echo "${sp_reader_obj}" | jq -r .password)
Expand Down

0 comments on commit 650d532

Please sign in to comment.