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

fix: pass correct storage account URL to azure blob client #3387

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

okhaliavka
Copy link

@okhaliavka okhaliavka commented Jan 13, 2025

Fixes #3044

Description

When constructing a blob storage client, kaniko is passing the entire context url (e.g. https://accname.blob.core.windows.net/bucket/context.tar.gz) where just an account url (https://accname.blob.core.windows.net/) is expected. As a result, the bucket/context.tar.gz part gets duplicated in the final URL and the blob doesn't get found. This PR solves the issue by extracting just the account url from context url and using that to create an azure storage client.

The bug was most likely introduced in 16ed6b2.

I'm aware that this project is pretty much abandoned, but I still have a tiny glimmer of hope that this contribution will be reviewed 😅 .

Submitter Checklist

Azure blob storage isn't covered by unit/integration tests. Fixing that would require more time that I'm willing to spend without any certainty that this PR has a chance to be reviewed and merged.

  • Includes unit tests
  • Adds integration tests if needed.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

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.

Azure Blob Storage Context invalid path
1 participant