Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

How to save sasl.password in a masked field in kafka connection? #36

@151N3

Description

@151N3

We have a new project, where we have to use sasl-Username and sasl-Password and don't want put the password in the extra-Dict.
Is there any way to save the credentials somewhere, where the password is not in plain text?

I'm missing a password or a masked filed, where we able to store a dictionary with sensible data and maybe in the hook merge both dictionaries from extra and the other field. Something like this:

extra = {
    "bootstrap.servers": "kafka:19092",
    "group.id": "group_1",
    "security.protocol": "PLAINTEXT",
    "auto.offset.reset": "beginning"
}
new_field = {
   "sasl.username":"my_user",
   "sasl.password": "my_password"}
config_dict = extra | new_field

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions