forked from omacom/omarchy
-
-
Notifications
You must be signed in to change notification settings - Fork 86
Finalize RC4 bootstrap keyring without activating strict signing #444
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
57ea984
Prepare RC4 bootstrap with finalized signing trust
malik-na 5554253
Use direct checks for the single active signing primary
malik-na 07753c8
Fix RC4 migration gates and make keyring upgrade tests reproducible
malik-na 745ebd5
Harden RC4 keyring validation
malik-na 9237ce3
Run keyring upgrade test in hosted ARM guest
malik-na 1b11746
Keep native keyring test on Arch hosts
malik-na a61ee87
Test shipped keyring upgrade baseline
malik-na File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| F3C5AE3FCFFC738C301E30A8F0C548C0D27279F7:4: | ||
| FBD6874D423C418DDB6D143EECE19CDDE306DBD2:4: |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| echo "Populate the finalized Omarchy Mac signing keyring" | ||
|
|
||
| # A successor is required for clients that already marked earlier migrations | ||
| # complete. Never remove existing keys or change repository signature policy. | ||
| installed=$(pacman -Q omarchy-mac-keyring) || { | ||
| echo "Install the reviewed Omarchy Mac keyring package first." >&2 | ||
| exit 1 | ||
| } | ||
| version=${installed#* } | ||
| comparison=$(vercmp "$version" 20260914-2) || exit 1 | ||
| if (( comparison < 0 )); then | ||
| echo "Omarchy Mac keyring 20260914-2 or newer is required." >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| sudo pacman-key --populate omarchy-mac || { | ||
| echo "Could not populate Omarchy Mac signing trust; this migration remains pending." >&2 | ||
| exit 1 | ||
| } | ||
| omarchy_mac_signing_key=FBD6874D423C418DDB6D143EECE19CDDE306DBD2 | ||
| if ! sudo pacman-key --finger "$omarchy_mac_signing_key" | tr -d '[:space:]' | grep -qF "$omarchy_mac_signing_key"; then | ||
| echo "The required Omarchy Mac signing primary $omarchy_mac_signing_key is missing after keyring population." >&2 | ||
| exit 1 | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Maintainer: Omarchy Mac | ||
|
|
||
| pkgname=omarchy-mac-keyring | ||
| pkgver=20260913 | ||
| pkgrel=1 | ||
| pkgdesc='Omarchy Mac package signing keyring' | ||
| arch=(any) | ||
| url='https://github.com/omarchy-mac/omarchy-mac' | ||
| license=('GPL-3.0-or-later') | ||
| install=$pkgname.install | ||
| source=('omarchy-mac.gpg' 'omarchy-mac-trusted' 'omarchy-mac-revoked') | ||
| sha512sums=('0e411148bf58cb1cf3c1ef544ea0936d82b0d7b3996c3ef3d20ac909959129c1d7cb58dc84ac466cd3e2d75db228aff896640899b4bbbef19e7636f3033a7ea8' | ||
| '2fb4497f96fd9f446e0177f9dbf8eb34f0ad3dce5fc7fb687312c5e20a1127ceb68f0d6022424f35b37e2a6a91fb097b2212595375fa4d37d7547697b17de86e' | ||
| 'cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e') | ||
|
|
||
| package() { | ||
| install -D -m0644 -t "$pkgdir/usr/share/pacman/keyrings/" \ | ||
| omarchy-mac.gpg omarchy-mac-trusted omarchy-mac-revoked | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Shipped quattro keyring package fixture | ||
|
|
||
| These five package sources are copied byte-for-byte from `origin/quattro` commit `04862a02c556b5c4305b2ea3430e9d2cfaab66c4`: `build-inputs/omarchy-mac-keyring/{PKGBUILD,omarchy-mac-keyring.install}` and `default/pacman/keyrings/{omarchy-mac.gpg,omarchy-mac-trusted,omarchy-mac-revoked}`. The package version is `20260913-1`. This provenance identifier is informational; running the test requires no Git history or remote access. | ||
|
|
||
| The fixture contains only public certificates, public trust metadata, and package source. It models the old-primary-only package shipped on the quattro baseline, does not revoke keys, and is the real predecessor for upgrade testing. `SHA256SUMS` binds the five original files. The native test verifies this manifest before building and checks that upgrading adds the new primary without disturbing existing old or unrelated client trust. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| c749142502810e7a0e002d1a01b34cfe43169c57cd1b820415eb1c6e4c123826 PKGBUILD | ||
| 604333c2027bf219ad759d7c1e8f8238a6fc3405f8fdb7ab8757c51c27b1cf60 omarchy-mac-keyring.install | ||
| e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 omarchy-mac-revoked | ||
| aad605b6a64277974467fe9c6c74c345d3e095cf19eb8853eec4803faf180268 omarchy-mac-trusted | ||
| 6e2801dc5c790b817fa5fc99cb2f4b93063042cbc94b2eb9c0e80026d97c6ca0 omarchy-mac.gpg |
11 changes: 11 additions & 0 deletions
11
test/fixtures/omarchy-mac-keyring-20260913-1/omarchy-mac-keyring.install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| post_upgrade() { | ||
| if [ -x usr/bin/pacman-key ] && usr/bin/pacman-key -l >/dev/null 2>&1; then | ||
| usr/bin/pacman-key --populate omarchy-mac | ||
| else | ||
| echo ' >>> Initialize pacman-key, then run pacman-key --populate omarchy-mac.' | ||
| fi | ||
| } | ||
|
|
||
| post_install() { | ||
| post_upgrade | ||
| } |
Empty file.
1 change: 1 addition & 0 deletions
1
test/fixtures/omarchy-mac-keyring-20260913-1/omarchy-mac-trusted
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| F3C5AE3FCFFC738C301E30A8F0C548C0D27279F7:4: |
16 changes: 16 additions & 0 deletions
16
test/fixtures/omarchy-mac-keyring-20260913-1/omarchy-mac.gpg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| -----BEGIN PGP PUBLIC KEY BLOCK----- | ||
|
|
||
| mDMEaqbKtRYJKwYBBAHaRw8BAQdAI7gUCEOd14QplbZ12KYIV7XkM+/wyPPG9QBz | ||
| mPvV5bW0G09tYXJjaHkgTWFjIFBhY2thZ2UgU2lnbmluZ4iWBBMWCgA+FiEE88Wu | ||
| P8/8c4wwHjCo8MVIwNJyefcFAmqmyrUCGwEFCQlmAYAFCwkIBwIGFQoJCAsCBBYC | ||
| AwECHgECF4AACgkQ8MVIwNJyefc4HgEArUgsUks8G6WRTBV5Ef52/djRyIGu7Uai | ||
| e5Ih8U3XB9gA/RjtlKVqC3E00ZhN5m4Oc2IbfPNZr8Oh7ZlYdvFq148BuDMEaqbK | ||
| 3xYJKwYBBAHaRw8BAQdAWA4H8/FHdnZP1Z9NeFkFNmMNIJyDT66oSHcGCxBjLIOI | ||
| 9AQYFgoAJhYhBPPFrj/P/HOMMB4wqPDFSMDScnn3BQJqpsrfAhsCBQkB4TOAAIAJ | ||
| EPDFSMDScnn3dSAEGRYKAB0WIQRsJZfG5p/EiY09Vg4zEwdpYDAoXgUCaqbK3wAK | ||
| CRAzEwdpYDAoXvBSAPMGvUcm9mi64yMqX3nkMsi1H7HuvdXmBaRgyllBrqYRAQDA | ||
| xFiDGYOtJqPZwpcIupeEn0Z62ScAwjBS5ONqXNfdAjvBAP41jIblDA42gFKa/G8b | ||
| xL9fy7HGsg/zpEFBnGsA/EB03wEA02k2hYO0FuV7qo3pmqVqR0MIVygZLEA2sGWB | ||
| Jyvh8wU= | ||
| =iEoD | ||
| -----END PGP PUBLIC KEY BLOCK----- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Maintainer: Omarchy Mac | ||
|
|
||
| pkgname=omarchy-mac-keyring | ||
| pkgver=20260914 | ||
| pkgrel=1 | ||
| pkgdesc='Omarchy Mac package signing keyring' | ||
| arch=(any) | ||
| url='https://github.com/omarchy-mac/omarchy-mac' | ||
| license=('GPL-3.0-or-later') | ||
| install=$pkgname.install | ||
| source=('omarchy-mac.gpg' 'omarchy-mac-trusted' 'omarchy-mac-revoked') | ||
| sha512sums=('1372202bdde5a3f8a79caceed4cff537012f7c1000a63e3cde808842fa913248b5d139641e9dcde378713b18658df8ace30b315a7193415402f614c70ad267a2' | ||
| '9414cc6dfca81c1eb098e23908c4e9bfb4bf5ab75ddb75e8b538c204e64ab2e3869f6e91f59886625d6fd0c53c1837db9184b12e4e4450c25175f221ffeca9f9' | ||
| 'cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e') | ||
|
|
||
| package() { | ||
| install -D -m0644 -t "$pkgdir/usr/share/pacman/keyrings/" \ | ||
| omarchy-mac.gpg omarchy-mac-trusted omarchy-mac-revoked | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.