How icydrae/vaults works
Main Components
a. Client Side (Frontend)
• Vue.js Application Layer
• Components (Authentication, Vault Management, Item Management)
• State Management (Vuex Store)
• Security Services (Encryption/Decryption Layer)
• API Services Layer
b. Server Side (Backend)
• Nginx Web Server
• PHP/Symfony API
• Controllers Layer
• Entity Layer
• Repository Layer
• Security Layer
c. Database
• MySQL Database
[Client Browser] <-HTTPS-> [Nginx Reverse Proxy] <-> [PHP/Symfony API] <-> [MySQL Database]
[Frontend Encryption Layer]
• PBKDF2 Key Derivation
• AES-256 Encryption
• Authentication Hash Generation
[Backend Security Layer]
• CORS/CSRF Protection
• Additional PBKDF2 Hashing
• Authentication Management
[Vue.js Components] -> [Vuex Store] -> [Security Services] -> [API Services] -> [Backend API] -> [Database]
Important Elements to Highlight
• Blue: Frontend components
• Green: Security-related components
• Yellow: API/Backend services
• Red: Database and storage
• Purple: Infrastructure components (Docker, Nginx)
• Rectangles: Main components
• Hexagons: Security components
Specific Implementation Details
a. Authentication Flow:
[Master Password] -> [Email Salt] -> [PBKDF2] -> [Encryption Key] -> [Auth Hash] -> [Backend Storage]
b. Data Encryption Flow:
[User Data] -> [AES-256 Encryption] -> [Encrypted Payload] -> [API] -> [Database Storage]
c. Container Architecture:
[Docker Compose]
• [Frontend Container]
• [Nginx Container]
• [PHP/Symfony Container]
• [MySQL Container]
Key Relationships
• Frontend-Backend interaction through REST API
• Client-side encryption/decryption process
• Authentication flow
• Data storage flow
• Docker container relationships
Additional Notes
• Notes about security measures (HTTPS, CORS, CSRF)
• Separation between encrypted and unencrypted data flows
• Client-side nature of sensitive operations