Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: config secret interpolation #49

Merged
merged 3 commits into from
Aug 31, 2024

Conversation

acosta11
Copy link
Member

@acosta11 acosta11 commented Aug 29, 2024

  • Pushed edge cases related to quoting of secrets into templating step; now fails if quotes are missing around template variable due to interpretation as part of the valid YAML struct.
  • Allows for template variables to not be interpolated.
  • Only interpolates leaf properties of the config.

- Fixes edge cases related to quoting of secrets.
- Allows for template variables to not be interpolated.
- Only interpolates leaf properties of the config.

Signed-off-by: Carson Long <[email protected]>
@acosta11 acosta11 requested a review from a team as a code owner August 29, 2024 23:56
ctlong
ctlong previously approved these changes Aug 30, 2024
mkocher
mkocher previously approved these changes Aug 30, 2024
Copy link
Member

@mkocher mkocher left a comment

Choose a reason for hiding this comment

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

left a few thoughts, but lgtm

jobs/otel-collector-windows/templates/config.yml.erb Outdated Show resolved Hide resolved
ctlong and others added 2 commits August 30, 2024 22:26
- Adds test case for parsing template variables in arrays.
- Adds test case for unquoted template varibles (invalid yaml) raising
  an error during template compilation.

Signed-off-by: Carson Long <[email protected]>
@ctlong ctlong dismissed stale reviews from mkocher and themself via bb8ecf0 August 30, 2024 22:28
@ctlong ctlong merged commit 242a73f into cloudfoundry:main Aug 31, 2024
5 checks passed
@ctlong ctlong deleted the fix/secret-interpolation branch August 31, 2024 00:29
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.

4 participants