utsav3097-netizen/QKD_KMS_1 ? reverse-engineered prompt
Reverse engineered prompt
Build me a full stack dashboard and API for a Quantum Key Distribution Key Management System.
I want a web app that can receive key material from a QKD source, store it safely, let secure application clients request a key, and then mark that key as consumed so it can never be reused. The app should clearly track each key through its lifecycle, available, reserved, consumed, and show the current state in a simple monitoring dashboard with key counts, recent activity, and key details.
Please make the backend handle requests asynchronously, validate data carefully, use a PostgreSQL database, and make the key reservation flow safe if multiple clients ask for keys at the same time. Add structured JSON logging for important security events like key received, key reserved, and key consumed.
Also build a clean frontend for monitoring the system, with a modern layout and enough styling to make the dashboard easy to read. If you need to check current docs for any implementation details, feel free to look them up online.
Are you gonna build this?
make sure you review the code using coderabbit