Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soctools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gn4-3-wp8-t3.1 SOC
soctools
Commits
c7b526dc
Commit
c7b526dc
authored
4 years ago
by
Temur Maisuradze
Browse files
Options
Downloads
Patches
Plain Diff
change default admin password for thehive
parent
1f468513
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
group_vars/all/users.yml
+8
-8
8 additions, 8 deletions
group_vars/all/users.yml
roles/thehive/tasks/adminuser.yml
+10
-0
10 additions, 0 deletions
roles/thehive/tasks/adminuser.yml
roles/thehive/templates/adminpass.json
+1
-0
1 addition, 0 deletions
roles/thehive/templates/adminpass.json
with
19 additions
and
8 deletions
group_vars/all/users.yml
+
8
−
8
View file @
c7b526dc
...
@@ -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"]'
This diff is collapsed.
Click to expand it.
roles/thehive/tasks/adminuser.yml
+
10
−
0
View file @
c7b526dc
...
@@ -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
This diff is collapsed.
Click to expand it.
roles/thehive/templates/adminpass.json
0 → 100644
+
1
−
0
View file @
c7b526dc
{
"password"
:
"{{lookup('password', '{{playbook_dir}}/secrets/passwords/thehive_adminpass')}}"
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment