tofu fmt -recursive and kvv1/cloudflare permission for cms project
All checks were successful
Helm Charts / Detect changed charts (push) Successful in 55s
Helm Charts / Library charts tool (push) Has been skipped
Helm Charts / Application charts pgcat (push) Has been skipped

This commit is contained in:
2025-10-24 18:00:16 +02:00
parent be6e6135d7
commit ea9e41ff1a
6 changed files with 63 additions and 57 deletions

View File

@@ -27,6 +27,11 @@ data "vault_policy_document" "ops" {
path = "kvv1/google/credentials" path = "kvv1/google/credentials"
capabilities = ["read"] capabilities = ["read"]
} }
# read cloudflare credentials for terraform cloudflare backend
rule {
path = "kvv1/cloudflare"
capabilities = ["read"]
}
# read tofu_module_reader gitea bot user ssh keys # read tofu_module_reader gitea bot user ssh keys
rule { rule {
path = "kvv1/gitea/tofu_module_reader" path = "kvv1/gitea/tofu_module_reader"
@@ -138,6 +143,6 @@ data "vault_policy_document" "app" {
} }
} }
resource "vault_policy" "app" { resource "vault_policy" "app" {
name = "${local.name}" name = local.name
policy = data.vault_policy_document.app.hcl policy = data.vault_policy_document.app.hcl
} }

View File

@@ -12,7 +12,7 @@ locals {
resource "vault_database_secret_backend_role" "role" { resource "vault_database_secret_backend_role" "role" {
backend = local.vault_mount_postgres.path backend = local.vault_mount_postgres.path
name = "${local.name}" name = local.name
db_name = "postgres" db_name = "postgres"
creation_statements = [ creation_statements = [
"CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}';", "CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}';",

View File

@@ -1,4 +1,5 @@
applications = [ applications = [
"webapp", "webapp",
"erp", "erp",
"cms",
] ]