Skip to content

allow prompts for passwords in elasticsearch.yml #10838

@pwli

Description

@pwli

The listing of passwords in elasticsearch.yml for accessing key stores is
dangerous. If someone steals the yml and key store file, they can open
the keystore and access to mimic the system. I wonder if there is a way to
create a tag for the passwords in the yml file that will have the process
prompt for the password at startup.

For example, in the yml:

marvel.agent.exporter.es.ssl.truststore.password: 123password

will become:

marvel.agent.exporter.es.ssl.truststore.password: -

and the system will then prompt the user for the password at start up:

Enter password for marvel.agent.exporter.es.ssl.truststore: 

Hopefully, the password is a strong one. But it won't be recorded and
be visible.

If the yml file is stolen, it won't have sufficient information to crack the key
store. For multiple password entries, they will be prompted in their order
of appearance.

Thanks

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions