How atharvadchaudhari05/securecloud works
SecureCloud is a Flask secure-file application. Its main workflow registers and authenticates users with password, TOTP, risk scoring and conditional email OTP, then lets authenticated users encrypt, store, retrieve or shred files. Source excerpts show these routes and services; report generation/display and passkey data are present as capabilities or model support, but no passkey flow is evidenced. The README is empty, so the graph is based on the supplied tree and excerpts; unsampled subsystem links are omitted where calls cannot be verified.
Main entry points: __init__.py Flask app setup · auth.py Account and login routes · files.py File and dashboard routes · models.py Account and event records
Components 16
Web application
- Flask app setup
securecloud/app/__init__.py - App configuration
securecloud/app/config.py - Account and event records
securecloud/app/models.py
Identity and risk
- Account and login routes
securecloud/app/routes/auth.py - Password and TOTP
securecloud/app/services/auth_service.py - Login risk scoring
securecloud/app/services/risk_service.py - Email OTP and alerts
securecloud/app/services/mailer.py
Secure file handling
- File and dashboard routes
securecloud/app/routes/files.py - Encryption service
securecloud/app/services/crypto_service.py - Encrypted file blobs
securecloud/storage
ML and reports
- Risk model artifact
securecloud/ml/models/risk_model.joblib - Cipher policy artifact
securecloud/ml/models/crypto_policy.joblib - Security reports
securecloud/app/routes/report.py - Metrics and benchmarks
securecloud/ml/reports
Other components
- User
- Gmail SMTP
Connections 24
- User → Flask app setup: uses app
- Flask app setup → App configuration: loads config
securecloud/app/__init__.py - Flask app setup → Account and event records: initializes ORM
securecloud/app/__init__.py - Flask app setup → Account and login routes: registers routes
securecloud/app/__init__.py - Flask app setup → File and dashboard routes: registers routes
securecloud/app/__init__.py - Flask app setup → Security reports: registers routes
securecloud/app/__init__.py - Flask app setup → Risk model artifact: loads artifact
securecloud/app/__init__.py - Flask app setup → Cipher policy artifact: loads artifact
securecloud/app/__init__.py - Account and login routes → Account and event records: reads and writes
securecloud/app/routes/auth.py - Account and login routes → Password and TOTP: verifies credentials
securecloud/app/routes/auth.py - Account and login routes → Login risk scoring: scores login
securecloud/app/routes/auth.py - Account and login routes → Email OTP and alerts: requests OTP and alerts
securecloud/app/routes/auth.py - Account and login routes → File and dashboard routes: redirects after MFA
securecloud/app/routes/auth.py - Account and login routes → Gmail SMTP: sends notices via
- Email OTP and alerts → Account and event records: stores OTP
securecloud/app/services/mailer.py - Login risk scoring → Account and event records: queries login history
securecloud/app/services/risk_service.py - Login risk scoring → Risk model artifact: predicts risk
securecloud/app/services/risk_service.py - File and dashboard routes → Account and event records: reads and writes
securecloud/app/routes/files.py - File and dashboard routes → Password and TOTP: checks action TOTP
securecloud/app/routes/files.py - File and dashboard routes → Encryption service: encrypts and decrypts
securecloud/app/routes/files.py - File and dashboard routes → Encrypted file blobs: writes and reads blobs
securecloud/app/routes/files.py - Encryption service → Cipher policy artifact: selects cipher
securecloud/app/services/crypto_service.py - File and dashboard routes → Security reports: report navigation
- Security reports → Metrics and benchmarks: reads metrics
securecloud/app/routes/report.py