Skip to content

Commit 851a1da

Browse files
authored
Merge pull request #15797 from CDCgov/josiahsiegel/add/cdctiautomated-env
add cdctiautomated env var
2 parents 38ee70c + 24cad65 commit 851a1da

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

.environment/gitleaks/gitleaks-config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ title = "PRIME ReportStream Gitleaks Configuration"
204204
'ApiKeyCredential\(\"flexion\"',
205205
'authType: \"two-legged\"',
206206
'Authorization-Type: \"username/password\"',
207+
'cdctiautomated_sa'
207208
]
208209
paths = [
209210
'.terraform/modules/',

operations/app/terraform/modules/function_app/locals.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ locals {
1818
"RS_OKTA_authkey" = var.RS_OKTA_authKey
1919
"RS_OKTA_ClientId" = var.RS_OKTA_clientId
2020
"ETOR_TI_baseurl" = var.etor_ti_base_url
21+
"cdctiautomated" = var.cdctiautomated_sa
2122
# Manage client secrets via a Key Vault
2223
"CREDENTIAL_STORAGE_METHOD" = "AZURE"
2324
"CREDENTIAL_KEY_VAULT_NAME" = var.client_config_key_vault_name

operations/app/terraform/modules/function_app/~inputs.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ variable "RS_OKTA_authKey" {}
9090
variable "RS_OKTA_clientId" {}
9191
variable "RS_OKTA_scope" {}
9292
variable "etor_ti_base_url" {}
93+
variable "cdctiautomated_sa" {
94+
default = ""
95+
}
9396

9497
variable "subnets" {
9598
description = "A set of all available subnet combinations"

operations/app/terraform/vars/staging/data.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,10 @@ data "azurerm_key_vault_secret" "RS_OKTA_authKey" {
9393
name = "functionapp-RS-OKTA-authkey"
9494
key_vault_id = data.azurerm_key_vault.app_config.id
9595

96+
}
97+
98+
data "azurerm_key_vault_secret" "cdctiautomated_sa" {
99+
name = "functionapp-cdctiautomated"
100+
key_vault_id = data.azurerm_key_vault.app_config.id
101+
96102
}

operations/app/terraform/vars/staging/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ module "function_app" {
160160
RS_OKTA_clientId = data.azurerm_key_vault_secret.RS_OKTA_clientId.value
161161
RS_OKTA_authKey = data.azurerm_key_vault_secret.RS_OKTA_authKey.value
162162
etor_ti_base_url = local.init.etor_ti_base_url
163+
cdctiautomated_sa = data.azurerm_key_vault_secret.cdctiautomated_sa.value
163164
}
164165

165166
module "front_door" {

0 commit comments

Comments
 (0)