Skip to content

fix(sensitive_data_scanner_rules): align name with linked standard pattern on write#627

Merged
riyazsh merged 1 commit into
mainfrom
riyaz/HAMR-392-sds-name-canonical
Jul 14, 2026
Merged

fix(sensitive_data_scanner_rules): align name with linked standard pattern on write#627
riyazsh merged 1 commit into
mainfrom
riyaz/HAMR-392-sds-name-canonical

Conversation

@riyazsh

@riyazsh riyazsh commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Destination API rejects a standard-pattern-linked SDS rule when attributes.name does not match the linked pattern's canonical name, causing sync to fail on create.

This aligns the name with the linked pattern's canonical name on write so create succeeds. Emits an action metric (action_sub_type:standard_pattern_name_rewrite) when the rewrite fires, for auditability.

Test plan

  • New unit tests for rewrite-fires, no-op-when-matching, no-op-without-standard-pattern, metric-emit, metric-failure-tolerant, missing-attributes.
  • pytest tests/unit/ — 928 pass.
  • ruff check clean.

@riyazsh riyazsh requested a review from a team as a code owner July 14, 2026 15:41
@riyazsh riyazsh force-pushed the riyaz/HAMR-392-sds-name-canonical branch from 913b239 to 3450892 Compare July 14, 2026 15:47
…ttern on write

Destination API rejects a standard-pattern-linked rule whose name does
not match the pattern's canonical name. Overwrite the name inside
create/update and emit a metric when the rewrite fires.
@riyazsh riyazsh force-pushed the riyaz/HAMR-392-sds-name-canonical branch from 3450892 to 891650a Compare July 14, 2026 17:32
@riyazsh riyazsh merged commit 39076f8 into main Jul 14, 2026
11 checks passed
@riyazsh riyazsh deleted the riyaz/HAMR-392-sds-name-canonical branch July 14, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants