Skip to content

Commit

Permalink
Remove references to default credentials (#56)
Browse files Browse the repository at this point in the history
* Remove references to default credentials

Signed-off-by: Derek Ho <[email protected]>

* fix path to env file

Signed-off-by: Derek Ho <[email protected]>

* Add file

Signed-off-by: Derek Ho <[email protected]>

* change to strong password

Signed-off-by: Derek Ho <[email protected]>

* test ci

Signed-off-by: Joshua Li <[email protected]>

---------

Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Joshua Li <[email protected]>
Co-authored-by: Joshua Li <[email protected]>
  • Loading branch information
derek-ho and joshuali925 authored Feb 22, 2024
1 parent 917b5f8 commit 071d9d6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
OPENSEARCH_INITIAL_ADMIN_PASSWORD=myStrongPassword123!
2 changes: 1 addition & 1 deletion .github/workflows/reporting-cli-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Download and run Opensearch and Dashboard
run: |
wget https://opensearch.org/samples/docker-compose.yml
docker-compose up --detach
docker-compose --env-file .github/workflows/.env up --detach
- name: Check Docker containers
run: docker ps -a
Expand Down
6 changes: 3 additions & 3 deletions DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
wget https://opensearch.org/samples/docker-compose.yml
docker-compose up --detach
curl -XPOST -u 'admin:admin' 'http://localhost:5601/api/sample_data/ecommerce' -H 'osd-xsrf:true'
curl -XPOST -u 'admin:admin' 'http://localhost:5601/api/sample_data/logs' -H 'osd-xsrf:true' -H 'securitytenant: global'
curl -XPOST -u 'admin:admin' 'http://localhost:5601/api/sample_data/flights' -H 'osd-xsrf:true' -H 'securitytenant: admin_tenant'
curl -XPOST -u 'admin:< Admin password >' 'http://localhost:5601/api/sample_data/ecommerce' -H 'osd-xsrf:true'
curl -XPOST -u 'admin:< Admin password >' 'http://localhost:5601/api/sample_data/logs' -H 'osd-xsrf:true' -H 'securitytenant: global'
curl -XPOST -u 'admin:< Admin password >' 'http://localhost:5601/api/sample_data/flights' -H 'osd-xsrf:true' -H 'securitytenant: admin_tenant'
```
Run `yarn test` inside `reporting-cli`.
2 changes: 1 addition & 1 deletion USER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ NOTE: Values from the command line argument has higher priority than environment

Sample command for downloading a dashboard report with basic authentication in png format
```
opensearch-reporting-cli --url https://localhost:5601/app/dashboards#/view/7adfa750-4c81-11e8-b3d7-01146121b73d --format png --auth basic --credentials admin:admin
opensearch-reporting-cli --url https://localhost:5601/app/dashboards#/view/7adfa750-4c81-11e8-b3d7-01146121b73d --format png --auth basic --credentials admin:< Admin password >
```
Report will be downloaded in the current directory.

Expand Down
2 changes: 1 addition & 1 deletion test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
const path = require('path');
const exec = require('child_process').exec;
const url = "http://localhost:5601";
const credentials = "admin:admin"
const credentials = "admin:myStrongPassword123!"

function cli(args, cwd) {
return new Promise(resolve => {
Expand Down

0 comments on commit 071d9d6

Please sign in to comment.