Skip to content

feat(target-allocator): add allowInsecureAuthSecrets option#5088

Open
tillwulfram wants to merge 1 commit into
open-telemetry:mainfrom
tillwulfram:feat/TA-allowInsecureAuthSecrets
Open

feat(target-allocator): add allowInsecureAuthSecrets option#5088
tillwulfram wants to merge 1 commit into
open-telemetry:mainfrom
tillwulfram:feat/TA-allowInsecureAuthSecrets

Conversation

@tillwulfram
Copy link
Copy Markdown

Description:
Currently the TA can only serve discovered auth data, eg. Kubernetes Secrets from a ServiceMonitor with basicauth, over mtls. This great feature would overcomplicate setups for teams who have existing service mesh which already handles the mtls auth between the services or high maintenance for teams who can't use the operator / crds and also for dev setups.
Its configurable bool via config file, CLI flag (--allow-insecure-auth-secrets), or environment variable (ALLOW_INSECURE_AUTH_SECRETS) - allowing the most flexibility so the operator crds can cover this setting and also the standalone helm chart from the targetAllocator.
-> When enabled, a "warn" log will be written at startup that secret are exposed via plaintext.
Defaults to false to maintain backwards compatibility.

A next feature could be that also https can be configured so no "heavy" mtls is needed, but at least the transport is secured.

Testing:
Expanded the tests for the new feature in the config, flags and the server files.
All tests, precommits and lints were successful.

Documentation:
Added the new config parameter to the targetAllocator and a short description how it can be used, for which environments it should be used and which problem it can solve.

@tillwulfram tillwulfram requested a review from a team as a code owner May 17, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ScrapeConfig targetAllocator bad password using basicAuth

1 participant