How meltyness/ratchet-pawl works
Main Components
a) Frontend Layer (React-based):
• User Interface Components (from pawl-js/src):
• Authentication (PawlLogin.js)
• Device Management (DeviceEditor.js, DeviceList.js)
• User Management (UserEditor.js, UserList.js)
• Navigation (SideBar.js, HomePanel.js)
b) Backend Layer (Rust-based):
• API Endpoints (mentioned in README)
• Authentication Handler
• Data Processing Logic
c) Database Layer:
• Data Storage
• Note about data masking and bcrypt hashing
d) External Systems:
• Interaction with the API
Component Relationships
• Frontend → Backend: REST API calls
• Backend → Database: Data persistence
• Ratchet TACACS Daemon → Backend: Configuration fetching
• Security context (bcrypt, data masking)
Technical Stack Callouts
• Backend: Rust, Rocket.rs
• Database: redb
• Security: Bcrypt, Data Masking
Architecture Patterns
Highlight:
• Client-Server architecture
• RESTful API design
• Stateless authentication
• Data encryption/hashing patterns