Skip to content

Sensitive data from extra fields is visible in Edit Connection window #53410

Open

Description

@CarbonRK

Apache Airflow version

3.0.3

If "Other Airflow 2 version" selected, which one?

No response

What happened?

After upgrading Airflow from version 3.0.2 to 3.0.3 sensitive data in extra fields and extra fields JSON is visible in edit connection page.

What you think should happen instead?

Sensitive data should be masked with ***

How to reproduce

Enter Edit Connection window in Airflow UI.

Operating System

Ubuntu 24.04

Versions of Apache Airflow Providers

No response

Deployment

Other Docker-based deployment

Deployment details

Airflow deployed with Docker Swarm.
Settings in airflow.cfg:

  • hide_sensitive_var_conn_fields = True

I also added the following after realising the issue occurred::

  • sensitive_var_conn_names = private_key,private_key_passphrase
    However, this did not change anything.

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:bug
    needs-triage
    on Jul 16, 2025
  2. added
    area:UI
    on Jul 16, 2025
  3. potiuk commented on Jul 17, 2025

    @potiuk
    Member

    I think we could potentially mask sensitive data in fields, but masking them in JSON is likely not a good idea. Not a bug BTW. This is a new feature. When you edit connections, you should be able to see all fields (including sensitive ones) - password is only masked in order to avoid someone standing behind your back read the password - but other than that you can reveal and see it anyway - the settings you refer to are only for masking thing in logs. But yeah, I guess in the UI we could also mask sensitive fields to avoid this scenario of someone behind your back looking at your screen while you are editing the connection. New feature. not a bug. Marking as "good first issue".

  4. added
    type:new-feature
    kind:feature
    and removed
    kind:bug
    needs-triage
    on Jul 17, 2025
  5. CarbonRK commented on Jul 17, 2025

    @CarbonRK
    Author

    Oh, that's interesting what you wrote, @potiuk. When we had Airflow 3.0.2 deployed, the fields 'private_key' and 'private_key_passphrase' were actually masked with '***', so I thought it was a new feature compared to Airflow 2.8.4, which we had deployed earlier. However, after upgrading to 3.0.3, the field masking disappeared, so I thought it was a bug in the newer Airflow version.
    I'll try deploying a test instance of 3.0.2 to see what happens.

  6. potiuk commented on Jul 17, 2025

    @potiuk
    Member

    Interesting. Yes

  7. CarbonRK commented on Jul 18, 2025

    @CarbonRK
    Author

    Interesting. Yes

    Hey @potiuk, just a quick update: I've deployed the test instance of Airflow 3.0.2, and here's what the Edit Connection window looks like after adding a new connection.
    Now, a question: Is hiding those fields a feature or a bug in version 3.0.2? :P
    The configuration files are the same, except that I have removed this in order to have the exact same environment as before the update to version 3.0.3:

    sensitive_var_conn_names = private_key,private_key_passphrase

    Image Image
  8. potiuk commented on Jul 19, 2025

    @potiuk
    Member

    I think there was a bug in one of the previous versions that not even masked the fields but replaced them with *** when you updated other fields. You can take a look at the changelog to find out . Likely what you see there is your passwords got replaced by *** and do not work any more.

  9. potiuk commented on Jul 19, 2025

    @potiuk
    Member

    And it does not matter if it is a bug or feature - it's marked as good first issue and is up for grabs for anyone who would like to implement it (yourself including). Whether it's a bug or feature does not really matter, it still needs someone to implement it.

  10. jasneetsingh6114 commented on Jul 19, 2025

    @jasneetsingh6114

    Hey @potiuk can you assign this issue to me. I would like to work on this issue

  11. potiuk commented on Jul 19, 2025

    @potiuk
    Member

    Feel free

  12. removed
    type:new-feature
    on Nov 29, 2025
  13. potiuk commented on Mar 2, 2026

    @potiuk
    Member

    @jasneetsingh6114 We are unassigning you from this issue as part of our updated assignment policy.

    This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.

    We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.

  14. bhavika-reddy commented on Jun 2, 2026

    @bhavika-reddy

    hey @potiuk I'd like to work on this issue and will submit a PR once I have a fix ready!

  15. Ed3110 commented on Jul 25, 2026

    @Ed3110
    Contributor

    Hey @potiuk I'd like to work on this.
    Keeping it to the UI side — adding a password field type to FlexibleForm so extra fields with format: "password" render masked with a show/hide toggle, like the standard password field already does. Not touching the Extra JSON block.
    First time contributing here, so tell me if the scope looks off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:UIarea:coregood first issuekind:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions