# Elasticsearch CCR. Role mappings

**URL:** <https://discuss.elastic.co/t/elasticsearch-ccr-role-mappings/277413>\
**Category:** Elasticsearch\
**Tags:** ccr-cross-cluster-replication\
**Created:** [June 30, 2021, 6:25am UTC](https://discuss.elastic.co/t/elasticsearch-ccr-role-mappings/277413 "2021-06-30T06:25:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Armen\_Petrosyan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armen_petrosyan/32/80330_2.png) [@Armen\_Petrosyan](https://discuss.elastic.co/u/Armen_Petrosyan)\
**Post date:** [June 30, 2021, 6:25am UTC](https://discuss.elastic.co/t/elasticsearch-ccr-role-mappings/277413/1 "2021-06-30T06:25:48Z")

</div>

I configured Elasticsearch to work with mutual TLS authentication and authorization is done using pki realm.

While replication data between clusters (CCR) it uses transport layer, I have the same CA on both clusters, so authentication passes.

My question is, do I need create role mappings for leader and follower in case I am authorized using PKI realm or not?

Because when I used native realm with user/password - I had such mapping.

Thanks

---

<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:** [July 28, 2021, 6:26am UTC](https://discuss.elastic.co/t/elasticsearch-ccr-role-mappings/277413/2 "2021-07-28T06:26:01Z")

</div>

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