diff --git a/core/pva/src/main/java/org/epics/pva/PVASettings.java b/core/pva/src/main/java/org/epics/pva/PVASettings.java index 0c36568ede..6c9ffeecc2 100644 --- a/core/pva/src/main/java/org/epics/pva/PVASettings.java +++ b/core/pva/src/main/java/org/epics/pva/PVASettings.java @@ -153,6 +153,22 @@ public class PVASettings */ public static String EPICS_PVAS_TLS_KEYCHAIN = ""; + /** Path to a file containing the password for the PVA server keychain. + * + *

Alternative to embedding the password in {@link #EPICS_PVAS_TLS_KEYCHAIN} + * using the "/path/to/file;password" syntax. + * When set, the password is read from this file instead, with leading and trailing + * whitespace stripped. + * Takes precedence over an inline password in {@link #EPICS_PVAS_TLS_KEYCHAIN} + * when no ";" separator is present in that setting. + * + *

Intended for environments where secrets are mounted as files, + * for example Kubernetes pods using a {@code Secret} volume. + * + *

When empty, no password file is used. + */ + public static String EPICS_PVAS_TLS_KEYCHAIN_PWD_FILE = ""; + /** Secure server options * *