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

Bug: [v3] Elasticsearch target in _helpers.tpl missing typelessApi option #595

Closed
plinde opened this issue Nov 22, 2024 · 1 comment
Closed

Comments

@plinde
Copy link
Contributor

plinde commented Nov 22, 2024

version tested: 3.0.0-rc.5

As part of policy-reporter v3, the _helpers.tpl section for Elasticsearch config is missing the option for typelessApi.

https://github.com/kyverno/policy-reporter/blob/main/charts/policy-reporter/templates/_helpers.tpl#L162-L173

This causes policy-reporter to default to typeless: false, which breaks event ingestion in Elasticsearch 8.0+.

https://github.com/kyverno/policy-reporter/blob/main/charts/policy-reporter/values.yaml#L387-L389

https://github.com/kyverno/policy-reporter/blob/main/pkg/target/elasticsearch/elasticsearch.go#L51-L58

{"level":"error","ts":1732251727.9601336,"caller":"http/utils.go:50","msg":"Elasticsearch: PUSH FAILED","statusCode":400,"body":"{\"error\":\"no handler found for uri [/logs-kyverno-policy-reporter.log/event] and method [POST]\"}"

plinde added a commit to plinde/policy-reporter that referenced this issue Nov 22, 2024
plinde added a commit to plinde/policy-reporter that referenced this issue Nov 22, 2024
… _helpers.tpl

Signed-off-by: Peter Linde <plinde@users.noreply.github.com>
fjogeleit pushed a commit that referenced this issue Nov 22, 2024
…rs.tpl (#596)

Signed-off-by: Peter Linde <plinde@users.noreply.github.com>
@fjogeleit
Copy link
Member

Thanks for your contribution, released in the latest RC release

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

No branches or pull requests

2 participants