hoard

by joaquinito2051

Helm chartv0.7.0App 3.0.1

Hoard is a stateless, deterministically encrypted, content-addressed object store

About this chart

Hoard

Hoard is a stateless, deterministically encrypted, content-addressed object store. It currently supports local persistent storage, S3, GCS, Azure and IPFS backends. Files that are sent to Hoard are symmetrically encrypted, where the secret is the hash of the plaintext file, and then stored in the configured backend - this enables any party with knowledge of the hash or original file to retrieve it from the store.

Introduction

This chart bootstraps a hoard daemon on a Kubernetes cluster using the Helm package manager.

Installation

To install the chart with the release name my-release, run:

helm install --name my-release <helm-repo>/hoard

helm install --name my-release stable/hoard This installation defaults to persistent volume storage. The configuration section below lists all possible parameters that can be configured.

Uninstall

To uninstall/delete the my-release deployment:

helm delete my-release

Configuration

The following table lists the configurable parameters of the Hoard chart and its default values.

ParameterDescriptionDefault
replicaCountnumber of daemons1
image.repositorydocker image"quay.io/monax/hoard"
image.tagversion"3.0.1"
image.pullPolicypull policy"IfNotPresent"
config.listenaddressaddress to listen ontcp://:53431
config.storage.storagetypebackend object store (aws, azure, filesystem, gcp, ipfs)filesystem
config.storage.addressencodingobject address encodingbase64
config.storage.filesystemconfig.rootdirectoryobject address encoding"/data"
config.storage.cloudconfig.bucketobject storage container (cloud only)""
config.storage.cloudconfig.prefixbucket folder (cloud only)""
config.storage.cloudconfig.regionobject store location (cloud only)""
config.storage.ipfsconfig.remoteapiremote api location (ipfs only)""
config.logging.loggingtypeformat for logging output"json"
config.logging.channelslogging types[]
config.secrets.symmetricsymmetric secrets (publicid, passphrase)[]
config.secrets.openpgp.privateidid of private key to sign with""
config.secrets.openpgp.filename of the file mounted from secret"/secrets/keyring"
controller.enabledenable the shared-secrets controllerfalse
controller.keepkeep the shared-secrets crd after chart deletiontrue
secrets.credsrequired secret for cloud providers"cloud-credentials"
secrets.keyringrequired secret for openpgp grants"private-keyring"
persistence.sizesize of local store"10Gi"
persistence.storageClasspvc type"standard"
persistence.accessModepvc access"ReadWriteOnce"
persistence.persistentVolumeReclaimPolicypvc policy"Retain"
persistence.annotationsoptional annotations{}
persistence.annotations."helm.sh/resource-policy"keep pvckeep
service.typetype of service"ClusterIP"
service.portdefault listening port53431
ingresssettings for ingress{}
resourcespod resources{}
nodeSelectoroptional settings{}
tolerationsoptional settings[]
affinitysession affinity{}

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
$ helm install --name my-release <helm-repo>/hoard

$ helm install --name my-release stable/hoard Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml <helm-repo>/hoard

$ helm install --name my-release -f values.yaml stable/hoard

Cloud Examples

For each of the supported cloud back-ends, please ensure you have the appropriate credentials as identified by the corresponding environment variables.

AWS

kubectl create secret generic cloud-credentials --from-literal access-key-id=${AWS_ACCESS_KEY_ID} --from-literal secret-access-key=${AWS_SECRET_ACCESS_KEY}
helm install --name my-release <helm-repo>/hoard --set storage.type=aws,storage.region="eu-central-1",storage.bucket="my-bucket",storage.prefix="folder",storage.secret="cloud-credentials"

helm install --name my-release stable/hoard --set storage.type=aws,storage.region="eu-central-1",storage.bucket="my-bucket",storage.prefix="folder",storage.secret="cloud-credentials"

Azure

kubectl create secret generic cloud-credentials --from-literal storage-account-name=${AZURE_STORAGE_ACCOUNT_NAME} --from-literal storage-account-key=${AZURE_STORAGE_ACCOUNT_KEY}
helm install --name my-release <helm-repo>/hoard --set storage.type=azure,storage.bucket="my-bucket",storage.prefix="folder",storage.secret="cloud-credentials"

helm install --name my-release stable/hoard --set storage.type=azure,storage.bucket="my-bucket",storage.prefix="folder",storage.secret="cloud-credentials"

GCP

kubectl create secret generic cloud-credentials --from-literal service-key=${GCLOUD_SERVICE_KEY}
helm install --name my-release <helm-repo>/hoard --set storage.type=gcp,storage.bucket="my-bucket",storage.prefix="folder",storage.secret="cloud-credentials"

helm install --name my-release stable/hoard --set storage.type=gcp,storage.bucket="my-bucket",storage.prefix="folder",storage.secret="cloud-credentials"

OpenPGP Grants

Once configured, hoard can share access to a secret file by encrypting it with the public key of the recipient:

kubectl create secret generic private-keyring --from-file ${GOPATH}/src/github.com/monax/hoard/grant/private.key.asc
helm install --name my-release <helm-repo>/hoard --set openpgp.id="10449759736975846181",openpgp.secret=private-keyring

helm install --name my-release stable/hoard --set openpgp.id="10449759736975846181",openpgp.secret=private-keyring

Shared Secrets

To enable Hoard to act as a 'secrets broker', deploy our CustomResourceDefinition and controller:

helm install --name my-release <helm-repo>/hoard --set controller.enabled=true

Deploy hoard with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hoard 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 charthoard is pinned at v0.7.0 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