Skip to content

[9.3](backport #6419) Implement OTEL secrets replacement in parsed policy#6470

Merged
michel-laterman merged 1 commit into9.3from
mergify/bp/9.3/pr-6419
Mar 2, 2026
Merged

[9.3](backport #6419) Implement OTEL secrets replacement in parsed policy#6470
michel-laterman merged 1 commit into9.3from
mergify/bp/9.3/pr-6419

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Mar 2, 2026

What is the problem this PR solves?

Added functionality to replace secrets in OTEL sections (receivers, exporters, processors, extensions, connectors) of a policy. Updated the NewParsedPolicy function to process these sections and append identified secret keys. Included a new test case to validate the correct replacement of secrets in the OTEL sections.

How does this PR solve the problem?

Add a call to the existing ProcessMapSecrets method for OTEL keys in the policy.

Design Checklist

  • I have ensured my design is stateless and will work when multiple fleet-server instances are behind a load balancer.
  • I have or intend to scale test my changes, ensuring it will work reliably with 100K+ agents connected.
  • I have included fail safe mechanisms to limit the load on fleet-server: rate limiting, circuit breakers, caching, load shedding, etc.

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool

Related issues


This is an automatic backport of pull request #6419 done by [Mergify](https://mergify.com).

Added functionality to replace secrets in OTEL sections (receivers, exporters,
processors, extensions, connectors) of a policy. Updated the `NewParsedPolicy`
function to process these sections and append identified secret keys. Included a
new test case to validate the correct replacement of secrets in the OTEL
sections.

(cherry picked from commit 9df10d4)
@mergify mergify bot requested a review from a team as a code owner March 2, 2026 18:59
@mergify mergify bot added the backport label Mar 2, 2026
@mergify mergify bot requested review from michel-laterman and swiatekm March 2, 2026 18:59
@github-actions github-actions bot added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Mar 2, 2026
@michel-laterman michel-laterman merged commit 9aef45d into 9.3 Mar 2, 2026
11 checks passed
@michel-laterman michel-laterman deleted the mergify/bp/9.3/pr-6419 branch March 2, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant