Skip to content

[System] process.env.whitelist in agent template is malformed #3519

@jen-huang

Description

@jen-huang

I believe there is an issue with the agent handlebars template for the process.env.whitelist field, there isn't a key before printing the items:

process.include_cpu_ticks: {{process.include_cpu_ticks}}
{{#if process.env.whitelist}}
{{#each process.env.whitelist}}
- {{this}}
{{/each}}
{{/if}}

This is causing the agent yaml that Fleet generates to be malformed:

image

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions