Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
zosman1 committed Apr 13, 2021
0 parents commit 26bfc3a
Show file tree
Hide file tree
Showing 14 changed files with 335 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
root = true
[*]
end_of_line = lf
charset = utf-8
indent_style = tab
indent_size = 8
12 changes: 12 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
update-keys export-ignore
.gitattributes export-ignore
.gitignore export-ignore
master-keyids export-ignore
packager-keyids export-ignore
master export-ignore
packager export-ignore
.editorconfig export-ignore
master-revoked-keyids export-ignore
master-revoked export-ignore
packager-revoked-keyids export-ignore
packager-revoked export-ignore
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*~
glados-keyring-*.tar.gz
glados-keyring-*.tar.gz.sig
/.idea
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
V=20210413

PREFIX = /usr/local

install:
install -dm755 $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
install -m0644 glados.gpg $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
install -m0644 glados-trusted $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
install -m0644 glados-revoked $(DESTDIR)$(PREFIX)/share/pacman/keyrings/

uninstall:
rm -f $(DESTDIR)$(PREFIX)/share/pacman/keyrings/glados{.gpg,-trusted,-revoked}
rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/pacman/keyrings/

dist:
git archive --format=tar --prefix=glados-keyring-$(V)/ $(V) | gzip -9 > glados-keyring-$(V).tar.gz
gpg --detach-sign --use-agent glados-keyring-$(V).tar.gz


.PHONY: install uninstall dist
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Aperture Linux Keyring

Repository for the Aperture Linux keyring package.

## Addition/Removal/Update of a packaging key

1. Get the keyid for the requested key
2. Add the keyid to `packager-keyids` in alphabetic order, following this
format: full size keyid, a tab, nickname.

## Revoking a packager key

1. Remove the keyid of the revoked user from `packager-keyids`.
2. Add the removed keyid to `packager-revoked-keyids`, in alphabetic order,
following this format: full size keyid, a tab, nickname, a tab and reason of
revocation.

## Keyring release

1. bump the version in the Makefile
2. Run update-keys
4. git add the new .asc file in the packager directory.
4. Commit everything as 'Update keyring'
5. Create a new tag ```git tag -s $(date +"%Y%m%d")```
6. Push changes
7. Upload the source tarball with ```make dist upload```
8. Update the package

1 change: 1 addition & 0 deletions glados-trusted
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
F015C6B247D6243360B742F994EBB7A5965B9914:4:
84 changes: 84 additions & 0 deletions glados.gpg
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: master-key: zosman (F015C6B247D6243360B742F994EBB7A5965B9914)

mQGNBF9frYwBDADcaL1vCTQcfwBJnCas9faXbf0gb823MGx7mht7cQ3u5KXyATU2
tNr0CQplHMU53i4E3AaE9Lb71rR3Lh9qBoOkkEXhG2oub7AbLA5zs/YQgQInmMlG
UfO5s3R8BU35n/vzAGPCyix1DnYeWWCQKN7CchWN7cthn1c9XZn2qLfGzkJUToIB
GKhFQP1Ofnmm35LF8ANJYMGawawH5M/sygQm+HtnZYHs40mEP6nzcXseVvQdYzG6
MB+w4267uxc67dI4TDYhvbdU3ittNVtbIWptj5r7OENPZoG5rstd2lAsv9tXOFgD
29XmkoigJxAwWNkEOWBc5cYCedb4eqFirN0c9bvRIjbDb+4+zYOghrVFSZ2CKsdX
Hhagdxx/JBYPNTf2nXEmD+/+ie+oHqu1F+HjwhApCOkI3Zkmu5G9lv+z4Xdep+ZT
n+V2Ux92SxR/Ay0HnHxZTGN98io0Frnm5bYZnNI9NqChzbiOgVQQYia5grAJcghG
Ndlk8do3OXZk8SUAEQEAAbQbWm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KsU8circoNIuWDHq15l8X5Swez8
z3OxJmWKW8pOqD8symXXIUtgyd1xpXt7VucymCcAZ9UtkpZw2qXTMDPWZX9ANOec
rb0eVgUYi9YuO6qgThATjY7rP+EZfi/JyGxkqwGXr5dzO9gst1bh9rMRKfJvXzMA
EQEAAYkBvAQYAQgAJhYhBPAVxrJH1iQzYLdC+ZTrt6WWW5kUBQJfX62MAhsMBQkD
wmcAAAoJEJTrt6WWW5kUcLYMAIcsOPyGZ6nliiaiqh6sIo5jEdhpMC2bT87QVi5S
vWKv+omsa5BLmM4heCRCV9OP5xSEWLDueVo7YvjuZJIADKrBvSL/5zyjbRzImlXk
C5cKrCbMnryIA6rbOZvySwkNmBwo4MZO1BkkVc6IxaOe3PokQtig3coe1RVxD4kJ
+6ceVPg5m47udJ5VKgFUtvJzzHrYw3EVRfzso8Sr7IxdVvv0Sed+whUaf5iKuCrl
DlFx/Pewu/YbCBl9CYo6ZccqWnyXDnhHG71GuAE2farGUrthUhTyi9Pf8ykSalVx
SmFOs3F5NL9lDHdjlqTcarufRAwWVuZGE5TLWDUzGisQID7fC7BJfZgrcMM+CGN0
XjBYQkh8g6xW3NUysWuzwc4hn99pwKa89oVidj3dBnz9MWIshQlOYQqAcVRPqG8v
dzSEd7mcsaWStOS7ecF3clq+UWx62flSsuLOkQDIdBryP1RCPqHWN71OGhOBem4B
3zs0liQ6zK+nzZR+vnfPjc0BMQ==
=4Ez3
-----END PGP PUBLIC KEY BLOCK-----
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: packager: zosman (F015C6B247D6243360B742F994EBB7A5965B9914)

mQGNBF9frYwBDADcaL1vCTQcfwBJnCas9faXbf0gb823MGx7mht7cQ3u5KXyATU2
tNr0CQplHMU53i4E3AaE9Lb71rR3Lh9qBoOkkEXhG2oub7AbLA5zs/YQgQInmMlG
UfO5s3R8BU35n/vzAGPCyix1DnYeWWCQKN7CchWN7cthn1c9XZn2qLfGzkJUToIB
GKhFQP1Ofnmm35LF8ANJYM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vnfPjc0BMQ==
=4Ez3
-----END PGP PUBLIC KEY BLOCK-----
1 change: 1 addition & 0 deletions master-keyids
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
F015C6B247D6243360B742F994EBB7A5965B9914 zosman
Empty file added master-revoked-keyids
Empty file.
42 changes: 42 additions & 0 deletions master/zosman.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: master-key: zosman (F015C6B247D6243360B742F994EBB7A5965B9914)

mQGNBF9frYwBDADcaL1vCTQcfwBJnCas9faXbf0gb823MGx7mht7cQ3u5KXyATU2
tNr0CQplHMU53i4E3AaE9Lb71rR3Lh9qBoOkkEXhG2oub7AbLA5zs/YQgQInmMlG
UfO5s3R8BU35n/vzAGPCyix1DnYeWWCQKN7CchWN7cthn1c9XZn2qLfGzkJUToIB
GKhFQP1Ofnmm35LF8ANJYMGawawH5M/sygQm+HtnZYHs40mEP6nzcXseVvQdYzG6
MB+w4267uxc67dI4TDYhvbdU3ittNVtbIWptj5r7OENPZoG5rstd2lAsv9tXOFgD
29XmkoigJxAwWNkEOWBc5cYCedb4eqFirN0c9bvRIjbDb+4+zYOghrVFSZ2CKsdX
Hhagdxx/JBYPNTf2nXEmD+/+ie+oHqu1F+HjwhApCOkI3Zkmu5G9lv+z4Xdep+ZT
n+V2Ux92SxR/Ay0HnHxZTGN98io0Frnm5bYZnNI9NqChzbiOgVQQYia5grAJcghG
Ndlk8do3OXZk8SUAEQEAAbQbWmFjaCBPc21hbiA8em9zbWFuQGdtdS5lZHU+iQHU
BBMBCAA+FiEE8BXGskfWJDNgt0L5lOu3pZZbmRQFAl9frYwCGwMFCQPCZwAFCwkI
BwIGFQoJCAsCBBYCAwECHgECF4AACgkQlOu3pZZbmRQWpwwAmZjCO7Rrtqdb03CV
Hel/TCbrR2JxckrbJegdzG72GTBcBvC0G2/PNAUN/pzXQ5+XRVDYj2XAC55A8m+6
WpoBohPCcZcH/swBhcmO4vg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6nliiaiqh6sIo5jEdhpMC2bT87QVi5S
vWKv+omsa5BLmM4heCRCV9OP5xSEWLDueVo7YvjuZJIADKrBvSL/5zyjbRzImlXk
C5cKrCbMnryIA6rbOZvySwkNmBwo4MZO1BkkVc6IxaOe3PokQtig3coe1RVxD4kJ
+6ceVPg5m47udJ5VKgFUtvJzzHrYw3EVRfzso8Sr7IxdVvv0Sed+whUaf5iKuCrl
DlFx/Pewu/YbCBl9CYo6ZccqWnyXDnhHG71GuAE2farGUrthUhTyi9Pf8ykSalVx
SmFOs3F5NL9lDHdjlqTcarufRAwWVuZGE5TLWDUzGisQID7fC7BJfZgrcMM+CGN0
XjBYQkh8g6xW3NUysWuzwc4hn99pwKa89oVidj3dBnz9MWIshQlOYQqAcVRPqG8v
dzSEd7mcsaWStOS7ecF3clq+UWx62flSsuLOkQDIdBryP1RCPqHWN71OGhOBem4B
3zs0liQ6zK+nzZR+vnfPjc0BMQ==
=4Ez3
-----END PGP PUBLIC KEY BLOCK-----
1 change: 1 addition & 0 deletions packager-keyids
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
F015C6B247D6243360B742F994EBB7A5965B9914 zosman
Empty file added packager-revoked-keyids
Empty file.
42 changes: 42 additions & 0 deletions packager/zosman.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: packager: zosman (F015C6B247D6243360B742F994EBB7A5965B9914)

mQGNBF9frYwBDADcaL1vCTQcfwBJnCas9faXbf0gb823MGx7mht7cQ3u5KXyATU2
tNr0CQplHMU53i4E3AaE9Lb71rR3Lh9qBoOkkEXhG2oub7AbLA5zs/YQgQInmMlG
UfO5s3R8BU35n/vzAGPCyix1DnYeWWCQKN7CchWN7cthn1c9XZn2qLfGzkJUToIB
GKhFQP1Ofnmm35LF8ANJYMGawawH5M/sygQm+HtnZYHs40mEP6nzcXseVvQdYzG6
MB+w4267uxc67dI4TDYhvbdU3ittNVtbIWptj5r7OENPZoG5rst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Ru3vjF2b3Gc7UsRXugnmOVHz2aBPYX6bnhVJ/9q27Mab5PjnSG+IdH+RFbYeIt
ugNA3Exr0i7ySkICm4JKeBbMGCcSv3+IZX8+YRUZgyIdoNxWG+zC7O6pVOEMsH9x
0O0OrcqjTlN1KSF+k+OhSfLxucKB8M9Z9KNHJnCPBF1zGI/ja5VcImvfr2l9ZzUn
W9/kQnMmHDKUgpY5aaARTxvxaCXS69oNYHc6hKsU8circoNIuWDHq15l8X5Swez8
z3OxJmWKW8pOqD8symXXIUtgyd1xpXt7VucymCcAZ9UtkpZw2qXTMDPWZX9ANOec
rb0eVgUYi9YuO6qgThATjY7rP+EZfi/JyGxkqwGXr5dzO9gst1bh9rMRKfJvXzMA
EQEAAYkBvAQYAQgAJhYhBPAVxrJH1iQzYLdC+ZTrt6WWW5kUBQJfX62MAhsMBQkD
wmcAAAoJEJTrt6WWW5kUcLYMAIcsOPyGZ6nliiaiqh6sIo5jEdhpMC2bT87QVi5S
vWKv+omsa5BLmM4heCRCV9OP5xSEWLDueVo7YvjuZJIADKrBvSL/5zyjbRzImlXk
C5cKrCbMnryIA6rbOZvySwkNmBwo4MZO1BkkVc6IxaOe3PokQtig3coe1RVxD4kJ
+6ceVPg5m47udJ5VKgFUtvJzzHrYw3EVRfzso8Sr7IxdVvv0Sed+whUaf5iKuCrl
DlFx/Pewu/YbCBl9CYo6ZccqWnyXDnhHG71GuAE2farGUrthUhTyi9Pf8ykSalVx
SmFOs3F5NL9lDHdjlqTcarufRAwWVuZGE5TLWDUzGisQID7fC7BJfZgrcMM+CGN0
XjBYQkh8g6xW3NUysWuzwc4hn99pwKa89oVidj3dBnz9MWIshQlOYQqAcVRPqG8v
dzSEd7mcsaWStOS7ecF3clq+UWx62flSsuLOkQDIdBryP1RCPqHWN71OGhOBem4B
3zs0liQ6zK+nzZR+vnfPjc0BMQ==
=4Ez3
-----END PGP PUBLIC KEY BLOCK-----
94 changes: 94 additions & 0 deletions update-keys
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
#!/bin/bash

set -e

export LANG=C

TMPDIR=$(mktemp -d)
trap "rm -rf '${TMPDIR}'" EXIT

KEYSERVER='hkp://pool.sks-keyservers.net'
GPG=(gpg --homedir "${TMPDIR}")

cat << __EOF__ > "${TMPDIR}"/gpg.conf
quiet
batch
no-tty
no-permission-warning
export-options no-export-attributes,export-clean
keyserver ${KEYSERVER}
keyserver-options no-self-sigs-only
armor
no-emit-version
__EOF__

cd "$(dirname "$0")"

"${GPG[@]}" --gen-key <<EOF
%echo Generating Aperture Linux keyring temporary master key...
Key-Type: RSA
Key-Length: 2048
Key-Usage: sign
Name-Real: Aperture Linux keyring temporary master key
Name-Email: glados-keyring@localhost
Expire-Date: 0
%no-protection
%commit
%echo Done
EOF

"${GPG[@]}" --import < glados.gpg

rm -rf master{,-revoked} packager{,-revoked} glados-{trusted,revoked}
mkdir master packager master-revoked packager-revoked

# refresh/receive all keys
while read -ra data; do
keyid="${data[0]}"
username="${data[@]:1}"
if "${GPG[@]}" --list-keys ${keyid} >/dev/null &>/dev/null; then
"${GPG[@]}" --refresh-keys ${keyid} &>/dev/null
else
"${GPG[@]}" --recv-keys ${keyid} &>/dev/null
fi
done < <(cat master-keyids master-revoked-keyids packager-keyids packager-revoked-keyids)

# master-keyids
while read -ra data; do
keyid="${data[0]}"
username="${data[@]:1}"
"${GPG[@]}" --yes --lsign-key ${keyid} &>/dev/null
"${GPG[@]}" --comment "master-key: ${username} (${keyid})" --export ${keyid} >> master/${username}.asc
echo "${keyid}:4:" >> glados-trusted
done < master-keyids
"${GPG[@]}" --import-ownertrust < glados-trusted 2>/dev/null

# master-revoked-keyids
while read -ra data; do
keyid="${data[0]}"
username="${data[1]}"
"${GPG[@]}" --comment "revoked master-key: ${username} (${keyid})" --export ${keyid} >> master-revoked/${username}.asc
echo "${keyid}" >> glados-revoked
done < master-revoked-keyids

# packager-keyids
while read -ra data; do
keyid="${data[0]}"
username="${data[@]:1}"
if ! "${GPG[@]}" --list-keys --with-colons ${keyid} 2>/dev/null | grep -q '^pub:f:'; then
echo "WARNING: key is not fully trusted: ${keyid} ${username}"
"${GPG[@]}" --comment "marginal trust: ${username} (${keyid})" --export ${keyid} >> packager/${username}.asc
else
"${GPG[@]}" --comment "packager: ${username} (${keyid})" --export ${keyid} >> packager/${username}.asc
fi
done < packager-keyids

# packager-revoked-keyids
while read -ra data; do
keyid="${data[0]}"
username="${data[1]}"
"${GPG[@]}" --comment "revoked packager: ${username} (${keyid})" --export ${keyid} >> packager-revoked/${username}.asc
echo "${keyid}" >> glados-revoked
done < packager-revoked-keyids

cat master/*.asc master-revoked/*.asc packager/*.asc packager-revoked/*.asc > glados.gpg

0 comments on commit 26bfc3a

Please sign in to comment.