edgelessdb

by Edgeless Systems

Helm chartv0.3.2App v0.3.2Verified publisher

EdgelessDB is a MySQL-compatible database for confidential computing. It runs entirely inside a secure enclave and comes with advanced features for collaboration, recovery, and access control.

About this chart

EdgelessDB helm charts

Documentation

See the docs for a comprehensive documentation of EdgelessDB.

Add Repository (stable)

helm repo add edgeless https://helm.edgeless.systems/stable
helm repo update

Install Packages (stable)

  • If you are deploying on a cluster with nodes that support SGX1+FLC (e.g. AKS or minikube + Azure Standard_DC*s)

    • If you are deploying with MarbleRun

      helm install edgelessdb edgeless/edgelessdb --set edb.launchMarble=true --create-namespace  --namespace edgelessdb
      
    • Otherwise

      helm install edgelessdb edgeless/edgelessdb --create-namespace  --namespace edgelessdb
      
  • Otherwise

    helm install edgelessdb edgeless/edgelessdb --create-namespace --namespace edgelessdb --set edgelessdb.resources=null --set edgelessdb.simulation=true --set tolerations=null
    

Configuration

The following table lists the configurable parameters of the marblerun-coordinator chart and their default values.

ParameterTypeDescriptionDefault
edb.debugboolSet to true enable debug logging to the terminal. The manifest must allow this because logs may leak datafalse
edb.heapSizeintHeap size of the database enclave in GB. Currently Edgeless Systems provides images for 1GB and 4GB heap sizes1
edb.launchMarbleboolSet to start EdgelessDB in MarbleRun modefalse
edb.logDirstringLike EDG_EDB_DEBUG, but log to files. Set this, e.g., to /log and mount a storage interface to that path""
edb.marbleTypestringLabel needed when EdgelessDB is deployed as a Marble with MarbleRun"EdgelessDB"
edb.replicasintNumber of replicas for EdgelessDB1
edb.resourcesobjectResource requirements for EdgelessDB{limits:[{"sgx.intel.com/epc": "10Mi"},{"sgx.intel.com/provision":1},{"sgx.intel.com/enclave":1}]}
edb.restApiHoststringThe network address of the HTTP REST API"0.0.0.0"
edb.restApiPortintPort of the HTTP REST API8080
edb.simulationboolNeeds be set to true when running on systems without SGX1+FLC capabilitiesfalse
edb.sqlApiHoststringThe network address of the MySQL interface"0.0.0.0"
edb.sqlApiPortintPort of the MySQL interface3306
global.imageobjectEdgelessDB image configuration{"pullPolicy":"IfNotPresent","version":" v0.3.2","repository":"ghcr.io/edgelesssys"}
global.podAnnotationsobjectAdditional annotations to add to all pods{}
global.podLabelsobjectAdditional labels to add to all pods{}
nodeSelectorobjectNodeSelector section, See the K8S documentation for more information{"beta.kubernetes.io/os": "linux"}
storageobjectEdgelessDB persistent storage spec{spec:{accessModes:[ReadWriteOnce],resources:{requests:{storage:"1Gi"}}}}
tolerationsobjectTolerations section, See the K8S documentation for more information{key:"sgx.intel.com/epc",operator:"Exists",effect:"NoSchedule"}

Add new version (maintainers)

cd <edb-repo>
helm package charts
mv edgelessdb-x.x.x.tgz <helm-repo>/stable
cd <helm-repo>
helm repo index stable --url https://helm.edgeless.systems/stable

Deploy edgelessdb with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has edgelessdb 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartedgelessdb is pinned at v0.3.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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