Skip to content

Snowflake connection UI does not hide private_key_content in the Extra field and in the Private key (Text) field #42496

@TJaniF

Description

@TJaniF

Apache Airflow Provider(s)

snowflake

Versions of Apache Airflow Providers

apache-airflow-providers-snowflake==5.7.1

Apache Airflow version

2.10.2

Operating System

Debian GNU/Linux 12 (bookworm)

Deployment

Astronomer

Deployment details

No response

What happened

Noticed that the private_key_content as well as the Private key (Text) field are not masked upon editing a connection

image

(also the Private key (Text) field displays error and warning icons for valid keys, probably trying to display JSON)

What you think should happen instead

I think it should be masked in the text field and use RATHER_LONG_SENSITIVE_FIELD_PLACEHOLDER in the Extra field
Also it should not display warning icons for a valid key.

How to reproduce

  1. Create a Snowflake connection in the Airflow UI
  2. paste a value in the Private Key (Text) field
  3. Save the connection
  4. Edit the connection
  5. See the key

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions