Skip to content

Conversation

@JAVGan
Copy link
Collaborator

@JAVGan JAVGan commented May 26, 2025

This commit changes the Azure's implementation utils.is_sas_present function to have a new boolean argument named base_only which defaults to False. When set as True it will cause the SAS comparison to not check for its arguments equivalence, rather just whether the SAS URI part is the same or not.

It also changes the AzurePublishingMetadata to include a new property named check_base_sas_only to transmit its boolean value to the utils.is_sas_present function.

In practice, this allows the library to have a more permissive SAS comparison when required while maintaning the existing behavior as default.

This commit changes the Azure's implementation `utils.is_sas_present`
function to have a new boolean argument named `base_only` which defaults
to `False`. When set as `True` it will cause the SAS comparison to not
check for its arguments equivalence, rather just whether the SAS URI
part is the same or not.

It also changes the `AzurePublishingMetadata` to include a new property
named `check_base_sas_only` to transmit its boolean value to the
`utils.is_sas_present` function.

In practice, this allows the library to have a more permissive SAS
comparison when required while maintaning the existing behavior as
default.

Signed-off-by: Jonathan Gangi <jgangi@redhat.com>
@JAVGan JAVGan requested review from jajreidy and lslebodn as code owners May 26, 2025 14:19
@JAVGan
Copy link
Collaborator Author

JAVGan commented May 26, 2025

@lslebodn @jajreidy PTAL.

This is part of the effort to support CoreVMImages publishing. If approved I'll need to release a new version of it and change the pub-tooling to use this new parameter

@JAVGan
Copy link
Collaborator Author

JAVGan commented May 26, 2025

@ashwini3326 PTAL as well

@JAVGan JAVGan requested a review from ashwgit May 26, 2025 18:07
Copy link
Collaborator

@lslebodn lslebodn left a comment

Choose a reason for hiding this comment

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

LGTM

@JAVGan JAVGan merged commit 2f208e6 into main May 26, 2025
23 checks passed
@JAVGan JAVGan deleted the simplify_sas branch May 26, 2025 20:22
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