fix: move non-sensitive data out of secrets.toml - BED-8838#57
Conversation
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
💤 Files with no reviewable changes (3)
WalkthroughThe BloodHound Enterprise destination's ChangesBHE URL config vs secrets migration
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)Not applicable — the changes are configuration/documentation adjustments and a single default-value switch, with no new multi-component control flow. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
|
Need to coordinate the release timing so that public/official documentation is updated at the same time |
Splits the BHE destination url out of
secrets.tomland intoconfig.toml, so thatsecrets.tomlcontains only credentials (token id and key), whileconfig.tomlholds non-sensitive config./resolves BED-8838
Note
This change is backward-compatible - existing collectors will still work if URL is left in
secrets_<collector-name>.tomlafter the update. Read below to find relevant DLT documentation that confirms this behavior.docker-compose.yml(for enterprise) to reflect changes.intervalwhich needed to be removedDLT Config Documentation - our situation applies to rule #4.
-> Previously, we referenced the BHE URL via
dlt.secrets.value- this meant that value had to be defined as an env variable or inside ofsecrets.toml. Because of how secret injection works, our update to now grab the URL fromdlt.config.valueallows DLT to search through the 2 previously mentioned places (env variables andsecrets.toml) in ADDITION toconfig.toml. As a result, the URL can now be defined insecrets.tomlorconfig.toml. **One caveat ** is that if URL is that, if URL defined in both files, the one insecrets.tomlwill take precedence after this change due to DLT's hierarchy.Summary by CodeRabbit
Bug Fixes
Documentation