Skip to content

Secrets in Fleet-managed OTel configuration are not rendered #6277

@jsoriano

Description

@jsoriano

Fleet-managed policies with OTel configuration can include secrets, these secrets are not being processed.

Looking to code it looks like Fleet Server only processes secrets when they appear under some specific keys (outputs, inputs, agent, fleet...), but they don't include the ones that are relevant for OTel (receivers, processors, exporters...).

See

func NewParsedPolicy(ctx context.Context, bulker bulk.Bulk, p model.Policy) (*ParsedPolicy, error) {

More info in these conversations:

For confirmed bugs, please report:

  • Version: All versions since 9.2, where support for OTel packages was introduced.
  • Operating System: N/A
  • Steps to Reproduce:

As temporary workaround, it is possible to set secret: false in variables, and Fleet Server will be able to migrate them when the issue is fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions