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

Add tuf-on-ci workflows #1256

Merged
merged 6 commits into from
Jul 2, 2024
Merged

Add tuf-on-ci workflows #1256

merged 6 commits into from
Jul 2, 2024

Conversation

jku
Copy link
Member

@jku jku commented Jun 5, 2024

Add workflows for tuf-on-ci (see #1247 and for larger context #929).

  • these workflows are copied from root-signing-staging and modified for production environment
  • an existing test workflow was renamed because of a naming conflict -- I would rather keep the tuf-on-ci workflow with the original name to make it easier to port future changes
  • all scheduled runs are disabled until migration happens
  • As an additional safety measure the calls to deploy to GCS are commented out: this way we can enable the workflows without deploying all the way to GCS

These workflows should be complete and ready however:

  • they require some additional work before they can be enabled (setting repository variables etc), see Add migration material #1257 for migration plan
  • testing the changes from root-signing-staging can only happen here so there could still be issues: review is very welcome

@jku jku changed the title Add tuf on ci workflows Add tuf-on-ci workflows Jun 5, 2024
haydentherapper
haydentherapper previously approved these changes Jun 5, 2024
.github/workflows/ci-test.yml Show resolved Hide resolved
@jku jku force-pushed the add-tuf-on-ci-workflows branch from d5451b7 to f2e4e49 Compare June 6, 2024 07:53
@jku

This comment was marked as outdated.

@jku
Copy link
Member Author

jku commented Jun 6, 2024

... and I had to rebase because the renamed workflow confused githubs merge resolution

@jku jku mentioned this pull request Jun 6, 2024
@jku
Copy link
Member Author

jku commented Jun 6, 2024

I've included the GCP details in the online-sign workflow:

Original design uses GitHub variables: This keeps the online-sign
workflow unchanged from the upstream one and would be nice if the
variables were managed with configuration-as-code. Unfortunately
this is not possible in root-signing.

Embed GCP details in the workflow.

haydentherapper
haydentherapper previously approved these changes Jun 6, 2024
jku added 6 commits July 2, 2024 13:44
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]>
This test was just added in root-signing-staging so was not in the
initial copy.

Signed-off-by: Jussi Kukkonen <[email protected]>
Original design uses GitHub variables: This keeps the online-sign
workflow unchanged from the upstream one and would be nice if the
variables were managed with configuration-as-code. Unfortunately
this is not possible in root-signing.

Embed GCP details in the workflow.

Signed-off-by: Jussi Kukkonen <[email protected]>
@jku jku dismissed stale reviews from kommendorkapten and haydentherapper via 94a24d9 July 2, 2024 10:47
@jku jku force-pushed the add-tuf-on-ci-workflows branch from 4ba1fbd to 94a24d9 Compare July 2, 2024 10:47
@jku
Copy link
Member Author

jku commented Jul 2, 2024

I had to rebase as GitHub uses a conflict resolution that failed in this case (the default one in git rebase just works). No changes.

@jku jku requested a review from haydentherapper July 2, 2024 12:42
@jku jku merged commit 8358b03 into sigstore:main Jul 2, 2024
11 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.

3 participants