bitwarden-cli
by FZJ ICE-1
Creates a bitwarden CLI client Deployment and optionally a clusterSecretStore for using Bitwarden/Vaultwarden with the External Secrets Operator
About this chart
Bitwarden CLI
This chart creates a deployment of the Bitwarden CLI Client,
using a custom container image
and optionally creating a ClusterSecretStore for the External Secrets Operator (enabled by default).
Recommendations
When using Rancher fleet this chart can be installed together with the External Secrets Operator
with this fleet bundle.
Requirements
It is required to have a running Bitwarden/Vaultwarden instance and to create a secret with the access credentials:
apiVersion: v1
kind: Namespace
metadata:
name: external-secrets
---
apiVersion: v1
kind: Secret
metadata:
name: bitwarden-cli
namespace: external-secrets
type: Opaque
stringData:
BW_HOST: vault.example.com
BW_USERNAME: [email protected]
BW_PASSWORD: some-password
When enabling the ClusterSecretStore additionally deploy the External Secrets Operator helm chart:
helm install external-secrets oci://ghcr.io/external-secrets/charts/external-secrets --version <x.x.x>
Installing the Chart
Using Helm Install via Repository
Add the repository as described here.
# Install latest Version
helm repo update
helm upgrade -i -n fleet-default bitwarden-cli ict-platform/bitwarden-cli -f values.yaml
# List available versions
helm search repo ict-platform --versions
# Install specific version
helm install -n fleet-default bitwarden-cli ict-platform/bitwarden-cli --version <x.x.x> -f values.yaml
Using OCI Container Registry
# Show the default values
helm show values oci://jugit-registry.fz-juelich.de/iek-10/public/ict-platform/deployment/kubernetes/helm-charts/bitwarden-cli --version <x.x.x>
# Show the rendered manifests with your values
helm template -n vernemq vernemq oci://jugit-registry.fz-juelich.de/iek-10/public/ict-platform/deployment/kubernetes/helm-charts/bitwarden-cli --version <x.x.x> -f values.yaml
# Install
helm upgrade -i -n vernemq vernemq oci://jugit-registry.fz-juelich.de/iek-10/public/ict-platform/deployment/kubernetes/helm-charts/bitwarden-cli --version <x.x.x> -f values.yaml
Using Rancher
Follow the steps described here.
Clusters can than be added through the Cluster Management option in the rancher dashboard.
Deploy bitwarden-cli with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has bitwarden-cli on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartbitwarden-cli is pinned at v1.4.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply