client-python icon indicating copy to clipboard operation
client-python copied to clipboard

Variables sent for import validation are not overriding connector configuration properly

Open labo-flg opened this issue 2 months ago • 1 comments

Following investigation of https://github.com/OpenCTI-Platform/connectors/issues/4924

It appears that the client-python is not handling well the passing of import variables

  • force validation
  • validation mode
  • bypass validation

It should be an override but today it's a "or", meaning that if the connector is configured with validate_before_import = true, sending force validation to false is not effective and a workbench is created.

labo-flg avatar Oct 10 '25 07:10 labo-flg

I'm not sure I understand if it's a bug or not. To my understanding, setting force_validation: false doesn't mean that we want to always import the data directly; this would be done by setting bypass_validation: true. The way I understand it, when setting bypass_validation: false and force_validation: false, it essentially means: let the connector config handle it. So the value of validate_before_import will be the one impacting the decision of creating a validation or not.

What's the scenario that's not working properly currently? Isn't it more a case where bypass_validation isn't set to true when it should be? To me, the condition as it is in the client python makes sense and seems to be the correct one

JeremyCloarec avatar Oct 10 '25 08:10 JeremyCloarec