forked from sigstore/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trillian: Add ability to specify custom storage system
Currently, the Trillian installation is hard-coded to use the mysql storage system. While this is mostly fine (it is the most common and used storage system for Trillian after all!), this makes it non trivial to try custom backends for Trillian. There is work on the way to introduce [a CockroachDB storage system for Trillian](google/trillian#2834). And, while this is currently not usable using the mainline Trillian image, it is possible to try out if one specifies a custom image for trillian. To enable this, some variables were introduced: * `storageSystem.driver`: defines the storage backend to use for both the log signer and the log server. Defaults to `mysql`. * `storageSystem.envCredentials`: is the kubernetes deployment definition of environment variables to aide the log signer in connecting to the desired database. When set to `null` it defaults to the environment variables used by MySQL: A values file that would take this work into use would look as follows: ```yaml storageSystem: driver: crdb envCredentials: - name: CRDB_USER valueFrom: secretKeyRef: name: mySecret key: crdb-user - name: CRDB_PASSWORD valueFrom: secretKeyRef: name: mySecret key: crdb-password - name: CRDB_HOST value: crdb.trillian.svc.cluster.local logServer: image: registry: ghcr.io repository: equinixmetal-security/trillian-log-server version: latest extraArgs: - "--crdb-uri=postgres://$(CRDB_USER):$(CRDB_PASSWORD)@$(CRDB_HOST):26257/" logSigner: image: registry: ghcr.io repository: equinixmetal-security/trillian-log-signer version: latest extraArgs: - "--crdb-uri=postgres://$(CRDB_USER):$(CRDB_PASSWORD)@$(CRDB_HOST):26257/" mysql: enabled: false ``` Signed-off-by: Juan Antonio Osorio <[email protected]>
- Loading branch information
Showing
6 changed files
with
55 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters