Skip to content

Commit

Permalink
env settings
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf committed Mar 11, 2024
1 parent 584d1a2 commit 8b1f395
Show file tree
Hide file tree
Showing 4 changed files with 269 additions and 7 deletions.
90 changes: 88 additions & 2 deletions infra/container_apps/env/dev/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,93 @@ container_app = {
}

app_settings = [
{
name = "INTERNAL_API_SERVICE_URL"
value = "https://api.dev.selfcare.pagopa.it"
},
{
name = "MS_EXTERNAL_INTERCEPTOR_LOG_LEVEL"
value = "DEBUG"
},
{
name = "SAP_ALLOWED_INSTITUTION_TYPES"
value = "PA,GSP,SA,SA,SCP"
},
{
name = "SAP_ALLOWED_ORIGIN"
value = "IPA,SELC"
},
{
name = "PRODUCTS_TO_RESEND"
value = "prod-pn,prod-io-sign,prod-io-premium"
},
{
name = "JAVA_TOOL_OPTIONS"
value = "-javaagent:applicationinsights-agent.jar"
},
{
name = APPLICATIONINSIGHTS_ROLE_NAME
value = "ms-external-interceptor"
},
{
name = KAFKA_AUTO_OFFSET_RESET_CONFIG
value = "earliest"
},
{
name = ALLOWED_PRODUCER_TOPICS
value = "{'prod-fd': 'selfcare-fd', 'prod-fd-garantito': 'selfcare-fd'}"
},
{
name = "USERVICE_PARTY_REGISTRY_PROXY_URL"
value = "https://selc-d-party-reg-proxy-ca.gentleflower-c63e62fe.westeurope.azurecontainerapps.io"
},
{
name = "EXTERNAL_API_BACKEND_URL"
value = "https://selc-d-external-api-backend-ca.gentleflower-c63e62fe.westeurope.azurecontainerapps.io"
},
{
name = "MS_CORE_URL"
value = "https://selc-d-ms-core-ca.gentleflower-c63e62fe.westeurope.azurecontainerapps.io"
},
{
name = "PROD_FD_URL"
value = "https://fid00001fe.siachain.sv.sia.eu:30008"
},
{
name = "KAFKA_BROKER"
value = "selc-d-eventhub-ns.servicebus.windows.net:9093"
},
{
name = "KAFKA_SECURITY_PROTOCOL"
value = "SASL_SSL"
},
{
name = "KAFKA_SASL_MECHANISM"
value = "PLAIN"
},
{
name = "KAFKA_CONTRACTS_TOPIC
value = "SC-Contracts"
},
{
name = "KAFKA_FD_TOPIC
value = "Selfcare-FD"
},
{
name = "KAFKA_USERS_TOPIC
value = "SC-Users"
}
]
secrets_names = [
]
secrets_names = {
"APPLICATIONINSIGHTS_CONNECTION_STRING" = "appinsights-connection-string"
"SELFCARE_APIM_INTERNAL_API_KEY" = "onboarding-interceptor-apim-internal"
"FD_TOKEN_GRANT_TYPE" = "prod-fd-grant-type"
"FD_TOKEN_CLIENT_ID" = "prod-fd-client-id"
"FD_TOKEN_CLIENT_SECRET" = "prod-fd-client-secret"
"MONGODB_CONNECTION_URI" = "mongodb-connection-string"
"KAFKA_CONTRACTS_SELFCARE_RO_SASL_JAAS_CONFIG" = "eventhub-sc-contracts-selfcare-wo-connection-string-lc"
"KAFKA_USERS_SELFCARE_RO_SASL_JAAS_CONFIG" = "eventhub-sc-users-selfcare-wo-connection-string-lc"
"KAFKA_SELFCARE_FD_WO_SASL_JAAS_CONFIG" = "eventhub-selfcare-fd-fd-connection-string-lc"
"KAFKA_SC_CONTRACTS_SAP_WO_SASL_JAAS_CONFIG" = "eventhub-sc-contracts-sap-sap-connection-string-lc"
}
92 changes: 90 additions & 2 deletions infra/container_apps/env/prod/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,96 @@ container_app = {
memory = "2.5Gi"
}



app_settings = [
{
name = "INTERNAL_API_SERVICE_URL"
value = "https://api.selfcare.pagopa.it"
},
{
name = "MS_EXTERNAL_INTERCEPTOR_LOG_LEVEL"
value = "INFO"
},
{
name = "SAP_ALLOWED_INSTITUTION_TYPES"
value = "PA,GSP,SA,SA,SCP"
},
{
name = "SAP_ALLOWED_ORIGIN"
value = "IPA,SELC"
},
{
name = "PRODUCTS_TO_RESEND"
value = "prod-pn,prod-io-sign,prod-io-premium"
},
{
name = "JAVA_TOOL_OPTIONS"
value = "-javaagent:applicationinsights-agent.jar"
},
{
name = APPLICATIONINSIGHTS_ROLE_NAME
value = "ms-external-interceptor"
},
{
name = KAFKA_AUTO_OFFSET_RESET_CONFIG
value = "earliest"
},
{
name = ALLOWED_PRODUCER_TOPICS
value = "{'prod-fd': 'selfcare-fd', 'prod-fd-garantito': 'selfcare-fd'}"
},
{
name = "USERVICE_PARTY_REGISTRY_PROXY_URL"
value = "https://selc-p-party-reg-proxy-ca.bluedune-cc0f8752.westeurope.azurecontainerapps.io"
},
{
name = "EXTERNAL_API_BACKEND_URL"
value = "https://selc-p-external-api-backend-ca.bluedune-cc0f8752.westeurope.azurecontainerapps.io"
},
{
name = "MS_CORE_URL"
value = "https://selc-p-ms-core-ca.bluedune-cc0f8752.westeurope.azurecontainerapps.io"
},
{
name = "PROD_FD_URL"
value = "https://portale.fideiussionidigitali.it"
},
{
name = "KAFKA_BROKER"
value = "selc-p-eventhub-ns.servicebus.windows.net:9093"
},
{
name = "KAFKA_SECURITY_PROTOCOL"
value = "SASL_SSL"
},
{
name = "KAFKA_SASL_MECHANISM"
value = "PLAIN"
},
{
name = "KAFKA_CONTRACTS_TOPIC
value = "SC-Contracts"
},
{
name = "KAFKA_FD_TOPIC
value = "Selfcare-FD"
},
{
name = "KAFKA_USERS_TOPIC
value = "SC-Users"
}
]
secrets_names = [
]
secrets_names = {
"APPLICATIONINSIGHTS_CONNECTION_STRING" = "appinsights-connection-string"
"SELFCARE_APIM_INTERNAL_API_KEY" = "onboarding-interceptor-apim-internal"
"FD_TOKEN_GRANT_TYPE" = "prod-fd-grant-type"
"FD_TOKEN_CLIENT_ID" = "prod-fd-client-id"
"FD_TOKEN_CLIENT_SECRET" = "prod-fd-client-secret"
"MONGODB_CONNECTION_URI" = "mongodb-connection-string"
"KAFKA_CONTRACTS_SELFCARE_RO_SASL_JAAS_CONFIG" = "eventhub-sc-contracts-selfcare-wo-connection-string-lc"
"KAFKA_USERS_SELFCARE_RO_SASL_JAAS_CONFIG" = "eventhub-sc-users-selfcare-wo-connection-string-lc"
"KAFKA_SELFCARE_FD_WO_SASL_JAAS_CONFIG" = "eventhub-selfcare-fd-fd-connection-string-lc"
"KAFKA_SC_CONTRACTS_SAP_WO_SASL_JAAS_CONFIG" = "eventhub-sc-contracts-sap-sap-connection-string-lc"
}
92 changes: 90 additions & 2 deletions infra/container_apps/env/uat/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,96 @@ container_app = {
memory = "1Gi"
}



app_settings = [
{
name = "INTERNAL_API_SERVICE_URL"
value = "https://api.uat.selfcare.pagopa.it"
},
{
name = "MS_EXTERNAL_INTERCEPTOR_LOG_LEVEL"
value = "INFO"
},
{
name = "SAP_ALLOWED_INSTITUTION_TYPES"
value = "PA,GSP,SA,SA,SCP"
},
{
name = "SAP_ALLOWED_ORIGIN"
value = "IPA,SELC"
},
{
name = "PRODUCTS_TO_RESEND"
value = "prod-pn,prod-io-sign,prod-io-premium"
},
{
name = "JAVA_TOOL_OPTIONS"
value = "-javaagent:applicationinsights-agent.jar"
},
{
name = APPLICATIONINSIGHTS_ROLE_NAME
value = "ms-external-interceptor"
},
{
name = KAFKA_AUTO_OFFSET_RESET_CONFIG
value = "earliest"
},
{
name = ALLOWED_PRODUCER_TOPICS
value = "{'prod-fd': 'selfcare-fd', 'prod-fd-garantito': 'selfcare-fd'}"
},
{
name = "USERVICE_PARTY_REGISTRY_PROXY_URL"
value = "https://selc-u-party-reg-proxy-ca.calmsky-143987c1.westeurope.azurecontainerapps.io"
},
{
name = "EXTERNAL_API_BACKEND_URL"
value = "https://selc-u-external-api-backend-ca.calmsky-143987c1.westeurope.azurecontainerapps.io"
},
{
name = "MS_CORE_URL"
value = "https://selc-u-ms-core-ca.calmsky-143987c1.westeurope.azurecontainerapps.io"
},
{
name = "PROD_FD_URL"
value = "https://fid00001fe.siachain.sv.sia.eu:30008"
},
{
name = "KAFKA_BROKER"
value = "selc-u-eventhub-ns.servicebus.windows.net:9093"
},
{
name = "KAFKA_SECURITY_PROTOCOL"
value = "SASL_SSL"
},
{
name = "KAFKA_SASL_MECHANISM"
value = "PLAIN"
},
{
name = "KAFKA_CONTRACTS_TOPIC
value = "SC-Contracts"
},
{
name = "KAFKA_FD_TOPIC
value = "Selfcare-FD"
},
{
name = "KAFKA_USERS_TOPIC
value = "SC-Users"
}
]
secrets_names = [
]
secrets_names = {
"APPLICATIONINSIGHTS_CONNECTION_STRING" = "appinsights-connection-string"
"SELFCARE_APIM_INTERNAL_API_KEY" = "onboarding-interceptor-apim-internal"
"FD_TOKEN_GRANT_TYPE" = "prod-fd-grant-type"
"FD_TOKEN_CLIENT_ID" = "prod-fd-client-id"
"FD_TOKEN_CLIENT_SECRET" = "prod-fd-client-secret"
"MONGODB_CONNECTION_URI" = "mongodb-connection-string"
"KAFKA_CONTRACTS_SELFCARE_RO_SASL_JAAS_CONFIG" = "eventhub-sc-contracts-selfcare-wo-connection-string-lc"
"KAFKA_USERS_SELFCARE_RO_SASL_JAAS_CONFIG" = "eventhub-sc-users-selfcare-wo-connection-string-lc"
"KAFKA_SELFCARE_FD_WO_SASL_JAAS_CONFIG" = "eventhub-selfcare-fd-fd-connection-string-lc"
"KAFKA_SC_CONTRACTS_SAP_WO_SASL_JAAS_CONFIG" = "eventhub-sc-contracts-sap-sap-connection-string-lc"
}
2 changes: 1 addition & 1 deletion infra/container_apps/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ variable "app_settings" {
}

variable "secrets_names" {
type = list(string)
type = map(string)
description = "KeyVault secrets to get values from"
}

0 comments on commit 8b1f395

Please sign in to comment.