diff --git a/thehive_button/public/env.js b/thehive_button/public/env.js index 4321b85f5ee1682abd17871889a165ae8d96b465..d6c01edcd58d72ae81941580328ed1bbe4e70ea6 100644 --- a/thehive_button/public/env.js +++ b/thehive_button/public/env.js @@ -1,4 +1,4 @@ // Default plugin configuration export const THEHIVE_URL = 'https://hive.gn4-3-wp8-soc.sunet.se/'; export const THEHIVE_API_KEY = '5LymseWiurZBrQN8Kqp8O+9KniTL5cE0'; -export const THEHIVE_OWNER = 'admin'; // default owner account of the created cases +export const THEHIVE_OWNER = ''; // user to assign created cases to diff --git a/thehive_button/public/main.js b/thehive_button/public/main.js index ee46d73170d4fb43739c58468e3396caace6dcbe..0bc8b004597f1e396b753b0ca7c976e4a19c5854 100644 --- a/thehive_button/public/main.js +++ b/thehive_button/public/main.js @@ -26,6 +26,7 @@ function TheHiveButtonVisProvider(Private) { // add default parameters url: THEHIVE_URL, apikey: THEHIVE_API_KEY, + // NOTE: setting owner currently doesn't work. This is a bug in TheHive, see https://github.com/TheHive-Project/TheHive/issues/1473 owner: THEHIVE_OWNER, obsFields: [], // list of objects, e.g. {name: "clientip", type: "ip", cnt: 100} } diff --git a/thehive_button/public/options_editor.js b/thehive_button/public/options_editor.js index 38762bd463115702a0c4f03f099434485f5d59dc..8985884d6c1866d6d75384cced9198762a34dab5 100644 --- a/thehive_button/public/options_editor.js +++ b/thehive_button/public/options_editor.js @@ -116,11 +116,10 @@ export function optionsEditor(props) { </EuiFormRow> </EuiFlexItem> <EuiFlexItem grow={1}> - <EuiFormRow label="Assignee" helpText="User to assign created cases to. Must be a valid username from The Hive instance."> + <EuiFormRow label="Assignee" helpText="Assign created cases to this user instead of the owner of the API key (optional, if set, it must be a valid username from The Hive instance). **Note: This currently doesn't work due to a bug in The Hive.**"> <EuiFieldText value={stateParams.owner} onChange={e => setValue('owner', e.target.value)} - isInvalid={stateParams.owner == ""} /> </EuiFormRow> </EuiFlexItem>