Virtual Machine Target
This guide explains how to configure a Virtual Machine as a target for your secrets.Prerequisites
In order to use theVirtualMachine
Target, you must install and run the eso-vm-server
on the Virtual Machine you want to add.
Configuration
To push a secret to a Virtual Machine, you need to create aPushSecret
or a Workflow
resource.
Here is an example that pushes a secret to a specific location on the VM:
You can only Push a Secret to a VM after that Secret has been already Scanned.
The Scanning process is done by External Secrets Enterprise via a
scan.external-secrets.io/Job
Resource.
For more information, please see Scanning and Findings.Understanding the `PushSecret` spec
Understanding the `PushSecret` spec
refreshInterval
: How often to check for secret updates.secretStoreRefs
: A reference to theSecretStore
that provides the secrets.selector
: Specifies which Kubernetes secret to push.data
: Defines the mapping between the Kubernetes secret key and the remote path on the Virtual Machine.
api-key
from the my-secret
Kubernetes secret and write it to the file /etc/secrets/api-key
on the Virtual Machine that is associated with the specified SecretStore
.