sigstore / root-signing-staging

Staging TUF repository for Sigstore trust root
https://tuf-repo-cdn.sigstage.dev/
Apache License 2.0
3 stars 5 forks source link

Add a GCS deploy workflow #45

Closed jku closed 4 months ago

jku commented 4 months ago

Fixes #7

This uploads the repository to GCS and invalidates the CDN cache.

GCP configuration is mostly hard coded, only service account details are inputs:

jku commented 4 months ago

Comparison to current implementation

See https://github.com/sigstore/root-signing/blob/main/.github/workflows/sync-main-to-staging.yml

The main logical change is that the git repository now only contains the current metadata versions. This means that if the publishing mechanism wants to both delete old metadata and artifacts but also ensure old metadata & artifacts are available for clients to use for a period of time, it needs to manage that. In practice there should be no pressing need for a sigstore repository to delete old metadata & artifacts: there will only be small amount of new files per year in normal operation.

The technical changes are listed below:

jku commented 4 months ago

@haydentherapper feel free to have a look already, I think this should be finished (but let's not merge yet).

jku commented 4 months ago

Two obvious feature requests:

jku commented 4 months ago

Rebased on main.

I'm marking this ready: