Skip to content

Kubernetes Cluster Connection connection type displays sensitive values #36751

@arjunanan6

Description

@arjunanan6

Apache Airflow version

Other Airflow 2 version (please specify below)

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

2.7.1

What happened?

The kubernetes cluster connection type uses text fields for all of its fields, thereby making all values visible to anyone looking at it, especially the kube_config field which contains sensitive information.

While this is only an obscurity change, to solve this, the field type just needs to be changed to a password field so that the values are masked.

I'll be raising a PR for this.

What you think should happen instead?

The field (at least kube_config) should be changed to a sensitive field like password.

How to reproduce

Add a connection of type Kubernetes Cluster Connection.

Operating System

Debian GNU/Linux 11

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

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

    area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions