Skip to content

Commit

Permalink
[ROR_INTR_001] improvements (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
coutoPL authored Jul 29, 2024
1 parent d74d85f commit 6977062
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 5 deletions.
14 changes: 14 additions & 0 deletions elk-ror/conf/es/readonlyrest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@ readonlyrest:
ror_kbn_auth:
name: "kbn1"

- name: "Reporting tests: user2"
auth_key: user2:dev
kibana:
index: ".kibana_user2"
access: rw
indices: [ "invoices" ]

- name: "Reporting tests: user3"
auth_key: user3:dev
kibana:
index: ".kibana_user3"
access: rw
indices: [ "invoices" ]

# USERS TO GROUPS ############
users:
- username: admin
Expand Down
15 changes: 15 additions & 0 deletions elk-ror/conf/kbn/kbn-proxy-nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
events { }

http {
upstream kbn-ror {
server kbn-ror:5601;
}

server {
listen 80;

location / {
proxy_pass http://kbn-ror;
}
}
}
3 changes: 2 additions & 1 deletion elk-ror/conf/kbn/kibana.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server.name: kibana-ror
server.name: "kibana-ror-${HOSTNAME}"
server.host: 0.0.0.0
server.port: 5601
#server.basePath: '/kibana'
Expand All @@ -20,6 +20,7 @@ elasticsearch.hosts: [ "${ES_API_URL}" ]
elasticsearch.username: kibana
elasticsearch.password: kibana
xpack.encryptedSavedObjects.encryptionKey: "19+230i1902i310293213i109312i31209302193219039120i3j23h31h3h213h123!"
xpack.reporting.encryptionKey: "321421321211231241232132132132132"
#xpack.reporting.index: '.reporting-test-index'
telemetry.enabled: false

Expand Down
25 changes: 22 additions & 3 deletions elk-ror/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,38 @@ services:
depends_on:
es-ror:
condition: service_healthy
ports:
- "5601:5601"
deploy:
mode: replicated
replicas: 3
environment:
ELASTIC_USER_PASSWORD: elastic
ES_API_URL: http://es-ror:9200
# todo: healthcheck
healthcheck:
test: [ "CMD", "curl", "--fail", "http://localhost:5601/api/status" ]
interval: 10s
timeout: 10s
retries: 30
start_period: 60s
networks:
- es-ror-network
ulimits:
memlock:
soft: -1
hard: -1

kbn-proxy:
build:
context: ../.
dockerfile: elk-ror/images/kbn/Proxy-Dockerfile
depends_on:
kbn-ror:
condition: service_healthy
ports:
- "5601:80"
# todo: healthcheck
networks:
- es-ror-network

networks:
es-ror-network:
driver: bridge
3 changes: 3 additions & 0 deletions elk-ror/images/kbn/Proxy-Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nginx:latest

COPY elk-ror/conf/kbn/kbn-proxy-nginx.conf /etc/nginx/nginx.conf
2 changes: 1 addition & 1 deletion elk-ror/stop-and-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ cd "$(dirname "$0")"

echo "Stopping and cleaning environment the tests were being run at ..."

docker-compose rm --stop --force
docker compose rm --stop --force

echo "Done!"

0 comments on commit 6977062

Please sign in to comment.