fix(agt-policies): use array-path accessors for nested fields - #3794
Open
mehmet turac (mturac) wants to merge 1 commit into
Open
fix(agt-policies): use array-path accessors for nested fields#3794mehmet turac (mturac) wants to merge 1 commit into
mehmet turac (mturac) wants to merge 1 commit into
Conversation
Chained object.get returned undefined when a parent segment was missing, so deny ne/not_in rules failed open. Array-path object.get yields null for missing parents and leaves, keeping negative operators fail-closed.
mehmet turac (mturac)
requested review from
MohammadHaroonAbuomar and
liamcrumm
as code owners
August 20, 2026 21:37
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
PR Review Summary
Verdict: AI review comments are untrusted advisory output. The summary reports workflow-generated completion status only, not model-authored pass/fail claims. |
|
🟡 Contributor Check: MEDIUM
Automated check by AGT Contributor Check. |
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
ne/not_inrules still failed open when an intermediate snapshot path segment was missing, because chainedobject.getreturned undefined instead of null.object.get(input.snapshot, [...], null)accessors and keep negative operators matching on null so those denies fail closed.Fixes #3360
Test plan
_rego_field_accessor/_rego_op_clausetests/test_migrate_resolution.py