-
Notifications
You must be signed in to change notification settings - Fork 930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Export] Inconsistency in the number of exported entities #7925
Comments
I've tried the following on Demo (public):
Will try on testing and keep you posted |
@Lhorus6 Even on testing I'm not able to reproduce this morning. I've filtered on orginal creation date greater than/equal to 08/01/24 giving me 111 entities and in all exports I got the same. I know we had an issue with markings until yesterday that could affect connectors. Could you please retry on your side/ask the customer to retry using the latest version and see if this is still happening? |
Additionnaly I think CSV export doesn't handle "simple" export and always do full |
I managed to reproduce the issue by :
=> only 71 items exported ; the one in TLP:RED has not been exported. @Lhorus6 Could you check if the user associated with the connectors have the right config (allowed markings) ? |
All export* connectors' user are part of the Connectors Group. This Group can access all markings |
And are the connectors using the right tokens ? (maybe a misconfig in the config.yml files) |
Latest findings: if the connector user belongs to several groups, and one group has a very restrictive max_shareable_markings, the most restrictive configuration applies. So the connector user might be allowed to see an entity in TLP;RED if allowed marking reaches TLP;RED, but still unable to export it if max_shareable_marking of one of the groups has TLP:GREEN for instance. Also note that if a max_shareable_marking list does not contain a marking category, this means entities with any marking of this category cannot be shared. I've done some tests playing with these parameters and I get numbers inconsistency. |
Still investigating though ; this seems to not be the case here in this issue case : we tested with the connector user configured at allowed markings = all markings, and max_shareable markings = all markings. It work as expected when I test locally, but still failing on target setup. |
"the connectors using the right tokens" -> everything is scripted, there's no reason why it shouldn't be. |
|
Ok, I would be surprise too.
No, it's for sharing data through files too, so applies in our case.
I honestly don't know why we have this behavior and why it would be relevant. I'm interested however in being consistent across the app. @nino-filigran wdyt ? |
I would agree with @Lhorus6 on this: If I'm not mistaken, when you're in several groups (let's say group A with TLP Green and Group B with TLP Red), we grant you access to TLP Red. Same applies for capabilities: we would grant you the capa of the group with higher capa. So to remain coherent, I think it would make more sense to have the same behavior : if you're in two groups and the max shareable marking is different, always take the "highest". But what I don't get is is this the root cause of the problem here? cc @romain-filigran FYI |
We can work on fixing the behavior for max_shareable_marking, that's for sure.
This could have been the root cause of the problem (as I stated earlier I can reproduce somehow the issue this way) but apparently it's not the case. I still don't know what's causing the difference in numbers. I've mostly investigated around marking access, as it seemed a good suspect, but now I'm stuck. No idea. |
We found the cause of the issue: pagination isn't handled correctly when sorting by _score. |
A fix is being worked on to make _score ordering work. |
This issue was fixed with pr OpenCTI-Platform/client-python#733 on python client |
Description
When exporting a list of entities, I get inconsistencies in the number of entities I get.
Here's an example:
On testing, when I filter on the Indicators list "Platform creation date > 7/30/2024", I get 137 results according to the UI
Environment
OCTI 6.2.10
Reproducible Steps
Steps to create the smallest reproducible scenario:
Expected Output
Having the same number of elements everywhere
Additional information
A customer reported to me these numbers that he observed on his side :
The text was updated successfully, but these errors were encountered: