Skip to content

TempeHS/2025SE_Elliott.P_HSC

Repository files navigation

Secure Flask Bootstrap PWA Template

This Flask template has been built from the ground up to be a secure Progressive Web App. It includes a secure form and Bootstrap sample components ready to be connected to a SQLite3 database. All minimum PWA standards have been integrated, and placeholder images have been provided for all the icon and image components.

Dependencies

  • VSCode or GitHub Codespaces (preconfigured for docker)
  • Python 3+
  • pip install Flask
  • pip install SQLite3
  • pip install bcrypt
  • pip install flask_wtf

Secure Features

  • Strict Content Security Policy
    • No inline <script></script>.
    • Restricted <iframe> loading
    • XSS blocked
  • HTML Languaged declared.
  • Meta character set declared.
  • Private folders use .folderName syntax.
  • Bootstrap components served from a known and trusted Boostrap CDN.
  • CSRFProtect applied to form.
  • Form Pattern expression declared.

To be implemented by developers

  • Web content, Bootstrap ready
  • SQLite database design and integration
  • Input sanitisation
  • Login, authentication or session management
  • Password encryption using bcrypt
  • SSL Encryption

Privacy advice for developers

  • The app should have a privacy handling policy
  • Only data essential for the purposes of the app should be collected
  • Users should be given the option to download or delete their data
  • Passwords should be encrypted, including a salt, before hashing

Security advice for developers

  • All inputs should be sanitised before processing or storing
  • If including login, authentication and session management should be implemented
  • SSL Encryption and HTTPS should be implemented
  • Use Jinga2 components when passing variables to the frontend
  • Use query parameters for all SQL queries

Content advice for developers

  • All templates are Bootstrap ready
  • SQLite has been provided for database design

Tip

Developers should monitor Bootstrap 5.3.3 for discovered vulnerabilities and patch or update as needed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published