Skip to content

Commit

Permalink
Merge branch 'master' into chore/summary/update-function-pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathanio123 authored Aug 28, 2024
2 parents 95aab0a + 79309c2 commit 16e583c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions pipelines/secret-rotation-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ stages:
- template: templates/secret-rotation/ensure-secret.yml
parameters:
azureSubscription: $(subscriptionServiceNonProd)
azureSubscriptionCore: $(azureSubscriptionCore)
azureSubscriptionCore: $(subscriptionServiceCore)
name: 'resourceApi'
secretName: 'AzureAd--ClientSecret'
vaultName: $(vaultName)
Expand All @@ -64,7 +64,7 @@ stages:
- template: templates/secret-rotation/ensure-secret.yml
parameters:
azureSubscription: $(subscriptionServiceNonProd)
azureSubscriptionCore: $(azureSubscriptionCore)
azureSubscriptionCore: $(subscriptionServiceCore)
name: 'resourceApi'
secretName: 'AzureAd--ClientSecret'
vaultName: $(vaultName)
Expand All @@ -83,7 +83,7 @@ stages:
- template: templates/secret-rotation/ensure-secret.yml
parameters:
azureSubscription: $(subscriptionServiceNonProd)
azureSubscriptionCore: $(azureSubscriptionCore)
azureSubscriptionCore: $(subscriptionServiceCore)
name: 'resourceApi'
secretName: 'AzureAd--ClientSecret'
vaultName: $(vaultName)
Expand All @@ -102,7 +102,7 @@ stages:
- template: templates/secret-rotation/ensure-secret.yml
parameters:
azureSubscription: $(subscriptionServiceNonProd)
azureSubscriptionCore: $(azureSubscriptionCore)
azureSubscriptionCore: $(subscriptionServiceCore)
name: 'resourceApi'
secretName: 'AzureAd--ClientSecret'
vaultName: $(vaultName)
Expand All @@ -121,8 +121,8 @@ stages:
steps:
- template: templates/secret-rotation/ensure-secret.yml
parameters:
azureSubscription: $(subscriptionServiceNonProd)
azureSubscriptionCore: $(azureSubscriptionCore)
azureSubscription: $(subscriptionServiceProd)
azureSubscriptionCore: $(subscriptionServiceCore)
name: 'resourceApi'
secretName: 'AzureAd--ClientSecret'
vaultName: $(vaultName)
Expand Down
6 changes: 3 additions & 3 deletions pipelines/templates/secret-rotation/ensure-secret.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parameters:
- name: azureSubscription
- name: subscriptionServiceCore
- name: azureSubscriptionCore
## The name is used to scope variables if multiple secrets are rotated within the pipeline.
- name: name
displayName: Secret id, to scope variables
Expand All @@ -24,7 +24,7 @@ steps:
- template: generate-secret.yml
parameters:
condition: eq(variables['${{ parameters.name }}_Check.generateNew'], 'true')
azureSubscription: ${{ parameters.subscriptionServiceCore }}
azureSubscription: ${{ parameters.azureSubscriptionCore }}
name: ${{ parameters.name }}_SecretGen
clientId: ${{ parameters.aadApplicationId }}
secretDescription: 'FRA - $(vaultName) - ${{ parameters.secretName }}'
Expand All @@ -40,6 +40,6 @@ steps:

- template: cleanup-expired-secrets.yml
parameters:
azureSubscription: ${{ parameters.subscriptionServiceCore }}
azureSubscription: ${{ parameters.azureSubscriptionCore }}
clientId: ${{ parameters.aadApplicationId }}
keyIds: $(${{ parameters.name }}_Check.keysToDelete)

0 comments on commit 16e583c

Please sign in to comment.