-
Notifications
You must be signed in to change notification settings - Fork 588
Closed
Labels
bugSomething isn't workingSomething isn't workingclicommand line toolingcommand line toolingcommunitypythonInternal python for the repositoryInternal python for the repository
Description
Description:
It is impossible to upload rules to a internally or locally hosted instance by using the Python script.
The cause seems to be one of the parameters in line 118 of the /detection-rules/kibana/connector.py file:
payload = {'params': payload, 'currentURL': '', 'providerType': 'basic', 'providerName': 'cloud-basic'}
Should the 'ProviderName' be hardcoded here?
Steps to reproduce the behavior:
- Execute the command:
python -m detection_rules kibana --kibana-url xxx -ku username -kp password upload-rule example.toml
where xxx is internally hosted instance of kibana
Expected behavior:
Rule successfully uploaded to Kibana
Actual behavior:
Python returns an error:
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url:xxx
- OS: Ubuntu
- Version: 20.04
- OS: Centos
- Version 7.8
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingclicommand line toolingcommand line toolingcommunitypythonInternal python for the repositoryInternal python for the repository