mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Sign packages, publish checksums, attest before upload, narrow permissions
GPG signing of rpm packages and detached signatures for deb packages and for the SHA256SUMS files, using GPG_PRIVATE_KEY / GPG_PASSPHRASE secrets. Checksums are published as release assets. Build provenance is attested before the assets are uploaded, so a failed attestation does not leave unattested files published. Workflow permissions are read-only, write permissions are requested per job only where they are used.
This commit is contained in:
1 parent
d53fdbc536
commit
db2f57fdd2
9 files changed
+287
-71
No files matched your search
+42
@@ -12,3 +12,45 @@
|
||||
Report to 3proxy@3proxy.org or via [GitHub security reporting](https://github.com/3proxy/3proxy/security)
|
||||
|
||||
For High/Critical patched version is released within 2 weeks
|
||||
|
||||
## Verifying downloads
|
||||
|
||||
Release binaries are published with SHA256 checksums, an OpenPGP signature and
|
||||
a GitHub build provenance attestation.
|
||||
|
||||
The release signing key is `3proxy-release-key.asc` in the root of this
|
||||
repository. Import it once:
|
||||
|
||||
```
|
||||
gpg --import 3proxy-release-key.asc
|
||||
```
|
||||
|
||||
Checksums and the checksum file signature:
|
||||
|
||||
```
|
||||
gpg --verify SHA256SUMS-x86_64.asc SHA256SUMS-x86_64
|
||||
sha256sum -c SHA256SUMS-x86_64
|
||||
```
|
||||
|
||||
RPM packages are signed, the signature is checked by rpm itself:
|
||||
|
||||
```
|
||||
sudo rpm --import 3proxy-release-key.asc
|
||||
rpm -K 3proxy-0.9.9.x86_64.rpm
|
||||
```
|
||||
|
||||
DEB packages are published with a detached signature:
|
||||
|
||||
```
|
||||
gpg --verify 3proxy-0.9.9.x86_64.deb.asc 3proxy-0.9.9.x86_64.deb
|
||||
```
|
||||
|
||||
Build provenance (which workflow, commit and runner produced the file) is
|
||||
verified with the GitHub CLI:
|
||||
|
||||
```
|
||||
gh attestation verify 3proxy-0.9.9.x86_64.rpm --owner 3proxy
|
||||
gh attestation verify oci://docker.io/3proxy/3proxy:lts --owner 3proxy
|
||||
```
|
||||
|
||||
Windows binaries are Authenticode signed in addition to the above.
|
||||
Reference in new issue
Block a user