From 66d25bde9a2a53423a6f57cf11e2f0720d80f1c0 Mon Sep 17 00:00:00 2001 From: David Venable Date: Tue, 9 Nov 2021 21:20:35 -0600 Subject: [PATCH] Turn on authentication of core APIs by default in Docker images using the username 'admin' and password 'admin'. #312 Signed-off-by: David Venable --- release/docker/README.md | 10 +++++----- release/docker/config/default-data-prepper-config.yaml | 6 +++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/release/docker/README.md b/release/docker/README.md index 1acd44ba39..1c78ac2889 100644 --- a/release/docker/README.md +++ b/release/docker/README.md @@ -28,8 +28,8 @@ Below is an example command which can also be used to run the built image. ``` docker run \ --name data-prepper-test \ - --expose 21890 \ - -v /workplace/github/simple-ingest-transformation-utility-pipeline/examples/config/example-pipelines.yaml:/usr/share/data-prepper/pipelines.yaml \ - -v /workplace/github/simple-ingest-transformation-utility-pipeline/examples/config/example-data-prepper-config.yaml:/usr/share/data-prepper/data-prepper-config.yaml \ - data-prepper/data-prepper:1.0.0 -``` \ No newline at end of file + -p 21890:21890 -p 4900 \ + -v ${PWD}/examples/config/example-pipelines.yaml:/usr/share/data-prepper/pipelines.yaml \ + -v ${PWD}/examples/config/example-data-prepper-config.yaml:/usr/share/data-prepper/data-prepper-config.yaml \ + opensearch-data-prepper:1.2.0-SNAPSHOT +``` diff --git a/release/docker/config/default-data-prepper-config.yaml b/release/docker/config/default-data-prepper-config.yaml index 1e0b9fc782..63a411bc84 100644 --- a/release/docker/config/default-data-prepper-config.yaml +++ b/release/docker/config/default-data-prepper-config.yaml @@ -3,4 +3,8 @@ keyStoreFilePath: "/usr/share/data-prepper/keystore.p12" keyStorePassword: "password" privateKeyPassword: "password" serverPort: 4900 -metricRegistries: [Prometheus] \ No newline at end of file +metricRegistries: [Prometheus] +authentication: + http_basic: + username: admin + password: admin