diff --git a/infra/app/ddd.bicep b/infra/app/ddd.bicep index d547595..efa44cc 100644 --- a/infra/app/ddd.bicep +++ b/infra/app/ddd.bicep @@ -2,7 +2,6 @@ param name string param location string = resourceGroup().location param tags object = {} -param environment string param identityName string param containerRegistryName string param containerAppsEnvironmentName string @@ -41,6 +40,9 @@ resource acrPullRole 'Microsoft.Authorization/roleAssignments@2022-04-01' = { } } +@secure() +param sessionSecret string = uniqueString(newGuid()) + module fetchLatestImage '../modules/fetch-container-image.bicep' = { name: '${name}-fetch-image' params: { @@ -77,6 +79,10 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = { name: 'github-token' value: gitHubToken } + { + name: 'session-secret' + value: sessionSecret + } ] } secrets @@ -106,6 +112,10 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = { name: 'GITHUB_TOKEN', secretRef: 'github-token' } + { + name: 'SESSION_SECRET', + secretRef: 'session-secret' + } ] resources: { diff --git a/infra/main.bicep b/infra/main.bicep index 931774b..2e65af0 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -108,7 +108,6 @@ module ddd './app/ddd.bicep' = { containerAppsEnvironmentName: appsEnv.outputs.name containerRegistryName: registry.outputs.name exists: dddExists - environment: environmentName gitHubOrganization: gitHubOrganization gitHubRepo: gitHubRepo gitHubToken: gitHubToken