Skip to content

[v11] Fix yum repo cleanup#17338

Merged
wadells merged 1 commit into
branch/v11from
walt/v11-fix-yum-pubish
Oct 13, 2022
Merged

[v11] Fix yum repo cleanup#17338
wadells merged 1 commit into
branch/v11from
walt/v11-fix-yum-pubish

Conversation

@wadells
Copy link
Copy Markdown
Contributor

@wadells wadells commented Oct 12, 2022

Backports #17334

Previously, "${ARTIFACT_PATH}" was interpreted as Drone variable substitution, resulting in rm -rf "${ARTIFACT_PATH}/*" becoming rm -rf "/*", which deleted credentials on the filesystem. This causes the error seen here:

+ rm -rf "/*"
+ aws s3 sync --no-progress --delete --exclude "*" --include "*.rpm*" s3://$AWS_S3_BUCKET/teleport/tag/10.3.2/ "$ARTIFACT_PATH"
fatal error: An error occurred (AuthorizationHeaderMalformed) when calling the ListObjectsV2 operation: The authorization header is malformed; a non-empty Access Key (AKID) must be provided in the credential.

https://drone.platform.teleport.sh/gravitational/teleport/16371/2/5

Testing

See the testing in #17334

@wadells wadells requested review from fheinecke and r0mant October 12, 2022 16:32
@wadells wadells mentioned this pull request Oct 12, 2022
@github-actions github-actions Bot requested review from klizhentas and zmb3 October 12, 2022 16:33
@wadells wadells force-pushed the walt/v11-fix-yum-pubish branch from 35eccfa to b99a02b Compare October 12, 2022 18:15
@wadells wadells enabled auto-merge (squash) October 12, 2022 18:16
@wadells wadells force-pushed the walt/v11-fix-yum-pubish branch 2 times, most recently from e67d318 to 6205713 Compare October 12, 2022 20:17
Previously, "${ARTIFACT_PATH}" was interpreted as Drone variable
subsitution, resulting in "rm -rf ${ARTIFACT_PATH}/*" becoming
"rm -rf /*", which deleted credentials on the filesystem.
@reedloden reedloden force-pushed the walt/v11-fix-yum-pubish branch from 6205713 to d359a20 Compare October 12, 2022 23:57
@wadells wadells merged commit 5bd4709 into branch/v11 Oct 13, 2022
@r0mant r0mant deleted the walt/v11-fix-yum-pubish branch October 13, 2022 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants