feat: add entity verification and migrate audit logs to actor model (CM-966)#3863
Merged
feat: add entity verification and migrate audit logs to actor model (CM-966)#3863
Conversation
…ization identities
backend/src/database/migrations/V1771403085__add_entity_verification_and_extend_audit_logs.sql
Show resolved
Hide resolved
gaspergrom
approved these changes
Feb 23, 2026
themarolt
approved these changes
Feb 23, 2026
mbani01
approved these changes
Feb 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces entity verification metadata and migrates audit logging to a generic actor model. It prepares the platform for cross-product usage (e.g. LFX One) and clearer provenance of data.
What changed
userIdtoactorId/actorTypeinauditLogAction, including backfill and index updates.auditLogstable usage, old repository/model/API hooks, and old cleanup job path).memberIdentities:source,verifiedByorganizationIdentities:sourcememberOrganizations:verified,verifiedByui,integration,enrichment) and carried through backend/services/workers.Note
High Risk
Includes a breaking DB migration (drops
auditLogs, removesuserIdfromauditLogAction) and broad cross-service type/contract changes (audit log shape and identity creation payloads), so mismatches can cause runtime errors or missing audit/provenance data.Overview
Audit logs are migrated to an actor model. The DB migration adds
actorId/actorTypetoauditLogAction(backfills fromuserId, enforces NOT NULL, indexesactorId), updates DAL query/insert paths to use actor fields and return anactorobject, and updates the UI/filters from User to Actor (including service actors) while removing the legacy/audit-logendpoint and dropping the unusedauditLogstable.Identity provenance + verification metadata is standardized end-to-end. New
source/verifiedBy(and work-experienceverified/verifiedBy) columns are introduced, member/org identity creation flows now pass and persistsource(e.g.ui,integration,enrichment) across backend services, workers, OpenSearch seed data, and types; the DAL member identity module is consolidated (removingmember_identities), and a large set of repositories stop writing legacy audit-log records via the removedAuditLogRepository/model/cleanup job path.Written by Cursor Bugbot for commit 8233574. This will update automatically on new commits. Configure here.