Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checkpoint test for various AES decryption usages #30603

Open
Zech-Hein opened this issue Jan 21, 2025 · 0 comments
Open

Add checkpoint test for various AES decryption usages #30603

Zech-Hein opened this issue Jan 21, 2025 · 0 comments
Assignees

Comments

@Zech-Hein
Copy link
Contributor

Zech-Hein commented Jan 21, 2025

Currently, there are checkpoint tests for the passwordUtils which is responsible for AES password decryption. See https://github.com/OpenLiberty/open-liberty/blob/7eb1c7bd95bd5903653bd617458d393c8ce66f83/dev/io.openliberty.checkpoint_fat/fat/src/io/openliberty/checkpoint/fat/PasswordUtilsTest.java

However, the existing tests only cover aes decryption for the authData server configuration field. See https://github.com/OpenLiberty/open-liberty/blob/7eb1c7bd95bd5903653bd617458d393c8ce66f83/dev/io.openliberty.checkpoint_fat/publish/servers/checkpointPasswordUtilities/server.xml
Example:

<authData id="defaultAuthData" user="APPUSR" password="${default.user.password}" />
<variable name="default.user.password" defaultValue="{aes}APb9ZaYzUL+JsfFD/OOBGaPM0evjmx5AnvmzbaKgffyX" />

We should test decryption in checkpoint tests for other config element like basicRegistry and keystore

Example usage of aes decryption for basicRegistry:

<user name="customUser" password="{aes}AL4f8Vek3bMHFusOdK3KleiHJRh8ghFdc5OzO8vo3UtRKprTjetDKmaG7NWRLX0qaA==" />

Example usage of aes decryption for ssl config element

<keyStore id="defaultKeyStore" password="{aes}AGhU2J3FXiBOCTxZI4hRLWwezyITmEf4BGfRc5KyAjFq" />
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

No branches or pull requests

2 participants