• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

fluent / fluent-plugin-opensearch / 35065501899
93%
main: 93%

Build:
Build:
LAST BUILD BRANCH: fix-customize-template
DEFAULT BRANCH: main
Ran 16 Sep 2026 06:55AM UTC
Jobs 1
Files 13
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Sep 2026 06:33AM UTC coverage: 92.868% (+0.02%) from 92.846%
35065501899

Pull #194

github

kenhys
out_opensearch: escape customize_template values as JSON strings

Before: get_custom_template put each customize_template value into the
template text with a plain gsub. A value can be expanded from a tag or
a record field, so a `"` in it closed the JSON string it sat in and the
rest was read as more template keys. A log sender could add
index_patterns, order and aliases and have fluentd PUT that index
template with its own credentials. gsub also read backslash sequences
such as \0 in the replacement.

After: the value is escaped as JSON string content before it is
substituted, and the block form of gsub keeps the replacement literal.
A value can only become one string in the template.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
Pull Request #194: out_opensearch: escape customize_template values as JSON strings

8 of 8 new or added lines in 1 file covered. (100.0%)

6 existing lines in 1 file now uncovered.

1198 of 1290 relevant lines covered (92.87%)

312.91 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
90.91
0.5% lib/fluent/plugin/opensearch_index_template.rb
Jobs
ID Job ID Ran Files Coverage
1 35065501899.1 16 Sep 2026 06:55AM UTC 26
92.87
GitHub Action Run
Source Files on build 35065501899
  • Tree
  • List 13
  • Changed 13
  • Source Changed 1
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35065501899
  • Pull Request #194
  • PR Base - main (#34573217247)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc