Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ROR_INTR_001] improvements #2

Merged
merged 3 commits into from
Jul 29, 2024
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
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!"
Loading