Skip to content

Error/warn if TLS flags are used when tls.enabled=false #2893

Closed
@albertteoh

Description

@albertteoh

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

Motivated by this comment in Slack:

we tried the CLI flag --es.tls.skip-host-verify and the enviornment variable ES_TLS_SKIP_HOST_VERIFY
Neither one seems to have an effect
...
Found the issue, you also need to set --es.tls.enabled/ES_TLS_ENABLED 🤦

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

The user was, rightfully, confused when the --es.tls.skip-host-verify was set but wasn't working.

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

Log a warning or error if any --*.tls.* flag is set when --*.tls.enabled == false, maybe somewhere here and here.

Any open questions to address

Should we log a warning or error (and prevent startup of service)? I would lean towards the latter to be more explicit, though I think it would be considered "breaking" behaviour. The former warning could be easily missed.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions