Open torsolaso opened 3 years ago
Maybe a solution could be to use a toast like "No MISP config available" like this:
How did you link organisation with misp ? Can you share your configuration ?
Sure, below is attached the configuration regarding MISP testing.
On the screenshot, LEFT is ORGANIZATION_D (no MISP config) and RIGHT is ORGANIZATION_A
## MISP configuration
# More information at https://github.com/TheHive-Project/TheHiveDocs/TheHive4/Administration/Connectors.md
play.modules.enabled += org.thp.thehive.connector.misp.MispModule
misp {
interval: 5m
servers: [
{
name = "ORGANIZATION_A"
url = "https://mispInstance"
auth {
type = key
key = "apiKey2"
}
purpose = ImportAndExport
tags = ["MISP-testing"]
max-attributes = 2000
max-size = 16 MiB
max-age = 30 days
exclusion {
organisation = ["ORGANIZATION_A"]
}
includedTheHiveOrganisations = ["ORGANIZATION_A"]
},
{
name = "ORGANIZATION_B"
url = "https://mispInstance"
auth {
type = key
key = "apiKey1"
}
purpose = ImportAndExport
tags = ["MISP-testing"]
max-attributes = 2000
max-size = 16 MiB
max-age = 30 days
exclusion {
organisation = ["ORGANIZATION_B"]
}
includedTheHiveOrganisations = ["ORGANIZATION_B"]
},
{
name = "ORGANIZATION_C"
url = "https://mispInstance"
auth {
type = key
key = "apiKey2"
}
purpose = ExportOnly
tags = ["MISP-testing"]
max-attributes = 2000
max-size = 16 MiB
max-age = 30 days
exclusion {
organisation = ["ORGANIZATION_C"]
}
includedTheHiveOrganisations = ["ORGANIZATION_C"]
}
]
}
# Define maximum size of attachments (default 10MB
play.http.parser.maxDiskBuffer: 1GB
play.http.parser.maxMemoryBuffer = 100M
play.akka.server.terminationTimeout = infinite
play.server.akka.terminationTimeout = null
I tested it on version 4.1.7 and the behavior remains the same. Should this be the expected behavior @To-om ?
@To-om Were you able to reproduce this behavior with the information I provided?
Request Type
Bug
Work Environment
Problem Description
When you click on "Export" button, Thv4 always show you all MISP instances that you configured, even though it has not been configured for this organization
Steps to Reproduce
Possible Solutions
Check organisation MISP configuration.
Complementary information
LEFT is STEP 9 and RIGHT is STEP 13