Score:0

Can I recover a db password?

bd flag

For our project in GCP, the app has a production Postgres db instance, we don't have the current password, therefore we can't access the db other than through the app. If we change the password, then we can access the db let's say using PGadmin but the app becomes inaccessible. We don't know where in the code that was deployed the password is. Is there any way to recover this password? or where in the code of the deployed app in GCP can be found?

pl flag
What type of app? Specifically, what programming language, what frameworks (if any)?
pl flag
Is this Google Cloud "hosted/managed" Postgres, or is it Postgres running on a VM that you have shell access for?
John Hanley avatar
cn flag
PostgreSQL does not store passwords, so no, you cannot recover a password via the database.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.