Skip to content

rust: validate record-key components before landing #971

Closed

Description

@athvin

Evidence

Person and account standardization build record_key by concatenating source_system || ':' || source_record_id. The canonical er_ids::record_key rejects empty components and colons, but ingest does not apply that validation. For example, source a:b with ID c and source a with ID b:c produce the same key. Source.

Change

Validate source names in configuration and source record IDs before landing; defend direct standardization callers too. Keep the existing key format for valid values.

Done when

  • Empty and colon-containing components fail before rows are landed.
  • The two-pair collision is covered by a regression test.
  • Existing valid record keys remain byte-for-byte stable.

Activity

  1. added
    code-cleanup
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions