forked from TremoloSecurity/kube-oidc-proxy
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
Title:
As a system administrator, I want to use an API endpoint to store audit logs in a new table within the Ops-dashboard.
Description:
In this version, an API endpoint will be developed in the Ops-dashboard to capture and store audit logs. These logs will be saved in a dedicated table within the Ops-dashboard database to ensure all relevant actions are recorded.
Acceptance Criteria:
-
API Endpoint for Audit Logs:
- An API endpoint is available to log system actions.
-
Database Table:
- A new table is created within the Ops-dashboard database for storing audit logs.
- The table includes necessary fields like action type, timestamp, user ID, resource ID, and description.
-
Data Integrity:
- The API ensures all incoming log entries are correctly formatted and stored.
-
Error Handling:
- Proper error handling and logging mechanisms are in place for API failures.
Steps for Validation:
- Send requests to the API endpoint with valid log data.
- Verify that the logs are correctly stored in the database table.
- Test the API with invalid data to ensure appropriate error messages are returned.
- Check the database to confirm all log entries are stored accurately.
Reactions are currently unavailable