# How to apply any Authentication to In-Memory Engine?

**URL:** <https://forums.percona.com/t/how-to-apply-any-authentication-to-in-memory-engine/17569>\
**Category:** Percona Server for MongoDB\
**Created:** [September 20, 2022, 9:38am UTC](https://forums.percona.com/t/how-to-apply-any-authentication-to-in-memory-engine/17569 "2022-09-20T09:38:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yukha\_Dharmeswara](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/yukha_dharmeswara/32/7265_2.png) [@Yukha\_Dharmeswara](https://forums.percona.com/u/Yukha_Dharmeswara)\
**Post date:** [September 20, 2022, 9:38am UTC](https://forums.percona.com/t/how-to-apply-any-authentication-to-in-memory-engine/17569/1 "2022-09-20T09:38:25Z")

</div>

Hello, is there any way to apply any authentication on Percona Server for MongoDB whose using In-Memory Engine?

I’ve tried to deploy docker container version of Percona Server for MongoDB 5.0.10 using In-Memory Engine with SCRAM Authentication (by specifying MONGO\_INITDB\_ROOT\_USERNAME & MONGO\_INITDB\_ROOT\_PASSWORD environments for creating the necessary root user). But, because after the preparation on ps-entry.sh file has been completed, Percona will stop and restart the mongod service, losing credentials in the process.

I hope anyone can help me make this work, as In-Memory Engine feature is really powerful in terms of performance. Thank you

---

<div class="post-metadata">

**Author:** ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)\
**Post date:** [April 12, 2023, 3:58pm UTC](https://forums.percona.com/t/how-to-apply-any-authentication-to-in-memory-engine/17569/2 "2023-04-12T15:58:22Z")

</div>

@Yukha_Dharmeswara I see you created this topic in the Operator section, but I assume it is not operator related.  
I will move it out.  
For the question about authentication, I’m calling in our experts - @Ivan_Groenewold . Any idea?
