Skip to content

fix: fetch real audit logs from backend API in SecretAuditLog (#3988)#3991

Merged
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-3988
Apr 8, 2026
Merged

fix: fetch real audit logs from backend API in SecretAuditLog (#3988)#3991
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-3988

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 8, 2026

Summary

Replaces hardcoded mock audit entries with real backend audit log data. SecretAuditLog component now fetches and displays actual audit logs from the API instead of using static mock data.

Changes

  • Created useSecretsAuditApi composable for API integration
  • Updated SecretAuditLog.vue to fetch and display real audit logs from /api/audit/logs
  • Added pagination, filtering, and proper error handling
  • Supports action types: access, inject, copy, reveal, read, create, update, delete
  • Implemented timestamp formatting and audit entry transformation
  • Added loading and error states

Testing

  • Audit logs now display real data from backend API
  • Filtering by action type and user works correctly
  • Pagination displays entries properly
  • Loading and error states show appropriately
  • Timestamp formatting is consistent across the component

Closes #3988

Replace hardcoded mock audit entries with real backend data:
- Created useSecretsAuditApi composable for fetching/filtering audit logs
- Updated SecretAuditLog.vue to use real API data instead of mocks
- Added loading/error states and pagination support
- Implemented filtering by action type and user
- Added proper timestamp formatting and audit entry transformation
@mrveiss mrveiss merged commit 0facbc0 into Dev_new_gui Apr 8, 2026
1 of 3 checks passed
@mrveiss mrveiss deleted the fix/issue-3988 branch April 8, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant