How to implement DB lock in vault

I have a PHP application which runs via the docker container. I am currently working on removing consul usage from PHP application and replacing it with vault.

The application consists of only cron jobs.

There is a script - [lock.sh], related to session creation and DB lock acquisition for each job. This script is useful in scenarios where we want to ensure that only one instance of a task runs at a time in a distributed system. Currently it is using Consul to manage the locking and session lifecycle, which we want to replace by vault.

can someone please help me with this?

Thanks in advance.

Hi @tiyasha.datta ,

I don’t think Vault can help with this relative to replacing Consul. Vault stores static secrets such as usernames and passwords, and integrates with other platform to generate usernames and passwords.