Skip to content

Commit

Permalink
Fix missing space in if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Hein Tonny Køien committed Mar 24, 2024
1 parent 8096e6d commit 63c0ab4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ These containers are built via Github actions that [copy the dockerfile](https:/
| --- | --- |
| `AZURE_KEYVAULT_NAME` | Optional NAME of the Azure KeyVault used to store the GitHub `APP_PRIVATE_KEY` as a secret |
| `AZURE_KEYVAULT_SECRET` | Optional Azure KeyVault secret name. If provided, the secret will be fetched and used as `APP_PRIVATE_KEY` |
| `AZURE_MSI_ID` | Optional ClientId (ex: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or Resource Id (/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/rg-my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/my-managed-identity) for a user assigned managed identity with access to `AZURE_KEYVAULT_SECRET`. If you use systemassigned managed identity this value should not be provided|
| `AZURE_MSI_ID` | Optional ClientId (ex: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or Resource Id (/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/rg-my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/my-managed-identity) for a user assigned managed identity with access to `AZURE_KEYVAULT_SECRET`. If you use system-assigned managed identity this value should not be provided.|
2 changes: 1 addition & 1 deletion blinQ-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function fetch_access_token_from_az_cli() {

# Fetch Azure Access Token, prefer imds before az cli
function fetch_azure_access_token() {
if [[ -n "$AZURE_MSI_ID"]];then
if [[ -n "$AZURE_MSI_ID" ]];then
# Authenticate with userassigned managed identity
# Check if AZURE_MSI_ID contains a client_id, ex: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx or a managed identity resource id, ex: /subscriptions/xxxxxxx/resourceGroups/xxxxxxx/providers/Microsoft.ManagedIdentity/userAssignedIdentities/xxxxxxx
resource_id = $(echo $AZURE_MSI_ID | grep Microsoft.ManagedIdentity)
Expand Down

0 comments on commit 63c0ab4

Please sign in to comment.