opensearch security is stupid

This commit is contained in:
Luna D. 2024-05-24 22:04:23 +02:00
parent da7dae20f9
commit 9bf7d32975
No known key found for this signature in database
GPG key ID: 4B1C63448394F688
3 changed files with 18 additions and 4 deletions

View file

@ -31,7 +31,7 @@ services:
- IMAGE_URL_ROOT=/img
- BADGE_URL_ROOT=/badge-img
- TAG_URL_ROOT=/tag-img
- OPENSEARCH_URL=https://admin:admin@opensearch:9200
- OPENSEARCH_URL=http://opensearch:9200
- REDIS_HOST=valkey
- DATABASE_URL=ecto://postgres:postgres@postgres/philomena_dev
- CDN_HOST=localhost
@ -72,10 +72,9 @@ services:
image: opensearchproject/opensearch:2.14.0
volumes:
- opensearch_data:/usr/share/opensearch/data
- ./docker/opensearch/opensearch.yml:/usr/share/opensearch/config/opensearch.yml
logging:
driver: "none"
environment:
- discovery.type=single-node
ulimits:
nofile:
soft: 65536

View file

@ -38,7 +38,7 @@ npm install
# if it's not done doing whatever it does yet
echo -n "Waiting for OpenSearch"
until wget --no-check-certificate -qO - https://admin:admin@opensearch:9200; do
until wget --no-check-certificate -qO - http://opensearch:9200; do
echo -n "."
sleep 2
done

View file

@ -0,0 +1,15 @@
---
cluster.name: docker-cluster
# Bind to all interfaces because we don't know what IP address Docker will assign to us.
network.host: 0.0.0.0
# Setting network.host to a non-loopback address enables the annoying bootstrap checks. "Single-node" mode disables them again.
discovery.type: single-node
# Disable security. We don't need it for dev environment.
# Also, whoever thought it's a GREAT IDEA TO ENFORCE SECURITY FEATURES
# BY DEFAULT IN A FREAKING DOCKER CONTAINER should be forced to play
# the password game every time they would like to create a new account
# anywhere whatsoever.
plugins.security.disabled: true