Skip to content

fix(prometheus): quote external_labels values in YAML template - #291

Merged
apham0001 merged 1 commit into
mainfrom
fix/prometheus-yaml-quoting
Mar 12, 2026
Merged

fix(prometheus): quote external_labels values in YAML template#291
apham0001 merged 1 commit into
mainfrom
fix/prometheus-yaml-quoting

Conversation

@apham0001

Copy link
Copy Markdown

Summary

  • Add double quotes around sed-substituted variables in prometheus YAML template
  • Values containing YAML-special characters (#, :, [, etc.) can break config parsing
  • Aligns with same fix in charon-distributed-validator-node

Test plan

  • docker compose up -d with CLUSTER_NAME containing # or : characters
  • Verify prometheus starts and external_labels appear correctly

Unquoted sed-substituted values can break YAML parsing when
cluster names contain special characters (#, :, etc).
@apham0001
apham0001 merged commit dfecb6a into main Mar 12, 2026
3 checks passed
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