github.com/google/trillian-examples@v0.0.0-20240520080811-0d40d35cef0e/clone/cmd/serverlessclone/README.md (about)

     1  # `serverlessclone`
     2  
     3  This tool clones any log generated by the [serverless](/serverless/) tooling
     4  that is made available over HTTP or HTTPS.
     5  See background and database setup in the [parent docs](../../README.md).
     6  
     7  ## Logs
     8  
     9  Example commands are provided for known serverless logs below. In all cases, the
    10  `mysql_uri` may need tweaking to your environment. The common parameters used are:
    11   * server: `localhost`
    12   * user: `clonetool`
    13   * password: `letmein`
    14  
    15  Each example will also have a named database. The database name picked is
    16  arbitrary at database creation.
    17  
    18  ### USB Armory
    19  
    20  https://github.com/usbarmory/armory-drive-log can be cloned into the `usbarmory`
    21  database using the following command:
    22  
    23  ```
    24  go run ./clone/cmd/serverlessclone --v=1 --alsologtostderr \
    25    --url=https://raw.githubusercontent.com/usbarmory/armory-drive-log/master/log/ \
    26    --vkey=armory-drive-log+16541b8f+AYDPmG5pQp4Bgu0a1mr5uDZ196+t8lIVIfWQSPWmP+Jv \
    27    --origin="Armory Drive Prod 2" \
    28    --mysql_uri='clonetool:letmein@tcp(localhost)/usbarmory'
    29  ```
    30  
    31  ### LVFS
    32  
    33  https://fwupd.org/ is running an experimental transparency log. This can be
    34  cloned into the `lvfs` database using the following command:
    35  
    36  ```
    37  go run ./clone/cmd/serverlessclone --v=1 --alsologtostderr \
    38    --url=https://fwupd.org/ftlog/lvfs/ \
    39    --vkey=lvfs+7908d142+ASnlGgOh+634tcE/2Lp3wV7k/cLoU6ncawmb/BLC1oMU \
    40    --origin=lvfs \
    41    --mysql_uri='clonetool:letmein@tcp(localhost)/lvfs'
    42  ```