Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old code and metadata #1365

Merged
merged 7 commits into from
Sep 5, 2024
Merged

Conversation

jku
Copy link
Member

@jku jku commented Sep 5, 2024

This is part of #1356: Remove legacy code and metadata.

It's massive PR, apologies. I can split it if requested but a lot of these parts depend on each other so the split will be mostly aesthetic.

  • tuf-on-ci has replaced the go code and bash scripts in this repo
  • Makefile is updated to not refer to removed tools
  • One missing feature is the key authenticity verification: Add (yubi)key authenticity validation #1364
  • metadata sources now live in metadata/: it's better to remove the legacy repository/ ASAP so people do not get confused
  • I've also removed the ceremony directories: I believe we can let git store the history for those

jku added 7 commits September 5, 2024 13:31
repository/ is where repository sources used to live, but the
canonical locations are now metadata/ and targets/

Note that this also removes the yubikey certificates:
* I'm not opposed to storing them but I would like there to be
  integrated tools that verify them in signing events
* Migration made current verification scripts not usable

Signed-off-by: Jussi Kukkonen <[email protected]>
* step-* scripts are not needed: tuf-on-ci handles these aspects
* verify and dpop-verify equivalents are partly available:
  * the metadata validation side should be handled by tuf-on-ci
    reasonably well
  * the "verify authentic yubikey" fnctionality is not available
    at the moment

Signed-off-by: Jussi Kukkonen <[email protected]>
Let's just trust git to store the signing event / ceremony details.

Signed-off-by: Jussi Kukkonen <[email protected]>
* cmd/tuf is replaced by tuf-on-ci
* cmd/generate_staging is not needed
* cmd/verify equivalent is not available currently: We can bring
  something like it back but current code is not usable

Signed-off-by: Jussi Kukkonen <[email protected]>
As described in sigstore#1362 we are removing the key authenticity
validation for now. It may come back later.

Signed-off-by: Jussi Kukkonen <[email protected]>
Signed-off-by: Jussi Kukkonen <[email protected]>
There is no code to use this data anymore: we may still have to maintain
these fields in the metadata for legacy reasons but this has to be done
manually -- this is described in maintainer manual.

Signed-off-by: Jussi Kukkonen <[email protected]>
Copy link
Member

@kommendorkapten kommendorkapten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💥

@jku
Copy link
Member Author

jku commented Sep 5, 2024

WRT the go package: Based on GitHub dependency tracking there are no dependents that would break: sigstore-probers is listed as a user but that is AFAICT historical: current sigstore-probers does not use root-signing go code

@kommendorkapten
Copy link
Member

Good call on the probers, are they in a separate repository?

@jku
Copy link
Member Author

jku commented Sep 5, 2024

Good call on the probers, are they in a separate repository?

sigstore/sigstore-probers: it used to use some root-signing verify calls but currently the only TUF related thing left should be calls to theupdateframework/tuf-on-ci/actions/test-repository action

@jku jku linked an issue Sep 5, 2024 that may be closed by this pull request
Copy link
Contributor

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So much red, this is great!

extraargs="--out-format github-actions"; \
fi; \
$(GOBIN)/golangci-lint run -c .golangci.yml ./... $$extraargs

yamllint: ## Runs the yamllint linter.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a later PR, probably worth removing the Makefile entirely and moving this block into .github/workflows/lint.yaml

@jku jku merged commit a0b78d2 into sigstore:main Sep 5, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deps: Remove dependency on sigstore/cosign
3 participants