Skip to content

Commit

Permalink
Remove references to admin:admin (#551)
Browse files Browse the repository at this point in the history
Remove references to admin:admin (#551)

Signed-off-by: Varun Jain <[email protected]>
(cherry picked from commit f9937a4)
  • Loading branch information
vibrantvarun authored and github-actions[bot] committed Jan 26, 2024
1 parent 50a24b3 commit ea1be68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<admin-password>`.

Then, to access the cluster, we can run
Then, to connect to the cluster, use the following command. Remember to replace `<admin-password>` 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:<admin-password>

{
"name" : "integTest-0",
Expand Down Expand Up @@ -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=<admin-password>
```

### Debugging
Expand Down
2 changes: 1 addition & 1 deletion gradle/formatting.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ allprojects {
}
}
format 'misc', {
target '*.md', '**/*.gradle', '**/*.json', '**/*.yaml', '**/*.yml', '**/*.svg'
target '*.md', '**/*.gradle', '**/*.json', '**/*.yaml', '**/*.yml', '**/*.svg', '**/*.properties'

trimTrailingWhitespace()
endWithNewline()
Expand Down

0 comments on commit ea1be68

Please sign in to comment.