Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update ioweb-profile-backend config with new required env variables #691

Merged
merged 2 commits into from
Sep 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion 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 @@ -51,13 +52,15 @@ locals {
// JWT Config
// ------------
BEARER_AUTH_HEADER = "authorization"
EXCHANGE_JWT_ISSUER = "api-web.io.pagopa.it/ioweb/backend"
EXCHANGE_JWT_ISSUER = local.function_JWT_issuer
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
// 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
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
Loading