Skip to content
Snippets Groups Projects
Verified Commit f0abbd50 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

remove postgresql from password names

parent de634909
No related branches found
No related tags found
No related merge requests found
......@@ -5,14 +5,16 @@ metadata:
name: stackspin-single-sign-on-database-values
data:
values.yaml: |
auth:
rootPassword: '${database_root_password}'
persistence:
enabled: true
existingClaim: single-sign-on-database
initdbScripts:
setup.sql: |
CREATE USER hydra IDENTIFIED BY '${hydra_postgresql_password}';
CREATE USER kratos IDENTIFIED BY '${kratos_postgresql_password}';
CREATE USER stackspin IDENTIFIED BY '${dashboard_postgresql_password}';
CREATE USER hydra IDENTIFIED BY '${hydra_database_password}';
CREATE USER kratos IDENTIFIED BY '${kratos_database_password}';
CREATE USER stackspin IDENTIFIED BY '${dashboard_database_password}';
CREATE DATABASE kratos;
CREATE DATABASE hydra;
CREATE DATABASE stackspin;
......
......@@ -12,7 +12,7 @@ data:
password: ${userbackend_admin_password}
db:
hostname: single-sign-on-database-mariadb
password: ${dashboard_postgresql_password}
password: ${dashboard_database_password}
hydra-maester:
# Watches the flux-system namespace because that is where the app
......@@ -33,7 +33,7 @@ data:
secrets:
system:
- "${hydra_system_secret}"
dsn: "mysql://hydra:${hydra_postgresql_password}@tcp(single-sign-on-database-mariadb:3306)/hydra?parseTime=true&sql_mode=''"
dsn: "mysql://hydra:${hydra_database_password}@tcp(single-sign-on-database-mariadb:3306)/hydra?parseTime=true&sql_mode=''"
ingress:
public:
enabled: true
......@@ -55,7 +55,7 @@ data:
kratos:
kratos:
config:
dsn: "mysql://kratos:${kratos_postgresql_password}@tcp(single-sign-on-database-mariadb:3306)/kratos?parseTime=true&sql_mode=''"
dsn: "mysql://kratos:${kratos_database_password}@tcp(single-sign-on-database-mariadb:3306)/kratos?parseTime=true&sql_mode=''"
serve:
public:
base_url: https://sso.${domain}/api/
......
......@@ -4,9 +4,10 @@ kind: Secret
metadata:
name: stackspin-single-sign-on-variables
data:
dashboard_postgresql_password: "{{ 32 | generate_password | b64encode }}"
hydra_postgresql_password: "{{ 32 | generate_password | b64encode }}"
database_root_password: "{{ 32 | generate_password | b64encode }}"
dashboard_database_password: "{{ 32 | generate_password | b64encode }}"
hydra_database_password: "{{ 32 | generate_password | b64encode }}"
hydra_system_secret: "{{ 32 | generate_password | b64encode }}"
kratos_postgresql_password: "{{ 32 | generate_password | b64encode }}"
kratos_database_password: "{{ 32 | generate_password | b64encode }}"
kratos_session_secret: "{{ 32 | generate_password | b64encode }}"
userbackend_admin_password: "{{ 32 | generate_password | b64encode }}"
......@@ -210,7 +210,7 @@ KUBECONFIG={cluster_dir}/kube_config_cluster.yml
'onlyoffice_rabbitmq_password'],
'stackspin-single-sign-on-variables': [
'userbackend_admin_password',
'dashboard_postgresql_password',
'dashboard_database_password',
'hydra_system_secret'],
'stackspin-wordpress-variables': [
'wordpress_admin_password',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment