Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Create opbeans_user/role with write/read access for the opbeans-python (
Browse files Browse the repository at this point in the history
#1063)

# Conflicts:
#	scripts/modules/opbeans.py
  • Loading branch information
v1v committed Feb 22, 2021
1 parent 1e4cd13 commit 7c2c429
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docker/elasticsearch/roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ metricbeat:
indices:
- names: ['metricbeat-*', 'shrink-metricbeat-*']
privileges: ['all']
opbeans:
indices:
- names: ['opbeans-*']
privileges: ['write', 'read']
1 change: 1 addition & 0 deletions docker/elasticsearch/users
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ filebeat_user:$2a$10$sFxIEX8tKyOYgsbJLbUhTup76ssvSD3L4T0H6Raaxg4ewuNr.lUFC
heartbeat_user:$2a$10$nKUGDr/V5ClfliglJhfy8.oEkjrDtklGQfhd9r9NoFqQeoNxr7uUK
kibana_system_user:$2a$10$nN6sRtQl2KX9Gn8kV/.NpOLSk6Jwn8TehEDnZ7aaAgzyl/dy5PYzW
metricbeat_user:$2a$10$5PyTd121U2ZXnFk9NyqxPuLxdptKbB8nK5egt6M5/4xrKUkk.GReG
opbeans_user:$2a$10$iTy29qZaCSVn4FXlIjertuO8YfYVLCbvoUAJ3idaXfLRclg9GXdGG
3 changes: 2 additions & 1 deletion docker/elasticsearch/users_roles
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ filebeat:filebeat_user
heartbeat:heartbeat_user
ingest_admin:apm_server_user
kibana_system:kibana_system_user
kibana_user:apm_server_user,apm_user_ro,beats_user,filebeat_user,heartbeat_user,metricbeat_user
kibana_user:apm_server_user,apm_user_ro,beats_user,filebeat_user,heartbeat_user,metricbeat_user,opbeans_user
metricbeat:metricbeat_user
opbeans:opbeans_user
superuser:admin
2 changes: 2 additions & 0 deletions scripts/modules/opbeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,8 @@ def _content(self):
"ELASTIC_APM_SOURCE_LINES_SPAN_LIBRARY_FRAMES",
"REDIS_URL=redis://redis:6379",
"ELASTICSEARCH_URL={}".format(self.es_urls),
"OPBEANS_USER=opbeans_user",
"OPBEANS_PASS=changeme",
"OPBEANS_SERVER_URL=http://opbeans-python:3000",
"PYTHON_AGENT_BRANCH=" + self.agent_branch,
"PYTHON_AGENT_REPO=" + self.agent_repo,
Expand Down
2 changes: 2 additions & 0 deletions scripts/tests/localsetup_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ def test_opbeans_python(self):
- ELASTIC_APM_SOURCE_LINES_SPAN_LIBRARY_FRAMES
- REDIS_URL=redis://redis:6379
- ELASTICSEARCH_URL=http://elasticsearch:9200
- OPBEANS_USER=opbeans_user
- OPBEANS_PASS=changeme
- OPBEANS_SERVER_URL=http://opbeans-python:3000
- PYTHON_AGENT_BRANCH=
- PYTHON_AGENT_REPO=
Expand Down

0 comments on commit 7c2c429

Please sign in to comment.