Skip to content

Commit

Permalink
Editing file 'THE_HIVE_KEY'
Browse files Browse the repository at this point in the history
  • Loading branch information
ygalnezri committed Dec 9, 2024
1 parent d6358ca commit c306a67
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ EMAIL_CLASSIFICATION=INTERNAL
# THE HIVE Setup
THE_HIVE_URL=
THE_HIVE_VERIFY_SSL=False
THE_HIVE_API_KEY=
THE_HIVE_KEY=
THE_HIVE_CASE_ASSIGNEE=watcher
THE_HIVE_TAGS=Watcher,Impersonation,Malicious Domain,Typosquatting
THE_HIVE_CUSTOM_FIELD=watcher-id
Expand Down
2 changes: 1 addition & 1 deletion Watcher/Watcher/common/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def send_app_specific_notifications(app_name, context_data, subscribers):
observables = collect_observables(app_name, context_data)

thehive_url = settings.THE_HIVE_URL
api_key = settings.THE_HIVE_API_KEY
api_key = settings.THE_HIVE_KEY

def send_notification(channel, content_template, subscribers_filter, send_func, **kwargs):
"""Helper to format and send notification based on the channel."""
Expand Down
4 changes: 2 additions & 2 deletions Watcher/Watcher/common/utils/send_thehive_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ def send_thehive_alert(title, description, severity, tags, app_name, domain_name
:rtype: None
"""

if not settings.THE_HIVE_API_KEY or not settings.THE_HIVE_URL:
if not settings.THE_HIVE_KEY or not settings.THE_HIVE_URL:
print(f"{str(timezone.now())} - No configuration for TheHive, notifications disabled. Configure it in the '.env' file.")
return

thehive_url = thehive_url or settings.THE_HIVE_URL
api_key = api_key or settings.THE_HIVE_API_KEY
api_key = api_key or settings.THE_HIVE_KEY

ticket_id = None

Expand Down
2 changes: 1 addition & 1 deletion Watcher/Watcher/watcher/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
THE_HIVE_VERIFY_SSL = True
if THE_HIVE_VERIFY_SSL == "False":
THE_HIVE_VERIFY_SSL = False
THE_HIVE_API_KEY = os.environ.get('THE_HIVE_API_KEY', '')
THE_HIVE_KEY = os.environ.get('THE_HIVE_KEY', '')
THE_HIVE_CASE_ASSIGNEE = os.environ.get('THE_HIVE_CASE_ASSIGNEE', 'watcher')
THE_HIVE_TAGS = os.environ.get('THE_HIVE_TAGS', "Watcher,Impersonation,Malicious Domain,Typosquatting").split(",")
THE_HIVE_CUSTOM_FIELD = os.environ.get('THE_HIVE_CUSTOM_FIELD', 'watcher-id')
Expand Down

0 comments on commit c306a67

Please sign in to comment.