open-policy-agent / contrib

Integrations, examples, and proof-of-concepts that are not part of OPA proper.

Home Page:http://www.openpolicyagent.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken Elasticsearch Data Filtering Example

daurrutia opened this issue · comments

commented

Whilst trying to prove out OPA with Elasticsearch for my team I ran into several issues with the Elasticsearch data filtering example. I personally have not been able to successfully get past step 2 in the README.

Asking for help to ensure the example can run against newer versions of Elasticsearch and also support communicating to containerized Elasticsearch.

Elasticsearch version related error

Containerized Elasticsearch related error

Hi David! 👋 And thanks for reporting this. From what I can see, it's been 4 years since someone actively worked on this, so things have likely changed in Elastic-land since then. Should probably not be too much work to fix if someone wants to pick it up. I'll mark this as a good-first-issue, hoping someone steps up to the challenge :)

Hey @daurrutia,
Please try building and running my fixed version.

@anderseknert would appreciate your review on my PR 😃