-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Enable DefaultAzureCredential authentication for Azure filesystem block #7513
Enable DefaultAzureCredential authentication for Azure filesystem block #7513
Conversation
✅ Deploy Preview for prefect-docs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
7cf604c
to
3172e2a
Compare
Hi folks, is there anything you need me to do to have this merged? |
Co-authored-by: Terrence Dorsey <[email protected]>
3172e2a
to
4caf7c3
Compare
Hi @samdyzon! Looks like this got a little lost. Is it feasible to add a test covering this change? Can you resolve the merge conflicts with |
Hi @madkinsz, apologies - all of these notifications came through in the middle of the night for me, but I'm glad this has been merged. Thanks! |
* 'main' of https://github.com/prefecthq/prefect: Bump @playwright/test from 1.30.0 to 1.31.1 in /ui (PrefectHQ#8663) Bump @prefecthq/prefect-ui-library from 1.1.9 to 1.1.10 in /ui (PrefectHQ#8661) Bump vite from 4.1.2 to 4.1.4 in /ui (PrefectHQ#8662) Bump eslint from 8.34.0 to 8.35.0 in /ui (PrefectHQ#8664) Fix of a typo - removed repeated word (PrefectHQ#8654) Enable DefaultAzureCredential authentication for Azure filesystem block (PrefectHQ#7513) Improve supervisor repr for debugging (PrefectHQ#8633)
…aceful-agent * 'patch-1' of https://github.com/ddelange/prefect: (25 commits) Enhancement: Track flow run id when generating task run results (PrefectHQ#8674) Fix loading of existing deployment descriptions from the server (PrefectHQ#8675) Update Dask logo (PrefectHQ#8669) Update `send_call` to `send_call_to_supervisor` (PrefectHQ#8653) Add Netlify Edge function to proxy to Segment (PrefectHQ#8657) Add security headers for docs (PrefectHQ#8655) Override analytics block instead of partial (PrefectHQ#8656) Add description flag to prefect deployment build CLI command (PrefectHQ#8603) Add support for yaml config strings to `KubernetesClusterConfig` (PrefectHQ#8643) Change lazy loads from joined to selectin (PrefectHQ#8659) Add timeout support to supervisors (PrefectHQ#8649) Minor markdown link fix in orchestration docs (PrefectHQ#8660) Allow more ports Bump @playwright/test from 1.30.0 to 1.31.1 in /ui (PrefectHQ#8663) Bump @prefecthq/prefect-ui-library from 1.1.9 to 1.1.10 in /ui (PrefectHQ#8661) Bump vite from 4.1.2 to 4.1.4 in /ui (PrefectHQ#8662) Bump eslint from 8.34.0 to 8.35.0 in /ui (PrefectHQ#8664) Fix of a typo - removed repeated word (PrefectHQ#8654) Enable DefaultAzureCredential authentication for Azure filesystem block (PrefectHQ#7513) Improve supervisor repr for debugging (PrefectHQ#8633) ...
Background
Recent updates to the Azure filesystem block introduced the ability to authenticate with Azure via a service principal (#6838). This short PR extends the parameters of the Azure filesystem block by exposing the
anon
parameter of the ALDFS filesystem class which is the main parameter required to tell ALDFS to use theDefaultAzureCredential
authentication mechanism.DefaultAzureCredential attempts to automatically determine what type of credentials to use based on the execution environment, and enables authentication via the following:
Problem Statement
ALDFS exposes a single parameter,
anon
, with a default value ofTrue
. If a user provides nocredential
,sas_token
, andaccount_key
, andanon
isFalse
then ADLFS will useDefaultAzureCredential
. See the ADLFS spec.py file for details.Solution
By exposing the
anon
parameter and leaving it default to True, this change is a backwards-compatible method for enabling additional authentication mechanisms that are currently impossible with the Azure filesystem block, including:Notes
I've looked at PR #6838 as a reference for the changes in this PR, the only thing I don't know how to do is to update the block test hash. I was also unable to test this change locally because attempting to run
prefect block register -m prefect.filesystems
throws an error about modifying fields.Checklist
<link to issue>
"fix
,feature
,enhancement