Skip to content

fix: Update minio-go to fix bug in AWS STS auth #4056

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

Merged
merged 3 commits into from
Mar 27, 2025

Conversation

simonswine
Copy link
Contributor

@simonswine simonswine commented Mar 27, 2025

With the upgrade of objstore libraries from #3954 we introduced a bug #4050.

This fixes the underlying problem and adds a tests to validate that form of auth.

@simonswine simonswine added type/bug Something isn't working backport release/v1.12 This label will backport a merged PR to the release/v1.12 branch backport release/v1.13 This label will backport a merged PR to the release/v1.13 branch labels Mar 27, 2025
@simonswine simonswine marked this pull request as ready for review March 27, 2025 09:11
@simonswine simonswine requested a review from a team as a code owner March 27, 2025 09:11
Copy link
Contributor

This PR must be merged before a backport PR will be created.

1 similar comment
Copy link
Contributor

This PR must be merged before a backport PR will be created.

With the upgrade of objstore libraries from grafana#3954 we introduced bug

This fixes the underlying problem and adds a tests to validate that form
of auth.
@simonswine simonswine force-pushed the 20250326_s3-auth-issue branch from b9a5bee to 3078277 Compare March 27, 2025 09:13
Copy link
Collaborator

@kolesnikovae kolesnikovae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks for solving this!

@simonswine simonswine merged commit 0d4abec into grafana:main Mar 27, 2025
20 checks passed
Copy link
Contributor

The backport to release/v1.12 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-4056-to-release/v1.12 origin/release/v1.12
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x 0d4abec3875dde22b5c4255a0a4c56f81d1ec79a

When the conflicts are resolved, stage and commit the changes:

git add . && git cherry-pick --continue

If you have the GitHub CLI installed:

# Push the branch to GitHub:
git push --set-upstream origin backport-4056-to-release/v1.12
# Create the PR body template
PR_BODY=$(gh pr view 4056 --json body --template 'Backport 0d4abec3875dde22b5c4255a0a4c56f81d1ec79a from #4056{{ "\n\n---\n\n" }}{{ index . "body" }}')
# Create the PR on GitHub
echo "${PR_BODY}" | gh pr create --title '[release/v1.12] fix: Update minio-go to fix bug in AWS STS auth' --body-file - --label 'type/bug' --label 'backport' --base release/v1.12 --milestone release/v1.12 --web

Or, if you don't have the GitHub CLI installed (we recommend you install it!):

# Push the branch to GitHub:
git push --set-upstream origin backport-4056-to-release/v1.12

# Create a pull request where the `base` branch is `release/v1.12` and the `compare`/`head` branch is `backport-4056-to-release/v1.12`.

# Remove the local backport branch
git switch main
git branch -D backport-4056-to-release/v1.12

github-actions bot pushed a commit that referenced this pull request Mar 27, 2025
* fix: Update minio-go to fix bug in AWS STS auth

With the upgrade of objstore libraries from #3954 we introduced bug

This fixes the underlying problem and adds a tests to validate that form
of auth.

* lint

* Be more specific about the format

(cherry picked from commit 0d4abec)
@sberz
Copy link

sberz commented Mar 27, 2025

Thanks for the fixing this!

I build a container image from this PR (ghcr.io/sberz/pyroscope:20250326_s3-auth-issue-3cf63125c) and deployed it to our development environment.
With this version Pyroscope can access S3 again 😄

simonswine added a commit that referenced this pull request Mar 27, 2025
* fix: Update minio-go to fix bug in AWS STS auth

With the upgrade of objstore libraries from #3954 we introduced bug

This fixes the underlying problem and adds a tests to validate that form
of auth.

* lint

* Be more specific about the format

(cherry picked from commit 0d4abec)

Co-authored-by: Christian Simon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release/v1.12 This label will backport a merged PR to the release/v1.12 branch backport release/v1.13 This label will backport a merged PR to the release/v1.13 branch backport-failed type/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants