# Custom Authz Engine Configuration

**URL:** <https://discuss.elastic.co/t/custom-authz-engine-configuration/305837>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [May 27, 2022, 11:10pm UTC](https://discuss.elastic.co/t/custom-authz-engine-configuration/305837 "2022-05-27T23:10:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ash\_n](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ash_n/32/105820_2.png) [@ash\_n](https://discuss.elastic.co/u/ash_n)\
**Post date:** [May 27, 2022, 11:10pm UTC](https://discuss.elastic.co/t/custom-authz-engine-configuration/305837/1 "2022-05-27T23:10:06Z")

</div>

I'm working on an implementation of a custom authorization engine by following the instructions on [this](https://www.elastic.co/guide/en/elasticsearch/reference/current/custom-roles-authorization.html#implementing-authorization-engine) page. I'm using Elasticsearch v8.2.0.

Step 2) on [this](https://www.elastic.co/guide/en/elasticsearch/reference/current/custom-roles-authorization.html#using-security-extension) page seems to indicate that I can pass settings for my custom plugin in `elasticsearch.yml` file. I'm trying to understand the format to specify settings in `elasticsearch.yml` file. In my Gradle file, my plugin is called `elasticsearch-opa`. So I thought I could set `elasticsearch-opa.host: localhost` in the `elasticsearch.yml` file but that gives an error of the form

```auto
unknown setting [elasticsearch-opa.host] please check that any required plugins are installed, or check the breaking changes documentation for removed settings

```

I have also tried using `com.elasticsearch.opa.OpaAuthorizationEngineExtension` which is the content of the file `META-INF/services/org.elasticsearch.xpack.core.security.SecurityExtension`.

Any idea what the correct format is to pass the settings for the custom plugin so that my custom authorization engine gets access to those settings ?

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 24, 2022, 11:10pm UTC](https://discuss.elastic.co/t/custom-authz-engine-configuration/305837/2 "2022-06-24T23:10:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
