Skip to content

Commit

Permalink
add cosmos key and s3 sops
Browse files Browse the repository at this point in the history
  • Loading branch information
aferracci authored and Pasquale Spica committed Oct 20, 2024
1 parent 8f4a596 commit 604e113
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 6 additions & 2 deletions src/domains/afm-common/02_keyvault.tf
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ resource "azurerm_key_vault_secret" "afm_calculator_subscription_key" {
}
}


data "azurerm_key_vault" "kv_nodo" {
name = "pagopa-${var.env_short}-nodo-kv"
resource_group_name = "pagopa-${var.env_short}-nodo-sec-rg"
Expand All @@ -159,5 +158,10 @@ resource "azurerm_key_vault_secret" "db_cfg_password_read_ndp_du" {
key_vault_id = module.key_vault.id
}

resource "azurerm_key_vault_secret" "afm_fee_reporting_cosmos_pkey" {
name = "afm-fee-reporting-${var.env_short}-cosmos-pkey"
value = module.afm_marketplace_cosmosdb_account.primary_key
content_type = "text/plain"


key_vault_id = module.key_vault.id
}
8 changes: 5 additions & 3 deletions src/domains/afm-secrets/secret/weu-dev/noedit_secret_enc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"afm-fee-reporting-s3-key-id": "ENC[AES256_GCM,data:YaOrDvXFUhKIQkFj6ZzSTS3wjXo=,iv:/x2gmiHjXNA2Slqz8JpuL7N+rNWGrd482y5nvHfFGdg=,tag:vCwKCN5ljVTke2kuuvdjtA==,type:str]",
"afm-fee-reporting-s3-key-secret": "ENC[AES256_GCM,data:XC6VYdPWPvwc+CziNKjuZ8QUaLiErgoLM//ASAPQB2ebYnRM/QgOFw==,iv:aXh2DUAyZ43UeoRPuZ3toKjGaytMv3lHYO3N/ncoFBE=,tag:esOikoegtK46W2HzrarzEg==,type:str]",
"sops": {
"kms": null,
"gcp_kms": null,
Expand All @@ -13,10 +15,10 @@
],
"hc_vault": null,
"age": null,
"lastmodified": "2024-09-24T13:52:50Z",
"mac": "ENC[AES256_GCM,data:EMVjNRu+gDKhhg37yuVqkp+BIkvTAEV2fHrbC8t0R9Mify8JHB8Epr7A6I0xd3qZTmmpSiZVaRFfa704oqObX8nVnCa7xgTJ8HFw4CeEsxMDFAIvwWt9QU0jlRgfQ1Owek/i2Yat/lz1pXUKhxn+K3MhpxJNG2sbJotoi7DbXSY=,iv:GSjjtWESnX0k+fM0V5UPh4Xkcry/55N+M5PRiEAJ8DA=,tag:WUVoZ0jwFCu4FDWXw21u+A==,type:str]",
"lastmodified": "2024-09-25T15:09:41Z",
"mac": "ENC[AES256_GCM,data:eX5rCwIpA/k7kUrRchnWQBM2ygOMb2fbHgl9N/XkWjZ7b5fsDiqSzrgHVHTxAoMNEczSxnsFXCyPuCOUDrHzfzOdFTZZZtk3WZiWwZCGEbSDE9kI0IP5zk/W9Lsoinj8hsOG8a77Cx0/aU9mcK91tVzXNROLQgs3d45XjfyNQP4=,iv:oMcZz7ntv/7Tacfa1ACLubDh9QJN0Q8LCpAkDeWQUYE=,tag:riz2sLT/kLRCSGpYYDSShg==,type:str]",
"pgp": null,
"unencrypted_suffix": "_unencrypted",
"version": "3.7.3"
"version": "3.9.0"
}
}

0 comments on commit 604e113

Please sign in to comment.