Configuring the bitwardenSecretManagerProvider plugin
You must configure the bitwardenSecretManagerProvider plugin to enable communication with the Bitwarden API. This configuration enables the Operator to authenticate and fetch secrets for synchronization.
-
You have access to the cluster with
cluster-adminprivileges. -
You have created the
ExternalSecretsConfigcustom resource.
-
Edit the
ExternalSecretsConfigcustom resource by running the following command:$ oc edit externalsecretsconfigs.operator.openshift.io cluster -
Edit the
spec.plugins.bitwardenSecretManagerProvidersection as follows to enable the Bitwarden Secrets Manager:apiVersion: operator.openshift.io/v1alpha1 kind: ExternalSecretsConfig ... spec: plugins: bitwardenSecretManagerProvider: mode: Enabled secretRef: name: <secret_object_name>where:
- name
-
The name of the secret containing the certificate key pair for the plugin. The key name in the secret for the certificate must be
tls.crt. The key name for the private key must betls.key. The key name for the Certificate Authority (CA) certificate key name must beca.crt. Configuring the secret is optional when the cert-manager certificate provider is configured.
-
Save your changes and exit the editor.
-
If you disable the plugin the following resources must be deleted manually by running the following commands:
$ oc delete deployments.apps bitwarden-sdk-server -n external-secrets$ oc delete certificates.cert-manager.io bitwarden-tls-certs -n external-secrets$ oc delete service bitwarden-sdk-server -n external-secrets$ oc delete serviceaccounts bitwarden-sdk-server -n external-secrets