Skip to content

Snowflake: forward workload_identity_impersonation_path to the connector #74590

Open

Description

@spcvalente

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

Activity

  1. boring-cyborg commented on Oct 12, 2026

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

  2. spcvalente commented on Oct 12, 2026

    @spcvalente
    Author

    PR: #74591

  3. added a commit that references this issue on Oct 12, 2026
    cb3b78f
  4. added 12 commits that reference this issue on Oct 13, 2026
    15a62da
    674ec09
    f8c68c4
    9110bef
    d33ea9e
    2cc22a9
    037fb5d
    b94e400
    8533e38
    587a64b
    ae1daaf
    c3808ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions