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

tuf-on-ci migration preparation #1250

Closed
wants to merge 9 commits into from
Closed

Conversation

jku
Copy link
Member

@jku jku commented May 31, 2024

This is still a draft, missing a few bits and a self-review still.

Prepare for migration to tuf-on-ci managed TUF repository

This is a bunch of separate changes that prepare for #929 . They are in a single PR since they should all be no-ops with regards to day-to-day operations for now: just laying out some foundations. I can split to separate PRs if there's demand for that. See individual commits for more rationale.

  • playbooks for maintainers and signers
  • Update targets/ content to match what repository artifacts should be
  • rename current test.yml to ci-test.yml (because of naming conflict)
  • Add tuf-on-ci workflows in a disabled state
  • Add metadata whitespace modifying script to use during import
  • Add migration playbook
  • Add import configuration for tuf-on-ci

This is a part of #1247

jku added 6 commits May 31, 2024 10:11
* remove obsolete revocation/revocation.list and rekor.0.pub:
  Neither is included in current metadata
* add registry.npmjs.org/keys.json: This file is included in the current
  metadata

targets/ now matches the files in repository/repository/targets
(apart from trusted_root.json that has been modified in targets/
after the last signing event).

Signed-off-by: Jussi Kukkonen <[email protected]>
This script sets up the tuf-on-ci repository so that the initial
signing event can be run.

Signed-off-by: Jussi Kukkonen <[email protected]>
Same name is used in tuf-on-ci workflows: I would rather rename this one
since the tuf-on-ci workflow is used with workflow_call so
referenced in other workflows

Signed-off-by: Jussi Kukkonen <[email protected]>
These are direct copies from root-signing-staging: the required changes
are done in separate commits to make them visible.

Signed-off-by: Jussi Kukkonen <[email protected]>
Workflows were copied from staging. Modify them for production:
* Tweak PR and issue templates
* test workflows require URL changes (and some variable name changes)
* test workflows also get a new step where initial root is defined
  (as python-tuf does not consider root < 5 to be valid)
* deploy-to-gcs was modified so the gcloud details are internal
  to the workflow (since in prod it's a separate gcloud project/account,
  not the "tuf-on-ci online signing accout")

Signed-off-by: Jussi Kukkonen <[email protected]>
* Disable all scheduled runs
* Additionally remove publishing to GCS completely for now

Signed-off-by: Jussi Kukkonen <[email protected]>
jku added 3 commits June 3, 2024 09:14
These are likely not complete (e.g. key generation is under-documented).

Signed-off-by: Jussi Kukkonen <[email protected]>
This was just added in root-signing-staging so was not in the
initial copy.

Signed-off-by: Jussi Kukkonen <[email protected]>
import-config.json is used as argument to tuf-on-ci-import-repo, it
includes:
* offline role expiry and signing periods to set in metadata
* keyowners or online signing key identifiers for existing keys
* snapshot key is left with placeholder value: it (along with online
  expiry and signing periods) is expected to be modified with a
  tuf-on-ci-delegate call in the same signing event

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

jku commented Jun 4, 2024

This is likely ready for first review... but it's big enough that I should really split it first. I will do that tomorrow

@jku
Copy link
Member Author

jku commented Jun 5, 2024

closing, I've split this into three separate PRs

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.

1 participant