Skip to content
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

MISP Connector (docker) fails with key error #33

Closed
andurin opened this issue Nov 21, 2019 · 0 comments
Closed

MISP Connector (docker) fails with key error #33

andurin opened this issue Nov 21, 2019 · 0 comments
Assignees
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)

Comments

@andurin
Copy link

andurin commented Nov 21, 2019

Description

Running misp-connector in docker without providing the config as volumes. So just setting the right environment vars. MISP Connector fails caused with a key error wanting to get the values from the config.

Environment

  1. OS (where OpenCTI server runs): Latest Docker
  2. OpenCTI version: { e.g. OpenCTI 2.0.2 }
  3. OpenCTI client: { e.g. frontend or python }
  4. Other environment details:

Reproducible Steps

  1. Create opencti-connector-misp container without configuration accessible through volumes and 2. login to the instance.
  2. cd into /opt/opencti....
  3. python ./misp.py

Expected Output

Running misp connector

Actual Output

Traceback (most recent call last):
  File "./misp.py", line 398, in <module>
    mispConnector = Misp()
  File "./misp.py", line 24, in __init__
    self.misp_tag = os.getenv('MISP_TAG') or config['misp']['tag'] if 'tag' in config['misp'] else None
KeyError: 'misp'
andurin pushed a commit to andurin/connectors that referenced this issue Nov 21, 2019
Relates OpenCTI-Platform#33

Traceback (most recent call last):
  File "./misp.py", line 398, in <module>
    mispConnector = Misp()
  File "./misp.py", line 24, in __init__
    self.misp_tag = os.getenv('MISP_TAG') or config['misp']['tag'] if 'tag' in config['misp'] else None
KeyError: 'misp'
@SamuelHassine SamuelHassine self-assigned this Dec 16, 2019
@SamuelHassine SamuelHassine added the bug use for describing something not working as expected label Dec 16, 2019
@SamuelHassine SamuelHassine added this to the Release 2.1.2 milestone Dec 16, 2019
@SamuelHassine SamuelHassine added the solved use to identify issue that has been solved (must be linked to the solving PR) label Dec 25, 2019
axelfahy pushed a commit to Sqooba/connectors that referenced this issue Jul 21, 2023
* Move entityType

* Remove print stmt

Co-authored-by: sqooba_yann <yschoeni@open-systems.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)
Projects
None yet
Development

No branches or pull requests

2 participants