prime-rate-matt opened a new pull request, #77565: URL: https://github.com/apache/airflow/pull/77565
Workload Identity Federation (WIF) and Programmatic Access Token (PAT) authentication on a Snowflake connection both need `authenticator` to be set. Until now it could only be set in the Extra JSON, while the other connection settings, including **Workload Identity Provider**, have their own form fields. Someone could fill in the provider field, miss the JSON step, and end up with a connection that quietly used the default `snowflake` (password) authenticator. This PR adds an **Authenticator** field to the Snowflake connection form: - **Free text, not a dropdown:** the connector also accepts Okta URLs, so a fixed list of values would not work. The placeholder lists the common values: `snowflake (default), oauth, programmatic_access_token, WORKLOAD_IDENTITY`. It replaces the `authenticator` hint in the Extra JSON placeholder. - **Blank field falls back to `snowflake`:** a form field left empty is stored as `""`. `authenticator` is now read with `_get_field(...) or "snowflake"`, so the empty value is not sent to the connector. This also accepts the `extra__snowflake__authenticator` key name, like the other fields. - Regenerated `get_provider_info.py` from `provider.yaml`. The value is still stored in the connection extras, so existing connections, `SnowflakeSqlApiHook` and the Cortex Agent hook behave as before. related: #77068. That PR also sets `authenticator` automatically when `workload_identity_provider` is given. This PR is the smaller alternative without that inference: `authenticator` stays explicit, as in `snowflake-connector-python`. Tests cover the new form widget, a blank form field falling back to `snowflake`, and the `extra__snowflake__` key name. Each case fails without the change. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 5.5) Generated-by: Claude Code (Opus 5.5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
