OpenCTI-Platform / opencti

Open Cyber Threat Intelligence Platform
https://opencti.io
Other
6.14k stars 912 forks source link

Variable \"$input\" got invalid value; Field \"playbook_compatible\" is not defined by type \"RegisterConnectorInput\"." #4811

Closed Orbior closed 10 months ago

Orbior commented 10 months ago

Prerequisites

Description

During deployment in portainer of CISA connector I get the following error: Variable \"$input\" got invalid value; Field \"playbook_compatible\" is not defined by type \"RegisterConnectorInput\"."

Environment

  1. OS (where OpenCTI server runs): Ubuntu 22.04.3
  2. OpenCTI version: OpenCTI 5.10.3
  3. OpenCTI client: Docker + portainer
  4. Other environment details: Docker engine comunity 24.0.6 and the following connector data added to the portainer openCTI stack: connector-cisa-known-exploited-vulnerabilities: image: opencti/connector-cisa-known-exploited-vulnerabilities:5.11.12 environment:
    • OPENCTI_URL=http://opencti:8080
    • OPENCTI_TOKEN=${OPENCTI_ADMIN_TOKEN}
    • CONNECTOR_ID=12b16368-645c-44ba-94ad-6a9ac6d0c8a7
    • CONNECTOR_TYPE=EXTERNAL_IMPORT
    • CONNECTOR_NAME=CISA Known Exploited Vulnerabilities
    • CONNECTOR_SCOPE=cisa
    • CONNECTOR_CONFIDENCE_LEVEL=80 # From 0 (Unknown) to 100 (Fully trusted)
    • CONNECTOR_UPDATE_EXISTING_DATA=false
    • CONNECTOR_RUN_AND_TERMINATE=false
    • CONNECTOR_LOG_LEVEL=debug
    • CISA_CATALOG_URL=https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json
    • CISA_CREATE_INFRASTRUCTURES=false
    • CISA_TLP=TLP:CLEAR
    • CISA_INTERVAL=2 # In days, must be strictly greater than 1 restart: always depends_on:
    • opencti

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. copy https://github.com/OpenCTI-Platform/connectors/blob/master/external-import/cisa-known-exploited-vulnerabilities/docker-compose.yml
  2. paste in portainer OpenCTI stack editor
  3. Change the change me text to valid inputs
  4. Update the stack
  5. check log files to get the following error: {'name': 'Variable "$input" got invalid value { id: "12b16368-645c-44ba-94ad-6a9ac6d0c8a7", name: "CISA Known Exploited Vulnerabilities", type: "EXTERNAL_IMPORT", scope: ["cisa"], auto: false, only_contextual: false, playbook_compatible: false }; Field "playbook_compatible" is not defined by type "RegisterConnectorInput".', 'message': 'Variable "$input" got invalid value { id: "12b16368-645c-44ba-94ad-6a9ac6d0c8a7", name: "CISA Known Exploited Vulnerabilities", type: "EXTERNAL_IMPORT", scope: ["cisa"], auto: false, only_contextual: false, playbook_compatible: false }; Field "playbook_compatible" is not defined by type "RegisterConnectorInput".'}

Additional information

ponsocopencti_connector-cisa-known-exploited-vulnerabilities_logs(2).txt Portainer_stack_enviorment.txt

SamuelHassine commented 10 months ago

Hello @Orbior,

Please align version numbers of platform, python client and connectors. This is the symptom of a mismatch.

Kind regards, Samuel

Orbior commented 10 months ago

Hello @SamuelHassine,

Thx for the reply. Seems like I was indeed using mismatched versions.