Skip to content

Commit

Permalink
logging for environment and update the kv urls (#148)
Browse files Browse the repository at this point in the history
Co-authored-by: acn-dgopa <acn-dgopa@dev-acn-tje-14>
  • Loading branch information
acn-dgopa and acn-dgopa authored Nov 11, 2024
1 parent 0f7b325 commit 209a3aa
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/Altinn.Auth.AuditLog/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
WebApplication app = AuditLogHost.Create(args);

app.AddDefaultAltinnMiddleware(errorHandlingPath: "/auditlog/api/v1/error");
Console.WriteLine($"The application environment{app.Environment}");

if (app.Environment.IsDevelopment())
{
Expand Down
2 changes: 1 addition & 1 deletion src/Altinn.Auth.AuditLog/appsettings.AT21.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"KeyVaultSettings": {
"SecretUri": "https://altinn-at21-auditlog-kv.vault.azure.net/"
},
"kvSettings:SecretUri": "https://altinn-at22-auditlog-kv.vault.azure.net/"
"kvSettings:SecretUri": "https://altinn-at21-auditlog-kv.vault.azure.net/"
}
2 changes: 1 addition & 1 deletion src/Altinn.Auth.AuditLog/appsettings.AT23.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"KeyVaultSettings": {
"SecretUri": "https://altinn-at23-auditlog-kv.vault.azure.net/"
},
"kvSettings:SecretUri": "https://altinn-at22-auditlog-kv.vault.azure.net/"
"kvSettings:SecretUri": "https://altinn-at23-auditlog-kv.vault.azure.net/"
}
2 changes: 1 addition & 1 deletion src/Altinn.Auth.AuditLog/appsettings.AT24.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"KeyVaultSettings": {
"SecretUri": "https://altinn-at24-auditlog-kv.vault.azure.net/"
},
"kvSettings:SecretUri": "https://altinn-at22-auditlog-kv.vault.azure.net/"
"kvSettings:SecretUri": "https://altinn-at24-auditlog-kv.vault.azure.net/"
}
2 changes: 1 addition & 1 deletion src/Altinn.Auth.AuditLog/appsettings.PROD.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"KeyVaultSettings": {
"SecretUri": "https://altinn-prod-auditlog-kv.vault.azure.net/"
},
"kvSettings:SecretUri": "https://altinn-at22-auditlog-kv.vault.azure.net/"
"kvSettings:SecretUri": "https://altinn-prod-auditlog-kv.vault.azure.net/"
}
2 changes: 1 addition & 1 deletion src/Altinn.Auth.AuditLog/appsettings.TT02.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"KeyVaultSettings": {
"SecretUri": "https://altinn-tt02-auditlog-kv.vault.azure.net/"
},
"kvSettings:SecretUri": "https://altinn-at22-auditlog-kv.vault.azure.net/"
"kvSettings:SecretUri": "https://altinn-tt02-auditlog-kv.vault.azure.net/"
}
2 changes: 1 addition & 1 deletion src/Altinn.Auth.AuditLog/appsettings.YT01.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"KeyVaultSettings": {
"SecretUri": "https://altinn-yt01-auditlog-kv.vault.azure.net/"
},
"kvSettings:SecretUri": "https://altinn-at22-auditlog-kv.vault.azure.net/"
"kvSettings:SecretUri": "https://altinn-yt01-auditlog-kv.vault.azure.net/"
}

0 comments on commit 209a3aa

Please sign in to comment.