Skip to content

Vulnerable data exposed with metrics endpoint #1428

Closed
@marqc

Description

Requirement - what kind of business use case are you trying to solve?

Keep credentials secure and expose app metrics at same time.

Problem - what in Jaeger blocks you from solving the requirement?

Seen in jaeger-ingester. Output from "/metrics" endpoint shows whole cmdline, which contains datastore credentials "--es.username" and "--es.password".

Sample:

{
"cmdline": [
"/usr/bin/jaeger-ingester",
"--ingester.deadlockInterval=0",
"--kafka.brokers=node-1.mycompany.com:9092,node-2.mycompany.com:9092,node-3.mycompany.com:9092,",
"--kafka.topic=request-tracing",
"--kafka.group-id=jaeger-ingester-v001",
"--kafka.encoding=json",
"--es.server-urls",
"https://es5-int.mycompany.com:443",
"--es.username",
"changeit",
"--es.password",
"changeit",
"--es.sniffer=false",
"--ingester.http-port",
"8080",
"--health-check-http-port",
"8081"
],
"jaeger.bulk_index.attempts": 2.8229e+06,
"jaeger.bulk_index.errors": 0,
...

Proposal - what do you suggest to solve the problem or improve the existing situation?

Either remove cmdline parameter or parse properties and use some whitelist or blacklist to hide auth credentials.

Any open questions to address

Activity

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

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