Skip to content

Commit be30ebf

Browse files
authored
feat(deployment): enable SSL during migration (#267)
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
1 parent 3112af6 commit be30ebf

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

deployment/chainloop/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Chainloop is an open source software supply chain control plane, a
44

55
type: application
66
# Bump the patch (not minor, not major) version on each change in the Chart Source code
7-
version: 1.9.0
7+
version: 1.9.1
88
# Do not update appVersion, this is handled automatically by the release process
99
appVersion: v0.14.0
1010

deployment/chainloop/templates/_helpers.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ Return the Postgresql connection string
182182
Return the Postgresql connection string for Atlas migration
183183
*/}}
184184
{{- define "controlplane.database.atlas_connection_string" -}}
185-
{{- printf "postgres://%s:%s@%s:%s/%s?sslmode=disable" (include "controlplane.database.user" .) (include "controlplane.database.escapedPassword" .) (include "controlplane.database.host" .) (include "controlplane.database.port" .) (include "controlplane.database.name" .) }}
185+
{{- $connStr := printf "postgres://%s:%s@%s:%s/%s" (include "controlplane.database.user" .) (include "controlplane.database.escapedPassword" .) (include "controlplane.database.host" .) (include "controlplane.database.port" .) (include "controlplane.database.name" .) }}
186+
{{- .Values.controlplane.migration.ssl | ternary $connStr (printf "%s?sslmode=disable" $connStr) }}
186187
{{- end -}}
187188

188189
{{/*

deployment/chainloop/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ controlplane:
113113
repository: ghcr.io/chainloop-dev/chainloop/control-plane-migrations
114114
# Overrides the image tag whose default is the chart appVersion.
115115
# tag: latest
116+
# Run the migration job forcing SSL, required in AWS RDS for PostgreSQL 15
117+
ssl: false
116118

117119
## @skip controlplane.serviceAccount
118120
serviceAccount:

0 commit comments

Comments
 (0)