Storing password in keepass in intellij gateway
Answered
I am storing the password of my plugin in KeePass. But when I restart the project in IntelliJ gateway ( I am using ssah to access the project on my VDI), the password in keypass gets deleted. Please help.
Please sign in to leave a comment.
Please clarify what API are you using, https://plugins.jetbrains.com/docs/intellij/persisting-sensitive-data.html ?
Yes
I think this question may not be clear. I am using intellij gateway to ssh connect to another desktop. I installed a plugin in which I am storing passwords using PasswordSafe.getInstance().set. Passwords are stored using keepass. When I close the connection and start it again, it doesn't fetch that password and I have to store it again in order to use my plugin. This is not the case if I am just using Intellij idea.
Investigating with responsible devs..
In passwords in settings, there is a location where kdbx file is mentioned where passwords are stored. When I close the connection and start it again, the kdbx file is deleted and new one is made, hence the password cannot be fetched. Please look into it. Thank you!
Are you able to share the plugin in question? Or a minimum reduced sample that uses the functionality?
Possibly related issue: https://youtrack.jetbrains.com/issue/GTW-3823/Cannot-check-Save-Password-for-SSH-configuration
Hello, I raised an issue in youtrack with some code to make you understand it better. Please look into it.
https://youtrack.jetbrains.com/issue/GTW-8190/Passwords-stored-in-KeePass-are-deleted-when-Gateway-is-disconnected.
In my case this issue pops up using the CodeGPT plugin which tries to save third party API keys in a KeePass file (which is then deleted as part of the temporary working directory of the remote development environment), but having it attempt to use the same global KeePass file as the non-remote environment has it request a master password which it then forgets between restarts.