Skip to content

Conversation

@mxinden
Copy link
Member

@mxinden mxinden commented Feb 13, 2023

The dockerBuildWrapper script enables caching based on the AWS_BUCKET environment variable. When calling the libp2p ping interop test with a bucket name but no AWS credentials, this leads to the script enabling caching even though the workflow does not have access to AWS.

With this commit the environment variable AWS_BUCKET is only set when credentials are available and thus the dockerBuildWrapper script does not enable caching then workflow does nothave access to AWS.

Not deeply familiar with the setup. Let me know in case there are cleaner solutions.

See also libp2p/rust-libp2p#3462 and the corresponding failure on its first commit.

The `dockerBuildWrapper` script enables caching based on the `AWS_BUCKET`
environment variable. When calling the `libp2p ping interop test` with a bucket
name but no AWS credentials, this leads to the script enabling caching even
though the workflow does not have access to AWS.

With this commit the environment variable `AWS_BUCKET` is only set when
credentials are available and thus the `dockerBuildWrapper` script does not enable
caching then workflow does nothave access to AWS.
@MarcoPolo MarcoPolo merged commit b0d8a55 into libp2p:master Feb 13, 2023
@mxinden
Copy link
Member Author

mxinden commented Feb 13, 2023

🙏 thanks for the quick help @MarcoPolo!

codemaestro64 pushed a commit to codemaestro64/test-plans that referenced this pull request Oct 28, 2025
The `dockerBuildWrapper` script enables caching based on the `AWS_BUCKET`
environment variable. When calling the `libp2p ping interop test` with a bucket
name but no AWS credentials, this leads to the script enabling caching even
though the workflow does not have access to AWS.

With this commit the environment variable `AWS_BUCKET` is only set when
credentials are available and thus the `dockerBuildWrapper` script does not enable
caching then workflow does nothave access to AWS.
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.

2 participants