Skip to content

Commit 551a83e

Browse files
authored
Merge pull request #118 from Sharpie/add-setup-osuosl-ca
Configure CA trust for OSUOSL S3
2 parents af3e338 + 637eec7 commit 551a83e

4 files changed

Lines changed: 66 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
name: Configure OSUOSL CA Certificate
3+
description: >-
4+
In July 2026, OSUOSL switched to using a TLS Certificate with a trust
5+
chain rooted at "emSign Root CA - G1". This poses a problem as the
6+
AWS CLI currently vendors an old CA bundle generated in 2018 that does
7+
not include this CA cert:
8+
9+
https://github.com/aws/aws-cli/issues/10389
10+
11+
This action writes the emSign CA certificate out to a file and then
12+
sets the path to that file in the AWS_CA_BUNDLE environment variable.
13+
The AWS CLI will read certificates from this variable, unless overriden
14+
by something like the "--ca-bundle" CLI flag.
15+
16+
runs:
17+
using: composite
18+
steps:
19+
- name: Set Up OSUOSL CA Certificate
20+
shell: bash
21+
run: |
22+
# Replace any backslashes with forward slashes so that a Windows path
23+
# is usable from both POSIX and WIN32 contexts.
24+
osuosl_ca="${RUNNER_TMP//\\//}/osuosl-ca.pem"
25+
26+
printf 'Writing OSUOSL CA bundle to: %s\n' "${osuosl_ca}"
27+
28+
cat <<'EOF' >"${osuosl_ca}"
29+
emSign Root CA - G1
30+
===================
31+
-----BEGIN CERTIFICATE-----
32+
MIIDlDCCAnygAwIBAgIKMfXkYgxsWO3W2DANBgkqhkiG9w0BAQsFADBnMQswCQYDVQQGEwJJTjET
33+
MBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRl
34+
ZDEcMBoGA1UEAxMTZW1TaWduIFJvb3QgQ0EgLSBHMTAeFw0xODAyMTgxODMwMDBaFw00MzAyMTgx
35+
ODMwMDBaMGcxCzAJBgNVBAYTAklOMRMwEQYDVQQLEwplbVNpZ24gUEtJMSUwIwYDVQQKExxlTXVk
36+
aHJhI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yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ jobs:
116116
rm -rf output
117117
bundle exec rake "vox:build[${BUILD_REF}]"
118118
119+
- name: Configure OSUOSL CA Certificate for S3
120+
if: contains(secrets.S3_ENDPOINT_URL, "s3.osuosl.org")
121+
uses: ./.github/actions/setup-osuosl-ca
122+
119123
- name: Upload output to S3
120124
run: |
121125
bundle exec rake vox:upload

.github/workflows/build_ezbake_fips.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ jobs:
111111
rm -rf output
112112
bundle exec rake "vox:build[${BUILD_REF}]"
113113
114+
- name: Configure OSUOSL CA Certificate for S3
115+
if: contains(secrets.S3_ENDPOINT_URL, "s3.osuosl.org")
116+
uses: ./.github/actions/setup-osuosl-ca
117+
114118
- name: Upload output to S3
115119
run: |
116120
bundle exec rake vox:upload

.github/workflows/build_vanagon.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,12 @@ jobs:
285285
name: build-artifacts-${{ steps.build.outputs.describe }}-${{ matrix.platform }}
286286
path: ${{ inputs.working_directory }}/output/
287287

288+
- name: Configure OSUOSL CA Certificate for S3
289+
if: >-
290+
inputs.upload_to_s3 &&
291+
contains(secrets.S3_ENDPOINT_URL, "s3.osuosl.org")
292+
uses: ./.github/actions/setup-osuosl-ca
293+
288294
- name: Upload output to S3
289295
if: ${{ inputs.upload_to_s3 }}
290296
working-directory: ${{ inputs.working_directory }}

0 commit comments

Comments
 (0)