Skip to content

Set LTPA key password as part of Liberty container image startup script #718

@leochr

Description

@leochr

Liberty runtime removed the default LTPA key password in 26.0.0.4. More details are here.

Note that this change doesn't impact users with keysPassword already defined in the <ltpa /> element. For example, the LTPA managed by manageLTPA feature of Liberty Operator is NOT impacted.

Liberty runtime would use keystore_password from server.env, from server creation time, to re-encrypt the LTPA keys in the ltpa.keys file, but server.env is not included with Liberty container images as server is created as part of building official Liberty container images and server.env is not shipped - to avoid shipping the same passwords to all users.

It seems that setting a random password for ltpa_keys_password environment variable as part of the Liberty container startup script, if the env is not already set by user, would avoid the runtime exception, but we need to first confirm with Security team that it won’t override any config from user for LTPA under any scenario as well as test and validate.

We should also add a variable to skip the generation of this password: i.e. GENERATE_LTPA_KEYS_PASSWORD

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions