-
Notifications
You must be signed in to change notification settings - Fork 244
BED-6631: RODC Default Selector Broken Due To Incorrect Cypher #1981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughA SQL migration is introduced that adds a new "Read-Only DCs" asset group tag selector to Tier Zero. The migration creates a selector entry with a cypher targeting the Changes
Sequence DiagramsequenceDiagram
participant Migration as v8.3.0 Migration
participant DB as Database
Migration->>DB: Check if "Read-Only DCs" selector exists
alt Selector does not exist
Migration->>DB: Insert into asset_group_tag_selectors<br/>(name, cypher, description)
DB-->>Migration: Return inserted id & name
Migration->>DB: Insert into asset_group_tag_selector_seeds<br/>(using returned id)
DB-->>Migration: Seed created
else Selector already exists
DB-->>Migration: Skip insertion
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Reasoning: Single migration file following established selector-upsert patterns with straightforward CTE logic. Primary focus should be verifying correct SQL syntax, accurate Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
n.isreadonlydc = true
for the cypher query of the RO-DC default selectorMotivation and Context
This PR addresses:
Why is this change required? What problem does it solve?
isReadOnlyDC
. The attribute in BloodHound is case-sensitive and is actually stored asisreadonlydc
. This fix will allow results to be returned when running the cypher queryHow Has This Been Tested?
Screenshots (optional):
Types of changes
Checklist:
Summary by CodeRabbit
New Features
Chores