Add a new endpoint to handle file uploads for local storage
dn53
07c4230
Adds the `/api/evidence/upload/<int:file_id>` PUT endpoint to the evidence blueprint to handle file uploads, verifies upload session status, and writes file data to local storage. Also removes extraneous console logs from client-side JavaScript.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d2e4f9d2-73d4-475f-9937-8a1aa1b15e2d
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/2fb4ea93-ac3a-4c8e-a374-bb86029c18ef/d2e4f9d2-73d4-475f-9937-8a1aa1b15e2d/kob3q56
Improve how the application handles user authentication tokens
dn53
057025a
Update static/js/main.js and templates/base.html to ensure the authentication token is correctly loaded, logged, and applied to API requests via Axios interceptors.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d2e4f9d2-73d4-475f-9937-8a1aa1b15e2d
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/2fb4ea93-ac3a-4c8e-a374-bb86029c18ef/d2e4f9d2-73d4-475f-9937-8a1aa1b15e2d/kob3q56
Update button text and streamline the evidence upload process
dn53
1e6c836
Refactors the evidence creation and upload flow by renaming the button to "Create and upload", simplifying the JavaScript for handling file uploads, and removing redundant debugging logs from the API.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f612404e-3a24-4a59-a9ce-5c4e0f1ea874
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/2fb4ea93-ac3a-4c8e-a374-bb86029c18ef/f612404e-3a24-4a59-a9ce-5c4e0f1ea874/mjoq2mR
Improve attestation creation flow to include necessary key
dn53
dee69db
Add key generation logic to the attestation creation process and update the frontend to include this key in the API request.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f612404e-3a24-4a59-a9ce-5c4e0f1ea874
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/2fb4ea93-ac3a-4c8e-a374-bb86029c18ef/f612404e-3a24-4a59-a9ce-5c4e0f1ea874/mjoq2mR
Update evidence upload to align with API specifications and improve reliability
dn53
0a06d95
Refactor the evidence upload process in `static/js/main.js` and `templates/index.html` to adhere to the swagger specification for evidence and attestation management. This includes updating API endpoints, data payloads, and function calls to ensure compatibility with the backend. The changes introduce a new workflow for uploading evidence, including session initiation, file upload to a presigned URL, and finalization of the evidence entry, aiming to resolve the previously reported 404 errors and improve the overall robustness of the upload functionality. Additionally, the API for listing and retrieving attestations has been updated to use the new swagger-compliant endpoints, and functions for downloading and deleting evidence have been added.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f612404e-3a24-4a59-a9ce-5c4e0f1ea874
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/2fb4ea93-ac3a…
Enhance system with user authentication and structured logging capabilities
dn53
b54637e
Implement JWT-based user authentication, RFC 5424 compliant syslog ingestion, and improve overall logging with detailed event tracking.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 13d753dc-bbfa-446f-bcd5-3d5325a591ad
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/2fb4ea93-ac3a-4c8e-a374-bb86029c18ef/13d753dc-bbfa-446f-bcd5-3d5325a591ad/GmQROTe