Skip to content

Commit

Permalink
fix: use postgres application user (#717)
Browse files Browse the repository at this point in the history
Signed-off-by: Kranium Gikos Mendoza <kraniumgikos.mendoza@iohk.io>
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
Signed-off-by: Milos Backonja <milos.backonja@iohk.io>
Co-authored-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
Co-authored-by: Milos Backonja <milos.backonja@iohk.io>
  • Loading branch information
3 people committed Sep 14, 2023
1 parent a79b4ab commit 63403a5
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

48 changes: 48 additions & 0 deletions infrastructure/charts/agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ spec:
name: castor-admin.{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.credentials.postgresql.acid.zalan.do
key: password
optional: false
- name: CASTOR_DB_APP_USER
valueFrom:
secretKeyRef:
name: castor-application-user.{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.credentials.postgresql.acid.zalan.do
key: username
optional: false
- name: CASTOR_DB_APP_PASSWORD
valueFrom:
secretKeyRef:
name: castor-application-user.{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.credentials.postgresql.acid.zalan.do
key: password
optional: false
- name: POLLUX_DB_HOST
value: "{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.{{.Release.Namespace}}"
- name: POLLUX_DB_PORT
Expand All @@ -68,6 +80,18 @@ spec:
name: pollux-admin.{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.credentials.postgresql.acid.zalan.do
key: password
optional: false
- name: POLLUX_DB_APP_USER
valueFrom:
secretKeyRef:
name: pollux-application-user.{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.credentials.postgresql.acid.zalan.do
key: username
optional: false
- name: POLLUX_DB_APP_PASSWORD
valueFrom:
secretKeyRef:
name: pollux-application-user.{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.credentials.postgresql.acid.zalan.do
key: password
optional: false
- name: CONNECT_DB_HOST
value: "{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.{{.Release.Namespace}}"
- name: CONNECT_DB_PORT
Expand All @@ -86,6 +110,18 @@ spec:
name: connect-admin.{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.credentials.postgresql.acid.zalan.do
key: password
optional: false
- name: CONNECT_DB_APP_USER
valueFrom:
secretKeyRef:
name: connect-application-user.{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.credentials.postgresql.acid.zalan.do
key: username
optional: false
- name: CONNECT_DB_APP_PASSWORD
valueFrom:
secretKeyRef:
name: connect-application-user.{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.credentials.postgresql.acid.zalan.do
key: password
optional: false
- name: AGENT_DB_HOST
value: "{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.{{.Release.Namespace}}"
- name: AGENT_DB_PORT
Expand All @@ -104,6 +140,18 @@ spec:
name: agent-admin.{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.credentials.postgresql.acid.zalan.do
key: password
optional: false
- name: AGENT_DB_APP_USER
valueFrom:
secretKeyRef:
name: agent-application-user.{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.credentials.postgresql.acid.zalan.do
key: username
optional: false
- name: AGENT_DB_APP_PASSWORD
valueFrom:
secretKeyRef:
name: agent-application-user.{{ .Values.database.postgres.managingTeam }}-prism-agent-postgres-cluster.credentials.postgresql.acid.zalan.do
key: password
optional: false
- name: DIDCOMM_SERVICE_URL
value: "https://{{ index .Values.ingress.applicationUrls 0 }}/prism-agent/didcomm"
- name: PRISM_NODE_HOST
Expand Down
12 changes: 8 additions & 4 deletions infrastructure/charts/agent/templates/postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,23 @@ spec:
castor-admin:
- superuser
- createdb
castor-application-user: []
castor-application-user:
- superuser
pollux-admin:
- superuser
- createdb
pollux-application-user: []
pollux-application-user:
- superuser
connect-admin:
- superuser
- createdb
connect-application-user: []
connect-application-user:
- superuser
agent-admin:
- superuser
- createdb
agent-application-user: []
agent-application-user:
- superuser
databases:
castor: castor-admin
pollux: pollux-admin
Expand Down
1 change: 0 additions & 1 deletion mercury/roots-id-mediator/didcomm-mediator
Submodule didcomm-mediator deleted from 9bdf88

0 comments on commit 63403a5

Please sign in to comment.