Skip to content

Document demo installer password checks vs REST API settings #4081 - #6449

Open
AzazelSensei wants to merge 3 commits into
opensearch-project:mainfrom
AzazelSensei:docs-demo-password-validation-4081
Open

Document demo installer password checks vs REST API settings #4081#6449
AzazelSensei wants to merge 3 commits into
opensearch-project:mainfrom
AzazelSensei:docs-demo-password-validation-4081

Conversation

@AzazelSensei

Copy link
Copy Markdown

Description

  • Category: Documentation
  • The demo installer validates OPENSEARCH_INITIAL_ADMIN_PASSWORD with its own length, regex, and zxcvbn checks. Those values look like plugins.security.restapi.password_min_length and plugins.security.restapi.password_validation_regex, but the script never reads opensearch.yml.
  • Old behavior: the developer guide only said the password is checked for strength. New behavior: it states that the REST API settings do not apply to the demo admin password, and what the installer actually requires.

Issues Resolved

Resolves #4081

Is this a backport? No

Do these changes introduce new permission(s) to be displayed in the static dropdown on the front-end? No

Testing

Docs only. I checked SecuritySettingsConfigurer still hardcodes min length 8 and the complexity regex, and that plugins.security.restapi.password_min_length still defaults to -1 on the plugin settings.

Check List

  • New functionality includes testing
  • New functionality has been documented
  • New Roles/Permissions have a corresponding security dashboards plugin PR
  • API changes companion pull request created
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

The demo script runs before opensearch.yml is loaded, so
plugins.security.restapi.password_min_length and
password_validation_regex do not apply to OPENSEARCH_INITIAL_ADMIN_PASSWORD.

Signed-off-by: Abdullah <89297042+AzazelSensei@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

PR Reviewer Guide 🔍

(Review updated until commit bf6c280)

Here are some key observations to aid the review process:

🧪 No relevant tests
🔒 No security concerns identified
✅ No TODO sections
🔀 No multiple PR themes
⚡ No major issues detected

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Persistent review updated to latest commit 3248fab

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Persistent review updated to latest commit bf6c280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOC] Password validation settings used in demo config tool are not the same as the ones shipped with OpenSearch.

2 participants