Skip to content

Commit

Permalink
fix(infra): set variables as sensitive valuse (#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
goo314 authored Jul 15, 2024
1 parent 24b73d6 commit 663f04e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 29 deletions.
46 changes: 23 additions & 23 deletions apps/infra/production/codedang/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ variable "rabbitmq_port" {
}

# TODO: description 넣고 공통부분은 object로 처리
variable "public_subnet1" {}
variable "public_subnet2" {}
variable "database_url" {}
variable "redis_host" {}
variable "redis_port" {}
variable "jwt_secret" {}
variable "rabbitmq_host" {}
variable "rabbitmq_password" {}
variable "rabbitmq_vhost" {}
variable "rabbitmq_api_url" {}
variable "github_client_id" {}
variable "github_client_secret" {}
variable "kakao_client_id" {}
variable "kakao_client_secret" {}
variable "otel_exporter_otlp_endpoint_url" {}
variable "loki_url" {}
variable "public_subnet1" { sensitive = true }
variable "public_subnet2" { sensitive = true }
variable "database_url" { sensitive = true }
variable "redis_host" { sensitive = true }
variable "redis_port" { sensitive = true }
variable "jwt_secret" { sensitive = true }
variable "rabbitmq_host" { sensitive = true }
variable "rabbitmq_password" { sensitive = true }
variable "rabbitmq_vhost" { sensitive = true }
variable "rabbitmq_api_url" { sensitive = true }
variable "github_client_id" { sensitive = true }
variable "github_client_secret" { sensitive = true }
variable "kakao_client_id" { sensitive = true }
variable "kakao_client_secret" { sensitive = true }
variable "otel_exporter_otlp_endpoint_url" { sensitive = true }
variable "loki_url" { sensitive = true }

variable "testcase_bucket_name" { default = "" }
variable "testcase_access_key" { default = "" }
variable "testcase_secret_key" { default = "" }
variable "testcase_bucket_arn" { default = "" }
variable "media_bucket_name" { default = "" }
variable "media_access_key" { default = "" }
variable "media_secret_key" { default = "" }
variable "testcase_bucket_name" { sensitive = true }
variable "testcase_access_key" { sensitive = true }
variable "testcase_secret_key" { sensitive = true }
variable "testcase_bucket_arn" { sensitive = true }
variable "media_bucket_name" { sensitive = true }
variable "media_access_key" { sensitive = true }
variable "media_secret_key" { sensitive = true }
12 changes: 6 additions & 6 deletions apps/infra/production/network/variables.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variable "private_admin_api1_subnet_id" {}
variable "private_admin_api2_subnet_id" {}
variable "private_iris1_subnet_id" {}
variable "private_iris2_subnet_id" {}
variable "private_client_api1_subnet_id" {}
variable "private_client_api2_subnet_id" {}
variable "private_admin_api1_subnet_id" { sensitive = true }
variable "private_admin_api2_subnet_id" { sensitive = true }
variable "private_iris1_subnet_id" { sensitive = true }
variable "private_iris2_subnet_id" { sensitive = true }
variable "private_client_api1_subnet_id" { sensitive = true }
variable "private_client_api2_subnet_id" { sensitive = true }
3 changes: 3 additions & 0 deletions apps/infra/production/storage/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ variable "postgres_username" {
description = "Username for Postgres DB"
type = string
default = "skkuding"
sensitive = true
}

variable "postgres_port" {
description = "Port for Postgres DB"
type = number
default = 5432
sensitive = true
}

variable "redis_port" {
description = "Port for Redis"
type = number
default = 6379
sensitive = true
}

0 comments on commit 663f04e

Please sign in to comment.