Skip to content

feat: Add TheHive Flow configuration to TheHive profiles - #55

Merged
rafikbahri merged 5 commits into
mainfrom
44-add-thehive-flow-configuration-options-to-thehive-docker-compose-profiles
Oct 22, 2026
Merged

rafikbahri merged 5 commits into
mainfrom
44-add-thehive-flow-configuration-options-to-thehive-docker-compose-profiles

Conversation

@rafikbahri

@rafikbahri rafikbahri commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Connect TheHive to TheHive Flow (TheHive 6 settings from the official documentation).

Changes

  • prod1-thehive, prod2-thehive: documented in application.conf how to enable the connection. The settings go in thehive/config/flow.conf (holds the JWT signing key: mode 600, gitignored, enforced by check_permissions.sh), loaded by a commented include required("/etc/thehive/flow.conf"). Self-signed certificate: trust store recommended, acceptAnyCertificate marked insecure
  • testing: connection enabled. init.sh writes thehive/config/flow.conf (mode 600 from creation, gitignored, removed by reset.sh) with the validated JWT signing key of .env; application.conf requires it
  • tests/flow.sh, run in CI: Orchestrator feature reported by TheHive, unsigned request rejected by TheHive Flow (401), TheHive signed requests accepted since its last start (fails on any 401/403)
  • CI: step showing images and service state

Tests

Clean local run in CI order (init, up, readiness, flow.sh, smoke.sh, storage.sh): all pass. flow.sh fails with a wrong signing key, also on a reused stack. TheHive refuses to start without flow.conf.

Not included

TheHive API key for TheHive Flow: testing keeps the placeholder.

Closes #44

@rafikbahri rafikbahri linked an issue Oct 22, 2026 that may be closed by this pull request
2 tasks
@rafikbahri rafikbahri self-assigned this Oct 22, 2026
@rafikbahri rafikbahri added flow TheHive Flow related work. thehive labels Oct 22, 2026
@rafikbahri
rafikbahri marked this pull request as ready for review October 22, 2026 15:23
@rafikbahri
rafikbahri merged commit b388ea3 into main Oct 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flow TheHive Flow related work. thehive

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add TheHive Flow configuration options to TheHive Docker Compose profiles

1 participant