fix: Move URL from secrets.toml to config.toml for asset upload feature - BED-9063 - #63
fix: Move URL from secrets.toml to config.toml for asset upload feature - BED-9063#63StranDutton wants to merge 2 commits into
Conversation
WalkthroughThe converter no longer defines BloodHound credentials or client state. BloodHound destination functions now default their URL from ChangesBloodHound configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/openhound/destinations/bloodhound/destination.py`:
- Line 1: Restore the malformed import at the start of
src/openhound/core/convert.py by separating the module reference from the
logging import, ensuring convert.py contains a valid Python import statement and
can be loaded by both destinations.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 179e67f9-d8ad-4ea6-8078-25ca2f41ac51
📒 Files selected for processing (2)
src/openhound/core/convert.pysrc/openhound/destinations/bloodhound/destination.py
💤 Files with no reviewable changes (1)
- src/openhound/core/convert.py
|
Moving this work to |
BED-9063: Split BloodHound asset upload config between config.toml and secrets.toml
Context
BED-8838 moved the BHE URL out of
secrets.tomlintoconfig.tomlfor the scheduler/collection destination (destination.bloodhoundenterprise), but missed the CLI Asset Upload destination (destination.bloodhound), which still requiredurlas a secret.Changes
destinations/bloodhound/destination.py:urlparam onsaved_searchesandprivilege_zonesnow resolves viadlt.config.valueinstead ofdlt.secrets.value.tokenremainsdlt.secrets.value.core/convert.py: Removed dead code left over from an abandoned first implementation — theCredentialsdataclass,Converter._credentialsproperty, and the unusedself.client/self.upload_idattributes (and their now-unusedBloodHoundimport). These referenced a client that was never actually instantiated; the real ingest path usesBloodHoundEnterprisevia the@dlt.destinationfunction pattern.Important
Please open a related PR for an update to the offical BloodHound documentation!
Testing
pytestsuite rundlt.config.valuestill resolvesurlif a user'ssecrets.tomlstill has it there.Summary by CodeRabbit