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

Allow arbitrary parameters for a job #86

Closed
To-om opened this Issue Apr 9, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@To-om
Contributor

To-om commented Apr 9, 2018

Request Type

Feature Request

Work Environment

Cortex 2.0.2

Problem Description

When submitting job, parameters can be set but they are merged with configuration and must be declared in analyzer definition file (json file). The aim of this issue is to permit to send arbitrary parameters to an analyzer. Parameters will not be merged with configuration anymore but added in new "parameters" key. Parameters must be a JSON object.

With the job request:

{
  "data": "127.0.0.1",
  "dataType": "ip",
  "tlp": 2,
  "message": "here",
  "parameters": {
    "param1": "value1",
    "param2": "value2",
  }
}

the analyzer will receive:

{
  "data": "127.0.0.1",
  "dataType": "ip",
  "tlp": 2,
  "message": "here",
  "config": { ... },
  "parameters": {
    "param1": "value1",
    "param2": "value2",
  }
}

@To-om To-om added the enhancement label Apr 9, 2018

@To-om To-om added this to the 2.0.3 milestone Apr 9, 2018

@To-om To-om self-assigned this Apr 9, 2018

To-om added a commit that referenced this issue Apr 9, 2018

@To-om To-om closed this Apr 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment