-
Notifications
You must be signed in to change notification settings - Fork 37
feat: add CreateAuditRecord
RPC
#1124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Pull Request Test Coverage Report for Build 17573432177Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a new CreateAuditRecord
RPC endpoint that allows creating audit records with improved data structure compared to the legacy audit logs system. The implementation includes comprehensive validation, idempotency support, and database-level immutability constraints.
- Adds new
CreateAuditRecord
RPC with comprehensive validation and idempotency - Implements new audit record data models with actor, resource, and target entities
- Adds database migration with immutability triggers to prevent record modifications
- Includes session management endpoints and deprecates legacy audit log endpoints
Reviewed Changes
Copilot reviewed 35 out of 37 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
proto files | Added new session and audit record message definitions, RPC endpoints, and validation |
internal/store/postgres | Added audit record repository with immutability constraints and comprehensive tests |
internal/api/v1beta1connect | Added service interface and error handling for audit records |
pkg/metadata | Added utility function for safely building metadata from protobuf structs |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
No description provided.