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

trim leading slash before uploading chains to S3 #969

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Conversation

jmhodges
Copy link
Contributor

@jmhodges jmhodges commented Sep 4, 2024

The stage environment went down for a while. The details of why can be
found in AUT-231.

One of the triggers was that aws-go-sdk-v2 no longer removes leading
slashes from uploaded S3 key names like the v1 version of the library
did. That caused some cascading failures leading to too many AWS
CloudHSM slots being consumed.

This change trims the leading slashes from the uploaded S3 key names for
the contentsignaturepki certificate chains.

This change also gets us closer to not needing to be careful about
remembering to end chainUploadLocation strings with a slash with an
application of path.Join. The file:// handling elsewhere is still
bugged and so are the places where we do X5U + chainName.

Updates AUT-233
Updates AUT-231

@jmhodges jmhodges marked this pull request as ready for review September 4, 2024 07:31
@jmhodges jmhodges requested review from a team as code owners September 4, 2024 07:31
@jmhodges jmhodges requested review from alexcottner and removed request for a team September 4, 2024 07:31
The stage environment went down for a while. The details of why can be
found in AUT-231.

One of the triggers was that aws-go-sdk-v2 no longer removes leading
slashes from uploaded S3 key names like the v1 version of the library
did. That caused some cascading failures leading to too many AWS
CloudHSM slots being consumed.

This change trims the leading slashes from the uploaded S3 key names for
the contentsignaturepki certificate chains.

This change also gets us closer to not needing to be careful about
remembering to end chainUploadLocation strings with a slash with an
application of `path.Join`. The `file://` handling elsewhere is still
bugged and so are the places where we do `X5U + chainName`.

Updates AUT-233
Updates AUT-231
@jbuck jbuck merged commit 2a91bf5 into main Sep 4, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants