Skip to content

Commit

Permalink
allows hosted users to not enter a key
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Jan 26, 2025
1 parent cb37531 commit 1146c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/CippExtensions/Public/HIBP/Get-HIBPAuth.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function Get-HIBPAuth {
$Secret = (Get-CIPPAzDataTableEntity @DevSecretsTable -Filter "PartitionKey eq 'HIBP' and RowKey eq 'HIBP'").APIKey
} else {
$null = Connect-AzAccount -Identity
$VaultName = ($ENV:WEBSITE_DEPLOYMENT_ID -split '-')[0]
$VaultName = $WEBSITE_OWNER_NAME -like '3e625d35-bf18-4e55*' ? 'hibp-kv' : ($ENV:WEBSITE_DEPLOYMENT_ID -split '-')[0]
$Secret = Get-AzKeyVaultSecret -VaultName $VaultName -Name 'HIBP' -AsPlainText
}

Expand Down

0 comments on commit 1146c88

Please sign in to comment.