BloodHound icon indicating copy to clipboard operation
BloodHound copied to clipboard

feat(OpenGraph): DB - Create/Read Extension Edge Kind Schema Entry - BED-6790

Open LawsonWillard opened this issue 1 month ago • 1 comments

Description

Added a new schema_edge_kinds table and the create and read by id methods used to interact with it. Added integration tests to cover these methods.

Motivation and Context

Resolves: BED-6790

This feature is required to enable OpenGraph schemas

How Has This Been Tested?

  • Added integration tests for DB methods.

Types of changes

  • New feature (non-breaking change which adds functionality)
  • Database Migrations

Checklist:

  • [x] I have met the contributing prerequisites
    • Assigned myself to this PR
    • Added the appropriate labels
    • Associated an issue: https://github.com/SpecterOps/BloodHound/issues/672
    • Read the Contributing guide: https://github.com/SpecterOps/BloodHound/wiki/Contributing
  • [x] I have ensured that related documentation is up-to-date
    • Open API docs
    • Code comments (GoDocs / JSDocs)
  • [x] I have followed proper test practices
    • Added/updated tests to cover my changes
    • All new and existing tests passed

Summary by CodeRabbit

  • New Features
    • Added schema edge kind management: create and retrieve edge kinds for graph schema extensions (name, description, traversability).
    • Database migration adds backing table and index for edge kinds.
  • Bug Fixes
    • Explicit error handling for duplicate edge kind names.
  • Tests
    • Integration tests covering create, retrieve, duplicate-name and not-found scenarios.

✏️ Tip: You can customize this high-level summary in your review settings.

LawsonWillard avatar Nov 25 '25 21:11 LawsonWillard