feat: add airs runtime dlp commands#78
Merged
Merged
Conversation
…status='deleted')
This was referenced May 23, 2026
Closed
Pulls in nullable DLP response schema fixes (cdot65/prisma-airs-sdk#159). Resolves Zod parse failures on filtering-profiles list against live tenant (null on description, is_end_user_coaching_enabled, euc_template_id, rule1, rule2; numeric epoch on audit_metadata.updated_at).
This was referenced May 23, 2026
Unblocks data-patterns list + data-profiles list against live tenant. Resolves Zod nulls on matching_rules.* and expression_tree.* nested schemas via SDK PR #161.
Real redacted output captured against live tenant after SDK ^0.9.2 re-pin. Filtering-profiles and dictionaries: full list+get. Patterns/profiles: list only — added known-issue notes flagging the upstream GET-by-id 400 (verified server-side via curl, not addressable from CLI/SDK).
This was referenced May 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
airs runtime dlpgroup: 20 commands across filtering-profiles, patterns, profiles, dictionaries@cdot65/prisma-airs-sdkpin:^0.8.3→^0.9.2PANW_DLP_ENDPOINTenv vargetOrCreateManagementClient()factory so DLP + mgmt services share OAuth token cacheSubclient surface
deleteprints patch-profile_status=deletedidiom + exits 2replacemay return 200+body or 204 (re-gets; falls back to "(state not echoed)" on transient failure)Merge-patch UX
patchcommands accept JSON Merge Patch via--set k=v/--clear k(mutex with--body-file). Values coerced (numbers/booleans/JSON literals);'"5"'to force string.--set k=nullrejected — use--clear.SDK pin chain
^0.9.0→^0.9.1: widened nullable sweep onDataFilteringProfileResponse+AuditResponseSchema(fixed filtering-profiles list against real tenants)^0.9.1→^0.9.2: extended sweep toDataPatternResponseSchema.matching_rules+DataProfileResponseSchema.expression_tree(unblocks patterns/profiles list)Coverage
src/airs/dlp/**: 95.23% stmts / 96.87% branches / 96.55% funcs / 95.23% lines. Project thresholds pass.Live validation matrix (SDK 0.9.2, 2026-05-23)
filtering-profiles listfiltering-profiles get <id>patterns list(1118 elements parsed)patterns get <id>profiles list(30 elements parsed)profiles get <id>dictionaries list(32 elements)dictionaries get <id>The two
get400s are server-side (reproducible via rawcurl); flagged as known issues indocs/runtime/dlp/{patterns,profiles}.md.Test plan
pnpm test— passespnpm run lint && pnpm exec tsc --noEmit && pnpm run build— all cleanpnpm run dev runtime dlp --helpshows all 4 subgroupspnpm run dev runtime dlp profiles delete some-idprints stub + exits 2Related SDK work (shipped)
Related CLI work
--debugJSONL allowlist fix (separate, mergeable independently)