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

Save private key and ocsp in database #146

Open
mymy47 opened this issue Jul 23, 2024 · 5 comments
Open

Save private key and ocsp in database #146

mymy47 opened this issue Jul 23, 2024 · 5 comments

Comments

@mymy47
Copy link

mymy47 commented Jul 23, 2024

Is there a way to store private key and ocsp files in the database instead of in file?

I have some limits in my servers and using files exclusively for these, which has resulted in a slowdown

@mymy47 mymy47 changed the title Save private key and ocsp files in database Save private key and ocsp in database Jul 23, 2024
@antt1995
Copy link

Would love this,
Great for using in Kubernetes

@mathiasertl
Copy link
Owner

Hi,

This is currently not possible, as storing them in the database is a security risk. The frontend webserver should not have access to the private keys... but needs access to the database.

I have some limits in my servers and using files exclusively for these, which has resulted in a slowdown

Can you details those limits and where the slowdown occurs? OCSP keys should usually be in the cache, making them very fast, and signing private keys can hardly be the limiting factor (and occurs in the Celery worker anyway).

Great for using in Kubernetes

Do you really have no way of storing files there?

kr, Mat

@mymy47
Copy link
Author

mymy47 commented Jul 27, 2024

@mathiasertl

I want to run it in Kubernetes, but there are significant file limitations.
In Kubernetes, Using a database is more secure and reliable than relying on files.

@mymy47
Copy link
Author

mymy47 commented Jul 27, 2024

So,
I believe the only solution for me is to use django-db-file-storage.

@mathiasertl
Copy link
Owner

At present, that would be a solution, yes.

However dynamic backend support could be used to implement storage in the database. If you're willing to try a PR, I'm happy to assist, otherwise I can't commit to implementing this before 2.1.

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

3 participants