Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .ci/pipelines/env_variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,19 @@ AZURE_DB_4_HOST=$(cat /tmp/secrets/AZURE_DB_4_HOST)
# Database TLS certificates (file paths to PEM files from Vault)
# Store paths instead of content to avoid "Argument list too long" shell errors
RDS_DB_CERTIFICATES_PATH="/tmp/secrets/rds-db-certificates.pem"
# The Vault copy of the RDS bundle goes stale when AWS rotates CAs (and GSM
# cannot hold the full global bundle, RHDHBUGS-3744), which fails TLS with
# SELF_SIGNED_CERT_IN_CHAIN. Merge in the official AWS global trust bundle;
# fall back to the Vault copy alone when the download fails.
if curl -fsSL --proto '=https' --proto-redir '=https' --retry 3 --max-time 30 -o /tmp/rds-global-bundle.pem "https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem"; then
# Keep the Vault path if writing the merged file fails entirely (errexit-safe).
if cat /tmp/rds-global-bundle.pem "$RDS_DB_CERTIFICATES_PATH" > /tmp/rds-db-certificates-merged.pem 2> /dev/null \
|| cp /tmp/rds-global-bundle.pem /tmp/rds-db-certificates-merged.pem; then
RDS_DB_CERTIFICATES_PATH="/tmp/rds-db-certificates-merged.pem"
fi
else
echo "WARNING: could not download the AWS RDS global certificate bundle; using the Vault copy only"
fi
AZURE_DB_CERTIFICATES_PATH="/tmp/secrets/azure-db-certificates.pem"

JUNIT_RESULTS="junit-results.xml"
Expand Down
Loading