Skip to content

Commit

Permalink
feature: add the AWS RDS cert bundles (#329)
Browse files Browse the repository at this point in the history
* add the AWS RDS cert bundles

* store the bundle in the repo directly

* remove redundant pushd/popd
  • Loading branch information
coreypurcell authored Nov 6, 2024
1 parent 2863716 commit 18f7a20
Show file tree
Hide file tree
Showing 6 changed files with 7,610 additions and 0 deletions.
2,528 changes: 2,528 additions & 0 deletions heroku-20/rds-global-bundle.pem

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions heroku-20/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,14 @@ apt-get install -y --no-install-recommends "${packages[@]}"

cp /build/imagemagick-policy.xml /etc/ImageMagick-6/policy.xml

# Install AWS RDS global CA bundle (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html#UsingWithRDS.SSL.CertificatesAllRegions)
mkdir -p /usr/local/share/ca-certificates/rds-ca-certs
awk '
split_after == 1 {n++;split_after=0}
/-----END CERTIFICATE-----/ {split_after=1}
{print > "/usr/local/share/ca-certificates/rds-ca-certs/rds-ca" n ".crt"}' < /build/rds-global-bundle.pem
update-ca-certificates

# Install ca-certificates-java so that the JVM buildpacks can configure Java apps to use the Java certs
# store in the base image instead of the one that ships in each JRE release, allowing certs to be updated
# via base image updates. Generation of the `cacerts` file occurs in a post-install script which requires
Expand Down
Loading

0 comments on commit 18f7a20

Please sign in to comment.