root@MacBook-Pro .bin # ./opensearch-reporting-cli -u "https://192.168.1.71:5601/goto/8b57d13ca943bc4e9a2f3f82f8f392b9?security_tenant=global" -a basic -c admin:Eliatra123 -f pdf
✔ Fetched argument values
⠋ Connecting to url https://192.168.1.71:5601/goto/8b57d13ca943bc4e9a2f3f82f8f392b9?security_tenant=global(node:21767) NOTE: The AWS SDK for JavaScript (v2) is in maintenance mode.
SDK releases are limited to address critical bug fixes and security issues only.
Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the blog post at https://a.co/cUPnyil
(Use `node --trace-warnings ...` to show where the warning was created)
ℹ Credentials are verified
ℹ Connected to url https://192.168.1.71:5601/goto/8b57d13ca943bc4e9a2f3f82f8f392b9?security_tenant=global
✔ The report is downloaded
I tried again by specifying -a basic, however it still throws same error:
opensearch-reporting-cli \
-u https://opensearch.myapp.com/_dashboards/app/dashboards?security_tenant=global#/view/390a9ea0-15d5-11f0-af5f-5f69415fed48 \
-a basic \
-c uid:pwd \
-f pdf \
--smtphost myrelay.myco.com \
-e smtp -s me@myco.com -r me@myco.com \
-t global
output:
✔ Fetched argument values
⠋ Connecting to url https://opensearch.myco.com/_dashboards/app/dashboards?security_tenant=global#/view/390a9ea0-15d5-11f0-af5f-5f69415fed48(node:66191) NOTE: The AWS SDK for JavaScript (v2) is in maintenance mode.
SDK releases are limited to address critical bug fixes and security issues only.
Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the blog post at https://a.co/cUPnyil
(Use `node --trace-warnings ...` to show where the warning was created)
✖ Downloading report failed. Error: No element found for selector: input[data-test-subj="user-name"]
Please note that I did not “switch off” SAML auth from my OpenSearch setup; and I do have both basic and saml auth types enabled (screenshot below).
The security config is correct. You can have multiple authentication types configured at the same time. OpenSearch will test your authentication attempts against all configured auth domains.