Skip to content

DLP UX — structured flags + curated output (2.10.0)#81

Merged
cdot65 merged 7 commits into
mainfrom
cdot65/dlp-ux
May 24, 2026
Merged

DLP UX — structured flags + curated output (2.10.0)#81
cdot65 merged 7 commits into
mainfrom
cdot65/dlp-ux

Conversation

@cdot65

@cdot65 cdot65 commented May 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • dlp patterns|profiles|filtering-profiles create/replace accept structured CLI flags (--name, --regex, --pattern-id, --file-based, --tag k=v, …). --body-file retained as escape hatch.
  • All DLP output formats route through a curated projection — --output json returns {items, page} for lists and {action,id,name,…} for acks. No more raw SDK envelope (tenant_id, is_parent_managed, pageable.*).
  • Ships as 2.10.0.

Test plan

  • pnpm test — 637 pass (incl. 20 new body-builder tests + reworked renderer tests)
  • pnpm build clean
  • Live tenant — patterns create via flags returns curated ack JSON; patterns delete archives
  • Reviewer: airs runtime dlp patterns list --output json should not contain tenant_id or pageable
  • Reviewer: airs runtime dlp patterns create --name x --regex "ABC" should round-trip without a JSON file

cdot65 added 7 commits May 24, 2026 04:52
list json now emits {items, page:{number,size,total,returned}} matching
the table/csv field projection. detail + ack renderers do the same.
all 5 formats now route through a curated shape instead of dumping the
raw API response.
patterns/profiles/filtering-profiles now accept --name, --regex,
--pattern-id, --file-based, etc. JSON --body-file kept as escape hatch
for complex rule trees.
patterns/profiles/filtering-profiles/dictionaries now show flag-based
create/replace as primary path; --body-file as escape hatch. List samples
updated to curated {items, page} json shape.
was hardcoded to pretty; now matches rest of DLP surface.
total values populated from real tenant; dictionaries list shape now
shows omit-null behavior; upstream-400 callout on dictionaries create.
@cdot65 cdot65 merged commit b76061d into main May 24, 2026
4 checks passed
@cdot65 cdot65 deleted the cdot65/dlp-ux branch May 24, 2026 13:23
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.

1 participant