From f9937a4f499db381c585b1ca536801bd761e3bee Mon Sep 17 00:00:00 2001 From: Varun Jain Date: Sat, 27 Jan 2024 00:24:01 +0530 Subject: [PATCH] Remove references to admin:admin (#551) Remove references to admin:admin (#551) Signed-off-by: Varun Jain --- DEVELOPER_GUIDE.md | 9 ++++----- gradle/formatting.gradle | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/DEVELOPER_GUIDE.md b/DEVELOPER_GUIDE.md index f19f178c4..acbb00883 100644 --- a/DEVELOPER_GUIDE.md +++ b/DEVELOPER_GUIDE.md @@ -137,12 +137,11 @@ Additionally, it is also possible to run a cluster with security enabled: ./gradlew run -Dsecurity.enabled=true ``` -By default, if `-Dsecurity.enabled=true` is passed the following defaults will be used: `https=true`, `user=admin` and -`password=admin`. +By default, if `-Dsecurity.enabled=true` is passed the following defaults will be used: `https=true`, `user=admin`. There is no default password and it is to be set as `password=`. -Then, to access the cluster, we can run +Then, to connect to the cluster, use the following command. Remember to replace `` with the password you chose when setting up the admin user. ```bash -curl https://localhost:9200 --insecure -u admin:admin +curl https://localhost:9200 --insecure -u admin: { "name" : "integTest-0", @@ -191,7 +190,7 @@ Integration tests can be run with remote cluster. For that run the following com In case remote cluster is secured it's possible to pass username and password with the following command: ``` -./gradlew :integTestRemote -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="integTest-0" -Dhttps=true -Duser=admin -Dpassword=admin +./gradlew :integTestRemote -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="integTest-0" -Dhttps=true -Duser=admin -Dpassword= ``` ### Debugging diff --git a/gradle/formatting.gradle b/gradle/formatting.gradle index 197b848c9..98720b5d4 100644 --- a/gradle/formatting.gradle +++ b/gradle/formatting.gradle @@ -19,7 +19,7 @@ allprojects { } } format 'misc', { - target '*.md', '**/*.gradle', '**/*.json', '**/*.yaml', '**/*.yml', '**/*.svg' + target '*.md', '**/*.gradle', '**/*.json', '**/*.yaml', '**/*.yml', '**/*.svg', '**/*.properties' trimTrailingWhitespace() endWithNewline()