Skip to content

[BUG] KEYSTORE_PASSWORD Failed to read keystore password on console #12312

@tastyfrankfurt

Description

@tastyfrankfurt

Describe the bug

When setting the KEYSTORE_PASSWORD environment variable the opensearch start command unsets this environment variable. The if statement then errors out as failed to read keystore password on conole.

Related component

Build

To Reproduce

  1. Password protect the opensearch keystore using the opensearch-keystore command.
  2. Set the environment variable KEYSTORE_PASSWORD on systemd
  3. Attempt to start the service
  4. Service fails to start and reports "Failed to read keystore password on console"

Expected behavior

Service starts and decrypts all secrets in the keystore.

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BuildBuild Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement.bugSomething isn't workingv2.14.0v3.0.0Issues and PRs related to version 3.0.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions