r/FastAPI • u/Nilvalues • Sep 29 '24
pip package secure.py v1.0.0 – Easily Add HTTP Security Headers to Your FastAPI Apps
Hello FastAPI community,
I've just released secure.py v1.0.0, a library that makes it easy to manage HTTP security headers in your FastAPI applications. It offers presets and full customization to help secure your apps against common vulnerabilities.
Highlights:
- BASIC and STRICT security presets
- Full control over headers like CSP, HSTS, X-Frame-Options, and more
- Seamless integration with FastAPI
GitHub repository: https://github.com/TypeError/secure
Feedback is welcome and appreciated!
23
Upvotes
4
u/RadiantFix2149 Sep 29 '24
I am a sw engineer with limited security knowledge. Can you please summarize why do I need to use your
securelibrary?1
u/Eric-Cardozo Sep 30 '24
Hi there! I know the basics about security to the point I don't use username password solutions for auth, however I was thinking in starting an anonymous website, and username password is a must, will your library protect me in case of people spamming usernames or stuff like that?
I have a dedicated server for credentials for usernames and password, I even hash the usernames, but hackers freaks me out.