generated from pagopa/terraform-infrastructure-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [PAGOPA-2626] Decoupler: logic for FdR SOAP requests (#2766)
* added check on fdr org soap request * added check on fdr psp soap request * precommit * fix * fix * fix * fix * added sha * added comment * conflict resolved * feat: [PAGOPA-2647] defining response caching for `nodoChiediElencoFlussiRendicontazione` primitive (#2781) * [PAGOPA-2647] feat: defining response caching for FdR-Fase1 'flow list' API * [PAGOPA-2647] fix: resolving bugs and refactoring code * [PAGOPA-2647] fix: excluding caching process if response returns a fault code * [PAGOPA-2647] fix: updating tracing text * [PAGOPA-2647] fix: resolving bugs and adding correct handling of BLOB headers * [PAGOPA-2647] fix: adding permission for read/write operations by APIM * [PAGOPA-2647] chore: commenting trace tag, avoiding unnecessary log * remove mongodb * fix * recovre after push error * fix dashboard * fix dashboard * fix secret prod * fix fdr common * fix --------- Co-authored-by: Andrea D. <[email protected]> Co-authored-by: pasqualespica <[email protected]> Co-authored-by: Pasquale Spica <[email protected]>
- Loading branch information
1 parent
729f38f
commit 152048f
Showing
25 changed files
with
551 additions
and
445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// Switch to pagoPA FdR SOAP request for Orgs (creditor institutions) | ||
// https://pagopa.atlassian.net/wiki/spaces/IQCGJ/pages/1071153182/FdR-1+Flussi+di+Rendicontazione | ||
resource "azurerm_api_management_named_value" "enable_fdr_ci_soap_request" { | ||
name = "enable-fdr-ci-soap-request-switch" | ||
api_management_name = data.azurerm_api_management.apim.name | ||
resource_group_name = data.azurerm_api_management.apim.resource_group_name | ||
display_name = "enable-fdr-ci-soap-request-switch" | ||
value = var.enable_fdr_ci_soap_request | ||
} | ||
|
||
// Switch to pagoPA FdR SOAP request for PSP | ||
// https://pagopa.atlassian.net/wiki/spaces/IQCGJ/pages/1071153182/FdR-1+Flussi+di+Rendicontazione | ||
resource "azurerm_api_management_named_value" "enable_fdr_psp_soap_request" { | ||
name = "enable-fdr-psp-soap-request-switch" | ||
api_management_name = data.azurerm_api_management.apim.name | ||
resource_group_name = data.azurerm_api_management.apim.resource_group_name | ||
display_name = "enable-fdr-psp-soap-request-switch" | ||
value = var.enable_fdr_psp_soap_request | ||
} | ||
|
||
// PSP list to switch traffic towards pagoPA FdR | ||
resource "azurerm_api_management_named_value" "fdr_psp_soap_request_psp_list" { | ||
name = "fdr-soap-request-psp-whitelist" | ||
api_management_name = data.azurerm_api_management.apim.name | ||
resource_group_name = data.azurerm_api_management.apim.resource_group_name | ||
display_name = "fdr-soap-request-psp-whitelist" | ||
value = var.fdr_soap_request_psp_whitelist | ||
} | ||
|
||
// CI list to switch traffic towards pagoPA FdR | ||
resource "azurerm_api_management_named_value" "fdr_ci_soap_request_ci_list" { | ||
name = "fdr-soap-request-ci-whitelist" | ||
api_management_name = data.azurerm_api_management.apim.name | ||
resource_group_name = data.azurerm_api_management.apim.resource_group_name | ||
display_name = "fdr-soap-request-ci-whitelist" | ||
value = var.fdr_soap_request_ci_whitelist | ||
} | ||
|
||
######################## | ||
## Info for FdR Rend ## | ||
######################## | ||
resource "azurerm_api_management_named_value" "fdrcontainername" { | ||
name = "fdrcontainername" | ||
api_management_name = data.azurerm_api_management.apim.name | ||
resource_group_name = data.azurerm_resource_group.rg_api.name | ||
display_name = "fdrcontainername" | ||
value = data.azurerm_storage_container.fdr_rend_flow.name | ||
} | ||
|
||
resource "azurerm_api_management_named_value" "fdrsaname" { | ||
name = "fdrsaname" | ||
api_management_name = data.azurerm_api_management.apim.name | ||
resource_group_name = data.azurerm_resource_group.rg_api.name | ||
display_name = "fdrsaname" | ||
value = data.azurerm_storage_account.fdr_flows_sa.name | ||
} | ||
|
||
|
||
resource "azurerm_api_management_named_value" "fdr_cachedresponse_saname" { | ||
name = "fdr_cachedresponse_saname" | ||
api_management_name = data.azurerm_api_management.apim.name | ||
resource_group_name = data.azurerm_resource_group.rg_api.name | ||
display_name = "fdr_cachedresponse_saname" | ||
value = data.azurerm_storage_account.fdr_conversion_sa.name | ||
} | ||
|
||
resource "azurerm_api_management_named_value" "fdr_cachedresponse_containername" { | ||
name = "fdr_cachedresponse_containername" | ||
api_management_name = data.azurerm_api_management.apim.name | ||
resource_group_name = data.azurerm_resource_group.rg_api.name | ||
display_name = "fdr_cachedresponse_containername" | ||
value = data.azurerm_storage_container.fdr1_cached_response.name | ||
} | ||
|
||
resource "azurerm_api_management_named_value" "fdr1_cache_duration" { | ||
name = "fdr1_cache_duration" | ||
api_management_name = data.azurerm_api_management.apim.name | ||
resource_group_name = data.azurerm_resource_group.rg_api.name | ||
display_name = "fdr1_cache_duration" | ||
value = var.fdr1_cache_duration | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.