External Secrets Operator integrates with [Device42 API](https://api.device42.com/#!/Passwords/getPassword) to sync Device42 secrets into a Kubernetes cluster. ### Authentication `username` and `password` is required to talk to the Device42 API. ```yaml apiVersion: v1 kind: Secret metadata: name: device42-credentials data: username: dGVzdA== # "test" password: dGVzdA== # "test" ``` ### Creating a SecretStore ```yaml apiVersion: external-secrets.io/v1 kind: SecretStore metadata: name: device42-secret-store spec: provider: device42: host: auth: secretRef: credentials: name: key: namespace: ``` ### Referencing Secrets Secrets can be referenced by defining the `key` containing the Id of the secret. The `password` field is return from device42 ```yaml apiVersion: external-secrets.io/v1 kind: ExternalSecret metadata: name: device42-external-secret spec: refreshInterval: 1h secretStoreRef: kind: SecretStore name: device42-secret-store target: name: data: - secretKey: remoteRef: key: ```