Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: Add functionality for persistent databases #1125

Open
jonasbartho opened this issue Nov 8, 2021 · 1 comment
Open

suggestion: Add functionality for persistent databases #1125

jonasbartho opened this issue Nov 8, 2021 · 1 comment

Comments

@jonasbartho
Copy link

Is there any chance of adding the possibility to store encrypted secrets in for example mysql/mariadb/postgres?

The fact that this only can be stored in cache backends like memcached/redis is kind of a bummer for specific k8s/openshift environments where you want to be able to drain nodes/delete pods on the fly.

Keep up the good work! You guys are killing it. :)

@jhaals
Copy link
Owner

jhaals commented Nov 12, 2021

Hi and thanks for the kind words @jonasbartho

The reason for not having any SQL storage at this point is that those do not support TTLs and the project would have to rely on a vacuum feature implemented in the yopass server. I've also wanted the secrets stored with yopass to be ephemeral and for "short" transactions only and not writing any data to disk has felt safer in case it turns out that tomorrow the encryption strategy is broken or incorrect for some reason.
Redis actually provide some sort of persistence so in case you want to rely on a persistence volume for data across redeploys of the database checkout https://redis.io/topics/persistence
For the deployments I've worked with in the past I separate the service and the database allowing for separate deployments, the memcache service almost never restart and I'm okay with that happening in rare cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants