Skip to content

DRAFT: Bloodhound Integration#655

Closed
chrismaddalena wants to merge 54 commits into
masterfrom
bloodhound-integration
Closed

DRAFT: Bloodhound Integration#655
chrismaddalena wants to merge 54 commits into
masterfrom
bloodhound-integration

Conversation

@chrismaddalena

@chrismaddalena chrismaddalena commented Aug 1, 2025

Copy link
Copy Markdown
Collaborator

Draft PR for the BloodHound integration work.

@codecov

codecov Bot commented Aug 1, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 43.75000% with 198 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.53%. Comparing base (1b1d2ce) to head (c75b469).
⚠️ Report is 30 commits behind head on master.

Files with missing lines Patch % Lines
ghostwriter/shepherd/external/bloodhound/client.py 25.94% 137 Missing ⚠️
ghostwriter/rolodex/views.py 29.57% 50 Missing ⚠️
ghostwriter/commandcenter/models.py 66.66% 7 Missing ⚠️
ghostwriter/reporting/models.py 50.00% 3 Missing ⚠️
ghostwriter/api/templatetags/json_enc.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #655      +/-   ##
==========================================
- Coverage   92.38%   91.53%   -0.86%     
==========================================
  Files         342      353      +11     
  Lines       19771    20101     +330     
==========================================
+ Hits        18266    18400     +134     
- Misses       1505     1701     +196     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

aparrill-specterops and others added 14 commits August 6, 2025 10:44
The endpoint is available on both the admin page and the project page.
It wasn't passing down arguments to the base
The SelectReportTemplateFormTests was checking for both template
fields to be required, even though the autosave didn't require that and
it interfered with the new export buttons.
Can now just assign a variable either a Project or the global config
and access fields duck-typedly.
Display the raw data available to templates. Filtering may come later.
chrismaddalena and others added 26 commits September 15, 2025 13:54
Shows the Test/Fetch BloodHound buttons on the BloodHound tab always.

Refactors the views a bit to deduplicate some logic as well.
Remove BloodHound data from admin panel since it won't have bootstrap.
The settings overrides MESSAGE_TAGS to work with bootstrap but not
with the admin panel. Work around this by manually passing the "error"
class to the message.
Rather than passing a ton of formatting arguments to the init of
the report writer and converters, just pass in the ReportTemplate object
and get the formatting properties from that.
BloodHound assets use H1/H2 headings, which isn't what's wanted when
embedding them into a report. This patch adds a setting to the
ReportTemplate to increase the heading's level by a configurable amount
(ex. heading 1 with offset 2 becomes heading 3).
@chrismaddalena

Copy link
Copy Markdown
Collaborator Author

Closing this in favor of the release/v6.1.0 branch we have in progress.

@chrismaddalena chrismaddalena deleted the bloodhound-integration branch February 24, 2026 19:49
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.

4 participants