Skip to content

Allow users to provide implicit managed identity to Azure Batch when pool identity is set to true #6144

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

adamrtalbot
Copy link
Collaborator

It turns out Fusion can automatically pick up a managed identity that is available, however in the first iteration we insisted users provide an explicit identity.

If we avoid setting FUSION_AZ_MSI_CLIENT_ID fusion will pick up this identity and authenticate to Azure Storage automatically, with no details shared externally.

I've overloaded the config item to allow users to set it to 'true', which will avoid setting FUSION_AZ_MSI_CLIENT_ID and enable Fusion to do this.

This isn't a great implementation, it should probably use a dedicated config item like AzManagedIdentityOpts does for Nextflow itself, but it's a POC that allows me to test the methods.

Signed-off-by: adamrtalbot [email protected]

Hi! Thanks for contributing to Nextflow.

When submitting a Pull Request, please sign-off the DCO [1] to certify that you are the author of the contribution and you adhere to Nextflow's open source license [2] by adding a Signed-off-by line to the contribution commit message. See [3] for more details.

  1. https://developercertificate.org/
  2. https://github.com/nextflow-io/nextflow/blob/master/COPYING
  3. https://github.com/apps/dco

…pool identity is set to true

It turns out Fusion can automatically pick up a managed identity that is available, however in the first iteration we insisted users provide an explicit identity.

If we avoid setting FUSION_AZ_MSI_CLIENT_ID fusion will pick up this identity and authenticate to Azure Storage automatically, with no details shared externally.

I've overloaded the config item to allow users to set it to 'true', which will avoid setting FUSION_AZ_MSI_CLIENT_ID and enable Fusion to do this.

This isn't a great implementation, it should probably use a dedicated config item like AzManagedIdentityOpts does for Nextflow itself, but it's a POC that allows me to test the methods.

Signed-off-by: adamrtalbot <[email protected]>
@adamrtalbot adamrtalbot requested a review from a team as a code owner May 30, 2025 10:32
Copy link

netlify bot commented May 30, 2025

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 8a49417
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/6839b1c13f814a0008cb11bd
😎 Deploy Preview https://deploy-preview-6144--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Co-authored-by: Paolo Di Tommaso <[email protected]>
Signed-off-by: Adam Talbot <[email protected]>
@pditommaso pditommaso force-pushed the master branch 3 times, most recently from b4b321e to 069653d Compare June 4, 2025 18:54
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