spcvalente opened a new issue, #74590:
URL: https://github.com/apache/airflow/issues/74590

   ### Description
   
   `SnowflakeHook` supports Workload Identity Federation (#68107) but only 
forwards `workload_identity_provider`, `token` and `token_file_path`. 
`snowflake-connector-python>=4.0.0` also accepts 
`workload_identity_impersonation_path`: roles (AWS) or service accounts (GCP) 
to impersonate before authenticating, so Snowflake trusts the last identity 
instead of the workload's own.
   
   Proposal: read `workload_identity_impersonation_path` from the connection 
extras (list or comma-separated string) and pass it to the connector.
   
   ### Use case
   
   Local Airflow runs with developer SSO credentials for AWS. Snowflake should 
trust one dedicated role per deployment, not every developer's SSO role. With 
an impersonation path, the connection assumes that role for Snowflake only, and 
everything else keeps using the SSO credentials. Today this needs a custom hook.
   
   ### Are you willing to submit a PR?
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to