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

[7.x] Create opbeans_user/role with write/read access for the opbeans-python (#1063) #1064

Merged
merged 1 commit into from
Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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