Skip to content

[StorageMover] Assign identity to S3 HMAC endpoint creation#10096

Open
sssash18 wants to merge 3 commits into
Azure:mainfrom
sssash18:fix/storage-mover-s3-hmac-identity
Open

[StorageMover] Assign identity to S3 HMAC endpoint creation#10096
sssash18 wants to merge 3 commits into
Azure:mainfrom
sssash18:fix/storage-mover-s3-hmac-identity

Conversation

@sssash18

Copy link
Copy Markdown
Member

Related command

az storage-mover endpoint create-for-s3-with-hmac

Description

  • Assign a system-assigned managed identity when creating an S3WithHMAC endpoint, matching storage-container endpoint behavior.
  • Add focused unit coverage for the create arguments.
  • Release the storage-mover extension as patch version 1.3.1.

Testing

  • python -m pytest -q test_storage_mover_unit.py test_storage_mover.py::StorageMoverScenario::test_storage_mover_endpoint_s3_with_hmac_scenarios
  • azdev style storage-mover
  • python scripts/ci/test_index.py -q

General Guidelines

  • Have you run azdev style storage-mover locally?
  • Have you run python scripts/ci/test_index.py -q locally?
  • My extension version conforms to the Extension version schema

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cab812cd-ce68-400e-95d4-9cd71f5f4805
Copilot AI review requested due to automatic review settings July 10, 2026 09:05
@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jul 10, 2026

Copy link
Copy Markdown
️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the storage-mover extension to assign a system-assigned managed identity when creating an S3WithHMAC endpoint (az storage-mover endpoint create-for-s3-with-hmac), aligning its behavior with the existing storage-container endpoint creation logic. It also adds a small unit test to validate the new argument wiring and bumps the extension patch version.

Changes:

  • Set mi_system_assigned = "True" during endpoint_create_for_s3_with_hmac so the endpoint is created with a system-assigned identity.
  • Add a focused unit test asserting the mi_system_assigned argument is passed to the generated Create command.
  • Bump extension version to 1.3.1 and add a corresponding HISTORY.rst entry.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/storage-mover/setup.py Bumps the extension version to 1.3.1.
src/storage-mover/HISTORY.rst Documents the 1.3.1 change in release notes.
src/storage-mover/azext_storage_mover/tests/latest/test_storage_mover_unit.py Adds unit coverage ensuring system identity is passed for S3-with-HMAC endpoint creation.
src/storage-mover/azext_storage_mover/custom.py Applies system-assigned identity flag during S3-with-HMAC endpoint creation.

@yonzhan
yonzhan requested a review from Pan-Qi July 10, 2026 09:38
@yonzhan

yonzhan commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

StorageMover

@Pan-Qi

Pan-Qi commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cab812cd-ce68-400e-95d4-9cd71f5f4805
@sssash18

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 10096 in repo Azure/azure-cli-extensions

@sssash18

Copy link
Copy Markdown
Member Author

@Pan-Qi , merged main into PR branch to fix failing pipelines

@Pan-Qi

Pan-Qi commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@Pan-Qi

Pan-Qi commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@sssash18 please re-record tests and fix the linting issue

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f8279c95-dd94-46c7-a050-595f463e7abe
@sssash18

Copy link
Copy Markdown
Member Author

@sssash18 please re-record tests and fix the linting issue

@Pan-Qi the tests are passing locally, can you trigger the pipeline once again please ?

@yonzhan

yonzhan commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants