# Q: Is there a way to use RBAC (ServiceRole) with Kubernetes?

**URL:** <https://forum.opensearch.org/t/q-is-there-a-way-to-use-rbac-servicerole-with-kubernetes/12029>\
**Category:** Security\
**Tags:** configure, install\
**Created:** [January 7, 2023, 12:31pm UTC](https://forum.opensearch.org/t/q-is-there-a-way-to-use-rbac-servicerole-with-kubernetes/12029 "2023-01-07T12:31:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeyGlitz](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mikeyGlitz](https://forum.opensearch.org/u/mikeyGlitz)\
**Post date:** [January 7, 2023, 12:31pm UTC](https://forum.opensearch.org/t/q-is-there-a-way-to-use-rbac-servicerole-with-kubernetes/12029/1 "2023-01-07T12:31:16Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
2.4  
2.3

**Describe the issue** :  
I’m trying to configure security back-ends to connect with OpenSearch. Is there any way to link a Kubernetes Service Account or any of the other RBAC objects (i.e. ClusterRole, Role) with a role inside OpenSearch like you can with IAM roles?  
I don’t see any references to Service Accounts in the security configuration

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [January 17, 2023, 9:20am UTC](https://forum.opensearch.org/t/q-is-there-a-way-to-use-rbac-servicerole-with-kubernetes/12029/2 "2023-01-17T09:20:17Z")

</div>

@mikeyGlitz Kubernetes is not Identity Provider. That’s why Kubernetes’ RBAC objects will work only inside the Kubernetes environment.
