Utility to fetch one-time password from database for testing purposes.
How to use
install PostgreSQL client
get the PostgreSQL password from
customer-manager
in the environment stored here for BRAVE https://vault.cicd.safibank.online/ui/vault/secrets/secret/show/brave/apps/customer-manager/postgres , here for DEV https://vault.cicd.safibank.online/ui/vault/secrets/secret/show/dev/apps/customer-manager/postgres and here for STAGE https://vault.cicd.safibank.online/ui/vault/secrets/secret/show/stage/apps/customer-manager/postgres .
Credentials for Vault are stored here: https://safibank.atlassian.net/wiki/spaces/ITArch/pages/18546713/SDLC#Environmentsdownload the following script (for Linux users add execution permission):
Run the script and pass the password (bad input results in a usage warning):
./fetch_otp.sh country_code phone_number environment
For environment, fill in either brave
, dev
or stage
.
Example:
Attachments:
image-20220909-101847.png (image/png)
image-20221103-143712.png (image/png)
fetch_otp.sh (application/x-sh)
fetch_otp.sh (application/x-sh)