Skip to content

Commit

Permalink
update ioweb-profile-backend config with new required env variables (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
arcogabbo authored Sep 28, 2023
1 parent e0b5e90 commit 703c01c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/domains/ioweb-app/06_function_ioweb_profile.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ data "azurerm_key_vault_secret" "spid_login_api_key" {
###

locals {
function_JWT_issuer = "api-web.io.pagopa.it/ioweb/backend"
function_ioweb_profile = {
app_settings = {
FUNCTIONS_WORKER_PROCESS_COUNT = 4
Expand All @@ -50,14 +51,15 @@ locals {
// ------------
// JWT Config
// ------------
BEARER_AUTH_HEADER = "authorization"
EXCHANGE_JWT_ISSUER = "api-web.io.pagopa.it/ioweb/backend"
EXCHANGE_JWT_PUB_KEY = azurerm_key_vault_secret.exchange_jwt_pub_key.value
EXCHANGE_JWT_PRIVATE_KEY = azurerm_key_vault_secret.exchange_jwt_private_key.value
BEARER_AUTH_HEADER = "authorization"
EXCHANGE_JWT_ISSUER = local.function_JWT_issuer
EXCHANGE_JWT_PRIMARY_PUB_KEY = azurerm_key_vault_secret.exchange_jwt_pub_key.value
EXCHANGE_JWT_PRIMARY_PRIVATE_KEY = azurerm_key_vault_secret.exchange_jwt_private_key.value
// 1 hour
EXCHANGE_JWT_TTL = "3600"
MAGIC_LINK_JWE_PUB_KEY = azurerm_key_vault_secret.magic_link_jwe_pub_key.value
MAGIC_LINK_JWE_PRIVATE_KEY = azurerm_key_vault_secret.magic_link_jwe_private_key.value
EXCHANGE_JWT_TTL = "3600"
MAGIC_LINK_JWE_PRIMARY_PRIVATE_KEY = azurerm_key_vault_secret.magic_link_jwe_private_key.value
MAGIC_LINK_JWE_ISSUER = local.function_JWT_issuer
MAGIC_LINK_BASE_URL = "https://ioapp.it/blocco-accesso/magic-link"
// TBD: more/less than 1 week?
MAGIC_LINK_JWE_TTL = "604800"

Expand Down

0 comments on commit 703c01c

Please sign in to comment.