-
Notifications
You must be signed in to change notification settings - Fork 3
Add user/password elasticsearch authentication #41
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,11 +29,14 @@ services: | |
| - "${MAILHOG_WEB_PORT_HOST}:8025" | ||
|
|
||
| elasticsearch: | ||
| image: "docker.elastic.co/elasticsearch/elasticsearch-oss:7.8.0" | ||
| image: 'elastic/elasticsearch:8.4.2' | ||
| env_file: | ||
| - .env | ||
| environment: | ||
| - "discovery.type=${ES_DISCOVERY_TYPE:-single-node}" | ||
| - "ES_JAVA_OPTS=${ES_JAVA_OPTS:--Xms512m -Xmx512m}" | ||
| - xpack.security.enabled=true | ||
| - action.destructive_requires_name= false # because in unit tests setup we delete all indexes, and wildcards and _all are not allowed with security enabled | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be removed: it needs to work also with this restriction active. We use |
||
| - ELASTIC_PASSWORD=mySecretPassword | ||
| ports: | ||
| - "${ES_PORT_HOST}:9200" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,6 +50,11 @@ services: | |
| Webgriffe\AmpElasticsearch\Client: | ||
| arguments: | ||
| $baseUri: '%elasticsearch_base_uri%' | ||
| calls: | ||
| - method: 'setCredentials' | ||
| arguments: | ||
| - '%elasticsearch_user%' | ||
| - '%elasticsearch_password%' | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What if someone is working with Elasticsearch without the security pack, meaning no user/password authentication is required? We need to ensure backward compatibility and support scenarios where a username and password are not provided. |
||
|
|
||
| annotation_reader: | ||
| class: \Doctrine\Common\Annotations\AnnotationReader | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be changed to require the correct release version of webgriffe/amp-elasticsearch