TheHive-Project / TheHive-Project/Cortex
[BUG] Dockerized Cortex behind a Proxy with custom CA won't trust online analyzers
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.6k
- Forks
- 264
- PR merge metrics
- No merged PRs in 30d
Description
Using Dockerized Cortex behind a Proxy with custom CA
Request Type
Bug / Question
Work Environment
| Question | Answer |
|---|---|
| OS version (server) | CentOS |
| OS version (client) | - |
| Cortex version / git hash | 31.1 |
| Package Type | Docker |
| Browser type & version | - |
Problem Description
I'm trying to setup a cortex instance on a CentOS server. I chose the dockerized version of Cortex and Analyzers.
As the instance is behind a proxy, I Setup the right parameters to use it.
With 'local' analyzers (MISP), analysis jobs work fine. When I used online analyzers, every one of them I tested so far ends up in a failure : self signed certificate in chain.
I used to have an .RPM installation and everything worked properly. I think it comes from my custom CA which isn't mounted on Cortex container.
Any advice on this ?
Steps to Reproduce
- Setup Cortex via docker method
- Configure a Proxy Cortex should use (custom CA for HTTPS)
- Online analyzers won't trust the domaines they try to reach.
Possible Solutions
I think I should mount my custom CA bundle on Cortex Container. But in my case (according tot he documentation), Cortex itself runs other containers. Does that mean I should also find a way to mount my own CA bundle on those container ?
Complementary information
No screenshot for now, maybe later
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Docker deployment and container setup described in the issue, focusing first on how the custom CA reaches Cortex and the analyzer containers. Reproduce the proxy-backed online-analyzer failure; the work is done when online analyzers trust the custom CA while local analyzers continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- centos, docker
- Domain
- infrastructure, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100