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

ci/contributing: verify donation address/qr's are signed #2394

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

plowsof
Copy link
Collaborator

@plowsof plowsof commented Oct 16, 2024

with this PR i have moved the general fund donation addresses/qr checksums into a _data file that can be signed. this is confirmed in the workflow

thoughts? if this is useful we can ask bF to verify/sign the file.

  • Btc QR code with a consistent address
  • Confirm _data is gpg signed
  • Check hashes of QR's
  • Confirm scanned QR content == expected
  • Monero QR now has "monero:" uri
  • After review ask bF to sign the file

to sign: (whilst in _data)
gpg --output contributing.yml.asc --armor --detach-sig contributing.yml
overwrite existing file ✔️

@plowsof plowsof marked this pull request as draft October 16, 2024 14:35
Copy link

netlify bot commented Oct 16, 2024

Deploy Preview for barolo-time-757cf9 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 3b61379
🔍 Latest deploy log https://app.netlify.com/sites/barolo-time-757cf9/deploys/67135cc4f024250008b0d100
😎 Deploy Preview https://deploy-preview-2394--barolo-time-757cf9.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@plowsof plowsof force-pushed the contrib_data branch 16 times, most recently from 4565b88 to 0b5731e Compare October 18, 2024 15:55
@plowsof plowsof marked this pull request as ready for review October 18, 2024 15:56
@plowsof plowsof marked this pull request as draft October 18, 2024 21:22
@plowsof plowsof marked this pull request as ready for review October 19, 2024 21:59
@nahuhh
Copy link
Contributor

nahuhh commented Oct 20, 2024

LGTM. I have no preference over who signs the file, as long as its signed and correct.

if using your key, perhaps we should use your pgp key from the gitian.sigs repo(?).

@plowsof
Copy link
Collaborator Author

plowsof commented Oct 20, 2024

My plan is to either:

  1. Drop / amend the commit adding the signed file with binaryFates signed version.
  2. Add the hardcoded checksum in the workflow file and merge asap while we await the signed file (if that causes delays, but i've not asked yet)

i have sanity checked that the workflow fails correctly:

  • file has to be signed
  • external things such as diffs in checksum of qr images
  • the content of the QRs must match exactly what resides in contributing.yml (both xmr/btc)

after first approval(s) i can proceed with 2 then 1 or 1*

run: |
yaml="_data/contributing.yml"
get_yaml_value() {
awk -v key="$1:" '$1 == key {print $2}' "$yaml"
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 not familiar with awk but looks like easy to break things when the content of the site changed a bit. Is it?

Copy link
Contributor

@nahuhh nahuhh Nov 3, 2024

Choose a reason for hiding this comment

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

awk is a text processor and $1 processes the first argument $2 the second etc.

an example is
echo uhh nah | awk '{print $2 $1}'

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

also, we're only looking at "contributing.yml" . this is a hack to access yaml variables. astro has no problem importing yml files / using their variables so the same signed file will be usable by both.

@plowsof
Copy link
Collaborator Author

plowsof commented Nov 4, 2024

Thank you for the reviews. i will ask bF to sign the file for us

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