Skip to content

Commit 19b95fa

Browse files
committed
add instructions to run the hammer
1 parent 2fd924b commit 19b95fa

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

deployment/live/gcp/test/README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Prerequisites
44
You'll need to have a VM running in the same GCP project that you can SSH to,
5-
with Go installed.
5+
with Go installed, and you favourite terminal multiplexer.
66

77
## Overview
88

@@ -35,8 +35,25 @@ Terraforming the project can be done by:
3535
2. Run `terragrunt apply`
3636

3737
## Run the SCTFE
38+
### With fake chains
3839

39-
On the VM, run the following command:
40+
On the VM, run the following command to bring up the SCTFE:
4041
```bash
4142
go run ./cmd/gcp/ --project_id=${GOOGLE_PROJECT} --bucket=${GOOGLE_PROJECT}-${TESSERA_BASE_NAME}-bucket --spanner_db_path=projects/${GOOGLE_PROJECT}/instances/${TESSERA_BASE_NAME}/databases/${TESSERA_BASE_NAME}-db --spanner_db_path=projects/${GOOGLE_PROJECT}/instances/${TESSERA_BASE_NAME}/databases/${TESSERA_BASE_NAME}-dedup-db --private_key=./testdata/ct-http-server.privkey.pem --password=dirk --roots_pem_file=./testdata/fake-ca.cert --origin=${TESSERA_BASE_NAME}
4243
```
44+
45+
In a different terminal you can either mint and submit certificates manually, or use the hammer tool to do this.
46+
47+
#### Automatically generate chains
48+
Save the SCTFE repo's path:
49+
50+
```bash
51+
export SCTFE_REPO=$(pwd)
52+
```
53+
54+
Clone the [certificate-transparenct-go](https://github.com/google/certificate-transparency-go) repo, and from there run:
55+
56+
```bash
57+
go run ./trillian/integration/ct_hammer/ --ct_http_servers=localhost:6962/${TESSERA_BASE_NAME} --max_retry=2m --invalid_chance=0 --get_sth=0 --get_sth_consistency=0 --get_proof_by_hash=0 --get_entries=0 --get_roots=0 --get_entry_and_proof=0 --max_parallel_chains=4 --skip_https_verify=true --operations=10000 --rate_limit=150 --log_config=${SCTFE_REPO}/testdata/hammer.cfg --testdata_dir=./trillian/testdata/
58+
```
59+

0 commit comments

Comments
 (0)