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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: simple release signing system #4339

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Conversation

dpc
Copy link
Contributor

@dpc dpc commented Feb 15, 2024

Use just sign-release v0.2.2 to sign the release.

<prefix>-SHA256SUM and <prefix>-SHA256SUMS.asc are meant to be checked in.

Now we get to (hopefully 馃) rip the benefits of Nix. We don't need the CI to sign anything, and anyone can verify and sign the release independently from the comfort of their personal terminal.

For reviewers:

  • please try to sign and verify that checksum are deterministic, you don't have to submit your signatures
  • does the file naming and fs structure make sense?

We can iterate from here

Immediate follow-ups:

  • add and verify reproducibility of macos binaries
  • check-in public keys from maintainers that are supposed to sign releases

@dpc dpc requested a review from a team as a code owner February 15, 2024 21:00
@dpc dpc requested a review from a team as a code owner February 15, 2024 21:06
Use `just sign-release v0.2.2` to sign the release.

<prefix>-SHA256SUM and <prefix>-SHA256SUMS.asc are meant
to be checked in.
Copy link
Contributor

@elsirion elsirion left a comment

Choose a reason for hiding this comment

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

馃帀

@@ -0,0 +1,6 @@
716840cfe02a270aff5bf1a02eda9c87946af231ad4ca5796a981ed0d9b1723f v0.2.2-x86_64-linux/fedimint-cli
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm getting the same hashes

Copy link
Contributor

Choose a reason for hiding this comment

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

image

Same as me :)

@@ -0,0 +1 @@
!/bins
Copy link
Contributor

Choose a reason for hiding this comment

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

Somehow this doesn't work for me? I'm getting

$ git status 
HEAD detached at pr/4339/head
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   v0.2.2-x86_64-linux.SHA256SUMS.asc

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	bins/

no changes added to commit (use "git add" and/or "git commit -a")

Copy link
Contributor

Choose a reason for hiding this comment

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

My git status has the bins under releases/bins, which is still showing up untracked in git

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dpc dpc added this pull request to the merge queue Feb 20, 2024
Merged via the queue into fedimint:master with commit f58e5f9 Feb 20, 2024
20 of 21 checks passed
@dpc dpc deleted the 24-02-15-sign-releases branch February 20, 2024 01:05

>&2 echo "Building..."
for out in fedimint-pkgs gateway-pkgs ; do
nix build "git+file:.?ref=refs/tags/${tag}#${out}"
Copy link
Contributor

Choose a reason for hiding this comment

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

I was wondering why we aren't using this build command in the context of #4305, but would these binaries run on non-nix systems? I doubt it and that's why we use bundlers. We should probably rather sign the bundler-generated binaries that we actually publish.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unclear if these binaries are reproducible but let's try. :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dpc added a commit to dpc/fedimint that referenced this pull request Feb 20, 2024
dpc added a commit to dpc/fedimint that referenced this pull request Feb 20, 2024
dpc added a commit to dpc/fedimint that referenced this pull request Feb 20, 2024
dpc added a commit to dpc/fedimint that referenced this pull request Feb 20, 2024
dpc added a commit to dpc/fedimint that referenced this pull request Feb 21, 2024
dpc added a commit to dpc/fedimint that referenced this pull request Feb 21, 2024
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.

None yet

3 participants