Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imghelper: set AWS_CA_BUNDLE if cert is available #443

Merged
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
5 changes: 5 additions & 0 deletions twoliter/embedded/imghelper
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,11 @@ sbsetup_wrapup() {
}

sbsetup_aws_profile() {
# Use the CA bundle override as the AWS CA cert bundle, if present.
if [[ -s "/root/certs/ca-bundle.crt" ]]; then
cp /root/certs/ca-bundle.crt /etc/pki/tls/cert.pem
export AWS_CA_BUNDLE=/etc/pki/tls/cert.pem
fi
# Set AWS environment variables from build secrets, if present.
local var val
for var in AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN; do
Expand Down
Loading