Class KubernetesSecret

java.lang.Object
org.frankframework.credentialprovider.Secret
org.frankframework.credentialprovider.KubernetesSecret
All Implemented Interfaces:
ISecret

@NullMarked public class KubernetesSecret extends Secret
An ISecret implementation backed by a single Kubernetes secret.

The Kubernetes secret name must match the auth alias name exactly. Fields are looked up directly by key (e.g. username, password), and the Base64-encoded values stored by Kubernetes are decoded before being returned.

Returns null if the requested field key is not present in the secret.

See Also:
  • Constructor Details

    • KubernetesSecret

      public KubernetesSecret(CredentialAlias alias, io.fabric8.kubernetes.api.model.Secret secret)
  • Method Details

    • getField

      public String getField(@Nullable String key)
      Description copied from interface: ISecret
      Returns NULL when it cannot find the field