Skip to content

Conversation

AmanGIT07
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Sep 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
frontier Ready Ready Preview Comment Sep 9, 2025 6:09am

@AmanGIT07 AmanGIT07 enabled auto-merge (squash) September 8, 2025 10:07
@coveralls
Copy link

coveralls commented Sep 8, 2025

Pull Request Test Coverage Report for Build 17573432177

Warning: 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

  • 352 of 392 (89.8%) changed or added relevant lines in 10 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.7%) to 31.79%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/api/v1beta1connect/v1beta1connect.go 0 1 0.0%
internal/store/postgres/postgres.go 0 2 0.0%
cmd/serve.go 0 4 0.0%
pkg/server/connect_interceptors/authorization.go 0 4 0.0%
internal/store/postgres/null_converters.go 32 37 86.49%
internal/api/v1beta1connect/audit_record.go 108 118 91.53%
internal/store/postgres/audit_record_repository.go 48 62 77.42%
Totals Coverage Status
Change from base Build 17558370692: 0.7%
Covered Lines: 10728
Relevant Lines: 33746

💛 - Coveralls

@rohilsurana rohilsurana requested a review from Copilot September 8, 2025 10:46
Copy link
Contributor

@Copilot Copilot AI left a 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.

@AmanGIT07 AmanGIT07 merged commit 822ec98 into main Sep 9, 2025
9 of 10 checks passed
@AmanGIT07 AmanGIT07 deleted the create-audit-record branch September 9, 2025 06:19
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.

4 participants