Skip to content

Pulsar client output the auth info may reveal sensitive information #8109

Closed

Description

@tabalt

Is your enhancement request related to a problem? Please describe.

Pulsar client output the auth info may reveal sensitive information

Describe the solution you'd like

Remove auth information from log

Additional context
INFO o.a.p.c.i.ProducerStatsRecorderImpl:102 - Pulsar client config: {
"serviceUrl" : "pulsar://127.0.0.1:6650",
"authPluginClassName" : "org.apache.pulsar.client.impl.auth.AuthenticationToken",
"authParams" : "sensitive_authParams",
"authParamMap" : sensitive_authParamMap,

Activity

  1. added
    type/enhancement
    on Sep 23, 2020
  2. added a commit that references this issue on Sep 30, 2020
    e5f57a3
  3. added a commit that references this issue on Oct 3, 2020
    7baf054
  4. added a commit that references this issue on Oct 30, 2020
    51b9bac
  5. racorn commented on Nov 10, 2020

    @racorn
    Contributor

    Unfortunately, this breaks configuration of authentication parameters with a property map supported by

    PulsarClient.builder().loadConf(configMap)

    like TLS client certificate authentication (where this is no sensitive information, just filenames).

    It breaks because the way ConfigurationDataUtils.loadData is implemented, where the configuration data is serialized to a string before it is deserialized back to a desired type (and loose the fields annotated with JsonIgnore).

  6. added a commit that references this issue on Nov 13, 2020
    fab1582
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/securitytype/enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions