feat:[CI-22994]: Add Azure cache credential handling and bump BuildKit to 1.0.19#108
Open
satyakota04 wants to merge 4 commits into
Open
feat:[CI-22994]: Add Azure cache credential handling and bump BuildKit to 1.0.19#108satyakota04 wants to merge 4 commits into
satyakota04 wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for self-hosted Azure Blob Storage credentials for Buildx cache import/export and updates BuildKit to a version that includes Azure cache backend support.
What Changed
Added Azure Self-Hosted Cache Credential Inputs
Introduced the following new environment variables:
PLUGIN_HARNESS_SELF_HOSTED_AZURE_ACCOUNT_KEYPLUGIN_HARNESS_SELF_HOSTED_AZURE_TENANT_IDPLUGIN_HARNESS_SELF_HOSTED_AZURE_CLIENT_IDPLUGIN_HARNESS_SELF_HOSTED_AZURE_CLIENT_SECRETPLUGIN_HARNESS_SELF_HOSTED_AZURE_OIDC_TOKENThese inputs are now wired into the plugin build configuration.
Added Azure Placeholder Sanitization for Cache Arguments
Implemented support for replacing Azure credential placeholders with runtime values:
harness_placeholder_azure_credswhen credentials are provided.account_keytenant_idclient_idclient_secretoidc_tokenAdded Unit Tests
Added test coverage for:
Updated BuildKit Version
harness/buildkit:1.0.18Why
This change enables
type=azureBuildx cache import/export support in self-hosted environments while ensuring credential injection remains secure and consistent with the existing S3 and GCP cache credential handling mechanisms.