Skip to content

Commit

Permalink
Merge pull request #1352 from GiganticMinecraft/add_db_password_on_pr…
Browse files Browse the repository at this point in the history
…_review

add root password
  • Loading branch information
outductor authored Oct 2, 2023
2 parents 5bfb4d7 + fb95339 commit c34fc7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: mariadb
spec:
rootPasswordSecretKeyRef:
name: mariadb
name: mariadb-pr-review-password
key: root-password

database: seichiassist
Expand Down
6 changes: 6 additions & 0 deletions terraform/onp_cluster_secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ resource "helm_release" "onp_minecraft_mariadb_monitoring_password" {
}
}

resource "random_password" "minecraft__pr_review_mariadb_root_password" {
length = 16
special = false // MariaDBのパスワードがぶっ壊れて困るので記号を含めない
}

resource "random_password" "minecraft__pr_review_mariadb_password" {
length = 16
special = false // MariaDBのパスワードがぶっ壊れて困るので記号を含めない
Expand All @@ -222,6 +227,7 @@ resource "helm_release" "onp_minecraft__pr_review_mariadb_password" {
matchNamespace:
- seichi-debug-minecraft-on-seichiassist-pr-*
data:
root-password: ${base64encode(random_password.minecraft__pr_review_mariadb_root_password.result)}
mcserver-password: ${base64encode(random_password.minecraft__pr_review_mariadb_password.result)}
EOS
]
Expand Down

0 comments on commit c34fc7f

Please sign in to comment.