Secret Type - PROPERTIES
The PROPERTIES-Type is for rendering property-files based on secrets stored in HashiCorp Vault in the mountpoints for kv-1 or kv-2.
How To
First store some secrets in HashiCorp Vault:
After this create the following Vault-Resource and apply it to Kubernetes:
Now you should see, that the secret gets rendered and stored in Kubernetes and the Vault resource is also available:
Rendering Options
The following expressions are available for rendering secrets stored in HashiCorp Vault:
Method
returns
Description
vault.lookup(String path)
Java:HashMap
Looks inside a KV-1 Store for stored key-value pairs. The secrets are now available via .get('key')
vault.lookup(String path, String key)
String
Looks inside a KV-1 Store for stored key in key-value path.
vault.lookupV2(String path)
Java:HashMap
Looks inside a KV-2 Store for stored key-value pairs. The secrets are now available via .get('key'). It uses the latest version.
vault.lookupV2(String path, String key)
String
Looks inside a KV-2 Store for stored key in key-value path. It uses the latest version.
vault.lookupV2(String path, int version, String key)
String
Looks inside a KV-2 Store for stored key in key-value path with a specific version.
Change Adjustment Callback
For more details please see Change Detection!
Last updated