Skip to content
Snippets Groups Projects
Commit c7b526dc authored by Temur Maisuradze's avatar Temur Maisuradze
Browse files

change default admin password for thehive

parent 1f468513
No related branches found
No related tags found
No related merge requests found
...@@ -28,13 +28,13 @@ THEHIVE_KIBANA_USER: ...@@ -28,13 +28,13 @@ THEHIVE_KIBANA_USER:
THEHIVE_USERS: THEHIVE_USERS:
- kiril: - user1:
username: "kiril" username: "user1"
name: "Kiril" name: "User1"
surname: "Kiroski" surname: "SOC"
roles: '["read", "write", "admin"]' roles: '["read", "write", "admin"]'
- temur: - user2:
username: "temur" username: "user2"
name: "Temur" name: "User2"
surname: "Maisuradze" surname: "SOC"
roles: '["read", "write", "admin"]' roles: '["read", "write", "admin"]'
...@@ -28,3 +28,13 @@ ...@@ -28,3 +28,13 @@
- name: copy API key to local file - name: copy API key to local file
local_action: copy content="{{adminuserapikey}}" dest=secrets/tokens/thehive_secret_key local_action: copy content="{{adminuserapikey}}" dest=secrets/tokens/thehive_secret_key
- name: copy json file for admin pass
remote_user: root
template:
src: adminpass.json
dest: /tmp/adminpass.json
- name: change password for admin user
shell: "curl -X POST http://127.0.0.1:9000/api/v1/user/{{ adminuserid }}/password/set -b /tmp/cookie.txt -c /tmp/cookie.txt -H 'Content-Type: application/json' -d @/tmp/adminpass.json"
args:
warn: false
{"password":"{{lookup('password', '{{playbook_dir}}/secrets/passwords/thehive_adminpass')}}"}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment