Skip to content

Conversation

@marcofranssen
Copy link
Collaborator

@marcofranssen marcofranssen commented Apr 10, 2025

  • Prevent template injection by using quote
  • Using nindent instead of indent to allow indenting templates for readability
  • Using with to reduce duplication

- Prevent template injection by using `quote`
- Using `nindent` instead of `indent` to allow indenting templates for readability
- Using `with` to reduce duplication

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
@joshuabaird joshuabaird merged commit 3ec796c into fluent:master Apr 10, 2025
2 checks passed

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

first of all, thank for your work.
With the template changes the following question comes up:
How I am supposed to reference a secretKey with the new template changes by quoting it?

E.g.:

httpPassword:
  valueFrom:
    secretKeyRef:
      key: http_password
      name: esauth

becomes

httpPassword: "map[valueFrom:map[secretKeyRef:map[key:http_password name:esauth]]]"

Im no expert in Helm, do I miss something out?

Best Regards,
Rafael

joshuabaird pushed a commit to joshuabaird/fluent-operator that referenced this pull request Oct 23, 2025
- Prevent template injection by using `quote`
- Using `nindent` instead of `indent` to allow indenting templates for readability
- Using `with` to reduce duplication

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
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.

3 participants