tsa

by sigstore

Helm chartv2.1.8App 2.2.2Apache-2.0Verified publisher

Timestamp Authority issuing RFC3161 signed timestamps.

About this chart

tsa

Timestamp Authority issuing RFC3161 signed timestamps.

Homepage: https://sigstore.dev/

Quick Installation

To install the helm chart with default values run following command. The Values section describes the configuration options for this chart.

For testing the TSA (the memory signer MUST NOT be used for production):

helm dependency update .
helm install [RELEASE_NAME] . --set server.args.signer=memory

helm upgrade should be used for updates to the configuration.

Tink Installation

Tink is an easy-to-use cross-language crypto library. The Timestamp Authority provides a signer that uses Tink, which enables in-memory signing with secure on-disk key storage. Instead of being password-protected, the key is encrypted with a cloud KMS key, and decrypted on startup.

Install tinkey first.

Create a cloud KMS key in either GCP, AWS, or Vault, that will be used to encrypt a signing key that is generated locally.

Run the following to create the local encrypted signing key, changing key URI and the key template if desired:

tinkey create-keyset --key-template ECDSA_P384 --out enc-keyset.cfg --master-key-uri gcp-kms://path-to-key

Generate a certificate chain, which must include a leaf certificate whose public key pairs to the private key in the Tink keyset, may include any number of intermediate certificates, and must include a root certificate. We recommend reviewing the code used to generate the certificate chain if you do not want to use GCP. If you are using GCP:

  • Create a root CA with GCP CA Service. Configure lifetime, and other defaults can remain. You will need to first create a CA pool, and then create one CA in that pool.
  • Create an asymmetric signing key on KMS that will be used as an intermediate CA to sign the TSA certificate.
  • Run the following:
go run cmd/fetch-tsa-certs/fetch_tsa_certs.go \
  --intermediate-kms-resource="gcpkms://asymmetric-kms-key"\
  --tink-kms-resource="gcp-kms://tink-encryption-key"\
  --gcp-ca-parent="projects/<project>/locations/<location>/caPools/<pool-name>"\
  --tink-keyset-path="enc-keyset.cfg"\
  --output="chain.crt.pem"

Authenticating to KMS from your cluster will depend on your environment. For a local test setup, you may need to run gcloud auth application-default login, add the credentials to the configmap (cloud_credentials: \{\{.Values.server.args.creds | quote \}\}), and add an environment variable to server.env that sets where the credentials are stored (GOOGLE_APPLICATION_CREDENTIALS: /etc/tsa-config/cloud_credentials).

helm install [RELEASE_NAME] . --set server.args.signer=tink\
  --set server.args.tink_key_resource="gcp-kms://projects/hblauzvern-test-1/locations/us-west1/keyRings/test-ring-local/cryptoKeys/test-key"\
  --set server.args.cert_chain="$(cat chain.crt.pem)"\
  --set server.args.tink_enc_keyset="$(printf "%q" "$(cat enc-keyset.cfg)")"

Uninstallation

To uninstall the Helm chart run following command.

helm uninstall [RELEASE_NAME]

Maintainers

NameEmailUrl
The Sigstore Authors

Values

KeyTypeDefaultDescription
forceNamespacestring""
namespace.createboolfalse
namespace.namestring"tsa-system"
neg.http.namestring""
neg.http.portint80
server.additionalArgslist[]
server.affinityobject{}
server.args.cert_chainstring"chain"
server.args.kms_key_resourcestring"resource"
server.args.portint5555
server.args.signerstring"tink"
server.args.tink_enc_keysetstring"keyset"
server.args.tink_hcvault_tokenstring"token"
server.args.tink_key_resourcestring"resource"
server.configMap.additionalKeysobject{}
server.env.GOOGLE_APPLICATION_CREDENTIALSstring""
server.image.pullPolicystring"IfNotPresent"
server.image.registrystring"ghcr.io"
server.image.repositorystring"sigstore/timestamp-server"
server.image.versionstring"v2.2.2@sha256:f51add454ad771fc1268d9b77ac82a3510928ef955b3c02dbd6a728152ba9fc0"
server.ingress.http.annotationsobject{}
server.ingress.http.classNamestring"nginx"
server.ingress.http.enabledbooltrue
server.ingress.http.hosts[0].hoststring"timestamp.localhost"
server.ingress.http.hosts[0].pathstring"/"
server.ingress.http.tlslist[]
server.logging.productionboolfalse
server.namestring"server"
server.nodeSelectorobject{}
server.replicaCountint1
server.secretstring"tsa-server-secret"
server.securityContext.runAsNonRootbooltrue
server.securityContext.runAsUserint65533
server.service.ports[0].namestring"http"
server.service.ports[0].portint80
server.service.ports[0].protocolstring"TCP"
server.service.ports[0].targetPortint5555
server.service.ports[1].namestring"metrics"
server.service.ports[1].portint2112
server.service.ports[1].protocolstring"TCP"
server.service.ports[1].targetPortint2112
server.service.typestring"ClusterIP"
server.serviceAccount.annotationsobject{}
server.serviceAccount.createbooltrue
server.serviceAccount.mountTokenbooltrue
server.serviceAccount.namestring""
server.svcPortint80
server.tolerationslist[]

Ingress

To enabled access from external resources, an Ingress resource is created. The configuration necessary for each Ingress resource is primarily dependent on the specific Ingress Controller being used. In most cases, implementation specific configuration is specified as annotations on the Ingress resources. These can be applied using the server.ingress.annotations parameter.

server:
  ingress:
    http:
      enabled: true
      hosts:
        - host: timestamp.localhost
          path: /

Deploy tsa with OpenTenant

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