Skip to content

Commit 7e3191d

Browse files
feat: secret endpoint type (#69)
* feat: secret endpoint type * feat: secret endpoint type * feat: secret endpoint type
1 parent 00bd4fd commit 7e3191d

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

solutions/banking/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ module "secrets_manager_secret_ibm_iam" {
4343
secret_description = "IBM IAM Api key"
4444
secret_type = "arbitrary" #checkov:skip=CKV_SECRET_6
4545
secret_payload_password = var.ibmcloud_api_key
46+
endpoint_type = var.secrets_endpoint_type
4647
}
4748

4849
# secrets manager secrets - IBM signing key
@@ -59,6 +60,7 @@ module "secrets_manager_secret_signing_key" {
5960
secret_description = "IBM Signing GPG key"
6061
secret_type = "arbitrary" #checkov:skip=CKV_SECRET_6
6162
secret_payload_password = var.signing_key
63+
endpoint_type = var.secrets_endpoint_type
6264
}
6365

6466
# secrets manager secrets - WATSONX ADMIN API KEY
@@ -75,6 +77,7 @@ module "secrets_manager_secret_watsonx_admin_api_key" {
7577
secret_description = "WatsonX Admin API Key"
7678
secret_type = "arbitrary" #checkov:skip=CKV_SECRET_6
7779
secret_payload_password = var.watsonx_admin_api_key
80+
endpoint_type = var.secrets_endpoint_type
7881
}
7982

8083

solutions/banking/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ variable "create_secrets" {
107107
default = true
108108
}
109109

110+
variable "secrets_endpoint_type" {
111+
type = string
112+
description = "The endpoint type to communicate with the provided secrets manager instance. Possible values are `public` or `private`"
113+
default = "private"
114+
}
115+
110116
variable "secrets_manager_guid" {
111117
description = "Secrets Manager GUID where the API key and signing key will be stored."
112118
type = string

tests/pr_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ func TestRunBankingSolutions(t *testing.T) {
8282
"secrets_manager_region": region,
8383
"signing_key": terraform.Output(t, existingTerraformOptions, "signing_key"),
8484
"trigger_ci_pipeline_run": false,
85+
"secrets_endpoint_type": "public",
8586
},
8687
})
8788

0 commit comments

Comments
 (0)