Skip to content

Update Security Hardening Doc #8184

@Zech-Hein

Description

@Zech-Hein

Please describe the problem you are having with the documentation. Is information missing, inaccurate, or unclear? Tell us about the context where you encountered the problem so we can understand how to address it.

doc page:

  1. https://openliberty.io/docs/latest/server-configuration-hardening.html#password-encryption

    • Update Currently, Open Liberty supports AES-128 encryption
      to be Currently, Open Liberty supports AES-128 and AES-256 encryption
    • Update With AES encryption, the default encryption key that is used for decryption can be overridden by setting the wlp.password.encryption.key property. This property must not be set in the server.xml file, but in a separate configuration file that is included by the server.xml file. This separate configuration file must contain only a single property declaration, and must be stored outside the normal configuration directory for the server.
      to be
      With AES encryption, an encryption key must configured for decryption. The encryption key can be configured by setting either the wlp.password.encryption.key or wlp.aes.encryption.key variable. This variable must not be set in the server.xml file, but in a separate configuration file that is included by the server.xml file. This separate configuration file must contain only a single property declaration, and must be stored outside the liberty installation directory. For more information on setting wlp.aes.encryption.key, see [Bring your own AES-256 key for Liberty passwords](https://openliberty.io/docs/latest/bring-your-own-aes-256-key.html).
    • Remove the Use a pre-generated AES-256 key section from the page.
  2. https://openliberty.io/docs/latest/reference/command/securityUtility-encode.html#_usage_examples

    • Update the usage example: securityUtility encode --encoding=aes
      to be securityUtility encode --encoding=aes --key=<encryption_key_string>
    • Update the description for that usage example
      from Encrypt a password with Advanced Encryption Standard (AES) encryption.
      to be Encrypt a password with Advanced Encryption Standard (AES) encryption by specifying an encryption key string.
  3. https://openliberty.io/docs/latest/password-encryption.html

    • Update In Open Liberty, you can override the default key that is used for encrypting and decrypting by setting the wlp.password.encryption.key property
      to be In Open Liberty, you can configure the encryption key that is used for encrypting and decrypting by setting either the wlp.password.encryption.key property or wlp.aes.encryption.key property
    • Update For a more secure configuration, set the wlp.password.encryption.key property in a separate file that is stored outside the normal configuration directory for the server
      to be For a more secure configuration, set the encryption key property in a separate file that is stored outside the liberty installation directory
    • Update the example to have <variable name="wlp.aes.encryption.key" value="<your_aes_key>" /> or <variable name="wlp.password.encryption.key" value="yourKey" /> and add a note to say wlp.aes.encryption.key and wlp.password.encryption.key cannot be used at the same time.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions