secure-express-setup
Version:
Military-grade one-command security setup for Express.js applications
171 lines (124 loc) • 5.94 kB
Plain Text
MIT License
Copyright (c) 2024 Raghav Sharma
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
This package incorporates components from the projects listed below. The original
copyright notices and the licenses under which Raghav Sharma received such
components are set forth below. Raghav Sharma reserves all rights not expressly
granted herein, whether by implication, estoppel or otherwise.
1. helmet (MIT License)
Copyright (c) 2012-2023 Adam Baldwin, Evan Hahn
https://github.com/helmetjs/helmet
2. express-rate-limit (MIT License)
Copyright (c) 2015-2023 Nathan Friedly
https://github.com/express-rate-limit/express-rate-limit
3. cors (MIT License)
Copyright (c) 2013 Troy Goode
https://github.com/expressjs/cors
4. jsonwebtoken (MIT License)
Copyright (c) 2015 Auth0, Inc.
https://github.com/auth0/node-jsonwebtoken
5. express-mongo-sanitize (MIT License)
Copyright (c) 2014 Leonid Shevtsov
https://github.com/fiznool/express-mongo-sanitize
6. xss-clean (MIT License)
https://github.com/jsonmaur/xss-clean
7. hpp (MIT License)
Copyright (c) 2015 Analog Nico
https://github.com/analog-nico/hpp
8. crypto-js (MIT License)
Copyright (c) 2009-2013 Jeff Mott
https://github.com/brix/crypto-js
9. express-validator (MIT License)
https://github.com/express-validator/express-validator
10. multer (MIT License)
Copyright (c) 2014 Hage Yaapa
https://github.com/expressjs/multer
11. morgan (MIT License)
Copyright (c) 2014 Jonathan Ong, Douglas Christopher Wilson
https://github.com/expressjs/morgan
12. express-session (MIT License)
Copyright (c) 2010 Sencha Inc., TJ Holowaychuk, Douglas Christopher Wilson
https://github.com/expressjs/session
13. connect-redis (MIT License)
Copyright (c) 2010 TJ Holowaychuk
https://github.com/tj/connect-redis
14. redis (MIT License)
Copyright (c) 2016-2023 Redis
https://github.com/redis/node-redis
15. passport (MIT License)
Copyright (c) 2011-2023 Jared Hanson
https://github.com/jaredhanson/passport
16. passport-google-oauth20 (MIT License)
Copyright (c) 2012-2023 Jared Hanson
https://github.com/jaredhanson/passport-google-oauth2
17. bcryptjs (MIT License)
Copyright (c) 2012 Nevins Bartolomeo, Daniel Wirtz
https://github.com/dcodeIO/bcrypt.js
18. express-slow-down (MIT License)
Copyright (c) 2019 Nathan Friedly
https://github.com/express-rate-limit/express-slow-down
19. edge-csrf (MIT License)
https://github.com/amorey/edge-csrf
20. file-type (MIT License)
Copyright (c) Sindre Sorhus
https://github.com/sindresorhus/file-type
21. express-useragent (MIT License)
https://github.com/biggora/express-useragent
22. toobusy-js (MIT License)
https://github.com/STRML/node-toobusy
23. dotenv (BSD-2-Clause License)
Copyright (c) 2015, Scott Motte
https://github.com/motdotla/dotenv
24. rate-limit-redis (MIT License)
https://github.com/wyattjoh/rate-limit-redis
25. cookie-parser (MIT License)
Copyright (c) 2014 TJ Holowaychuk, Douglas Christopher Wilson
https://github.com/expressjs/cookie-parser
All dependencies listed above retain their original licenses. This package (secure-express-setup)
is provided under the MIT License as stated above, and usage of this package constitutes acceptance
of the licenses of all incorporated third-party components.
DISCLAIMER
This software is provided for security purposes and should be used responsibly.
The authors and contributors are not responsible for any misuse or damage caused
by this software. Users are responsible for:
- Properly configuring security settings for their specific use case
- Keeping secrets and API keys secure
- Regularly updating dependencies
- Conducting security audits
- Complying with all applicable laws and regulations
This package provides security features but does not guarantee complete protection
against all possible attacks. Security is a multi-layered approach, and this package
should be used as part of a comprehensive security strategy.
NO WARRANTY: THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
EXPORT CONTROL
This software may be subject to export control regulations. By using this software,
you agree to comply with all applicable export control laws and regulations.
USAGE IN PRODUCTION
While this software has been tested, users are strongly encouraged to:
- Review all security configurations
- Conduct thorough testing in staging environments
- Monitor security logs in production
- Keep all dependencies up to date
- Follow security best practices
For questions about this license, please open an issue at:
https://github.com/0Raghav-Sharma0/secure-express-setup/issues