# Custom Realm: read properties from customRealm.yml

**URL:** <https://discuss.elastic.co/t/custom-realm-read-properties-from-customrealm-yml/88325>\
**Category:** Elasticsearch\
**Created:** [June 5, 2017, 7:41pm UTC](https://discuss.elastic.co/t/custom-realm-read-properties-from-customrealm-yml/88325 "2017-06-05T19:41:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Jathin](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@Jathin](https://discuss.elastic.co/u/Jathin)\
**Post date:** [June 7, 2017, 10:02pm UTC](https://discuss.elastic.co/t/custom-realm-read-properties-from-customrealm-yml/88325/5 "2017-06-07T22:02:41Z")

</div>

I saw this thread.

> [@How to customize plugin-security.policy for custom realm](https://discuss.elastic.co/t/how-to-customize-plugin-security-policy-for-custom-realm/71570):
>
> I have a custom realm that uses OkHttpClient. When it is instantiated, it calls ProxySelector.getDefault() which requires 'permission java.net.NetPermission "getProxySelector"'. This is not granted to x-pack, so it breaks the realm. I tried editing the plugin policy for x-pack after the fact and it sort of works. Is that the best approach? When I try to do this using a customized Elasticsearch docker image, it fails (I have a Dockerfile that installs the x-pack, the realm, and then updates the x…

it says about updating custom realm example to add some permissions, and updating documents as well.

Can you share where it is updated.

---

_[View the full topic](https://discuss.elastic.co/t/custom-realm-read-properties-from-customrealm-yml/88325)._
