Skip to content

Security: ScriptKittyOS/requisition-aws

SECURITY.md

Security

Verify this release

Every release of requisition-aws is built by the workflow .github/workflows/release.yml from a signed tag. The release files listed in RELEASE-SHA256SUMS (the wheel, the source distribution and the two offline bundles) are published only when each one is byte for byte the file that was reviewed before the tag. The bill of materials and the attestation bundle are written by the workflow when it releases, so they have no reviewed digest: the attestation (step 4) covers the release files and the bill of materials. These steps check that, from the outside. Each step names the files it needs; all of them are attached to the GitHub release (https://github.com/ScriptKittyOS/requisition-aws/releases/tag/v0.3.0). The examples are for 0.3.0.

What the release holds:

File What it is
requisition_aws-0.3.0-py3-none-any.whl, requisition_aws-0.3.0.tar.gz the release files
RELEASE-SHA256SUMS the SHA-256 of each release file, as reviewed (also in the repository at the tag)
RELEASE-SHA256SUMS.mldsa87.json the ML-DSA-87 signature of RELEASE-SHA256SUMS by the release key
RELEASE-KEYS.json the release's ML-DSA-87 public key
requisition_aws-0.3.0-offline-linux_x86_64.tar.gz, requisition_aws-0.3.0-offline-linux_aarch64.tar.gz the offline bundles: the wheel, every dependency wheel and a requirements.txt pinning each by SHA-256 (README.md, "Install")
requisition_aws-0.3.0.cdx.json the software bill of materials (CycloneDX 1.5)
v0.3.0.provenance.sigstore.json the build provenance attestation (SLSA v1, Sigstore bundle)
ALL-ASSETS.sha256 the SHA-256 of every file attached to the release

The release keys, with their fingerprints, are in RELEASE-SIGNERS (OpenPGP) and RELEASE-KEYS.json (ML-DSA-87) at the tag. A key read from the same place as the release proves only that the two agree, so the steps below take the fingerprints obtained another way: OPENPGP_FPRS (the OpenPGP fingerprints, 40 hexadecimal digits each) and KEY_SHA256 (the SHA-256 of the ML-DSA-87 key). Two other places publish them: the notes of the GitHub release (the workflow writes there the values its release environment holds, outside the repository) and the profile of the project's GitHub organisation (https://github.com/ScriptKittyOS). Compare the two, or use the values of an earlier release you already checked.

1. The tag (OpenPGP)

git clone https://github.com/ScriptKittyOS/requisition-aws && cd requisition-aws && git checkout v0.3.0
gpg --import RELEASE-SIGNERS.asc
git verify-tag v0.3.0
.github/release/verify-tag.sh --release-signers "OPENPGP_FPRS" v0.3.0 0.3.0

The keys are imported from the tag's own RELEASE-SIGNERS.asc. git verify-tag must report a good signature. verify-tag.sh must print verify-tag: PASS: it makes the check the workflow's publish job makes, in a new, empty keyring: an annotated tag on the commit checked out, signed by one of the keys OPENPGP_FPRS names, and RELEASE-SIGNERS at the tag lists exactly those keys, each with the status release. Offline once cloned.

2. The digests

In the folder that holds the downloaded release files and RELEASE-SHA256SUMS:

sha256sum --strict -c RELEASE-SHA256SUMS

Every line must say OK. Offline.

3. The post-quantum signature on the digests (ML-DSA-87)

RELEASE-SHA256SUMS is signed with ML-DSA-87 (FIPS 204, the pure form, empty context) by the release key before the tag is made. In the folder of step 2 (which also holds RELEASE-SHA256SUMS.mldsa87.json and RELEASE-KEYS.json), check it with the offline verifier kit's checker; KEY_SHA256 is the release key's fingerprint (the SHA-256 of its raw public key) obtained another way:

python3 -I <kit>/verifier/verify_release_sums.py --mldsa <kit>/verifier/vendor/mldsa.py \
    --sums RELEASE-SHA256SUMS --signature RELEASE-SHA256SUMS.mldsa87.json --keys RELEASE-KEYS.json \
    --expect-key KEY_SHA256

It must print PASS: .... Offline. <kit> is a checkout of the offline verifier kit, https://github.com/ScriptKittyOS/Requisition-Offline-Verifier (standard library Python and the vendored pure-Python ML-DSA verifier, which the script refuses unless its SHA-256 is the pinned one).

4. The build provenance (GitHub artifact attestation)

The publishing job attests every release file. With the GitHub CLI:

gh attestation verify requisition_aws-0.3.0.tar.gz --repo ScriptKittyOS/requisition-aws \
    --signer-workflow ScriptKittyOS/requisition-aws/.github/workflows/release.yml \
    --source-ref refs/tags/v0.3.0 --deny-self-hosted-runners

This asks GitHub for the attestation. To check it offline, fetch the trusted root once (gh attestation trusted-root > trusted_root.jsonl) and give the bundle attached to the release:

gh attestation verify requisition_aws-0.3.0.tar.gz --repo ScriptKittyOS/requisition-aws --bundle v0.3.0.provenance.sigstore.json \
    --custom-trusted-root trusted_root.jsonl --signer-workflow ScriptKittyOS/requisition-aws/.github/workflows/release.yml

The attestation states that the file was built by that workflow, from that tag, on a GitHub-hosted runner (SLSA v1.0 Build Level 2, as GitHub describes its artifact attestations).

5. Build it yourself

The build is reproducible: the same tag and the pinned tools give the same bytes.

git clone https://github.com/ScriptKittyOS/requisition-aws && cd requisition-aws && git checkout v0.3.0
# uv 0.10.8 on PATH (for example: python3 -m pip install --require-hashes -r .github/release/uv-requirements.txt)
.github/release/build.sh v0.3.0 ../rebuilt
python3 -I .github/release/offline_bundle.py 0.3.0 ../rebuilt/requisition_aws-0.3.0-py3-none-any.whl ../rebuilt
.github/release/check-sums.sh RELEASE-SHA256SUMS ../rebuilt

build.sh writes the wheel and the source distribution; offline_bundle.py writes the two offline bundles from that wheel and the dependency wheels, each downloaded from the URL uv.lock names and refused unless its SHA-256 is the one uv.lock gives (--wheel-dir DIR reads them from a folder instead). check-sums.sh must print PASS: the folder holds exactly the four files RELEASE-SHA256SUMS lists, each with the reviewed SHA-256.

6. The files on PyPI

PyPI serves the wheel and the source distribution (the offline bundles are on the GitHub release only). The digests PyPI lists must be their lines in RELEASE-SHA256SUMS (no output means they are):

curl -s https://pypi.org/pypi/requisition-aws/0.3.0/json   | python3 -I -c 'import json, sys; [print(u["digests"]["sha256"] + "  " + u["filename"]) for u in json.load(sys.stdin)["urls"]]'   | sort -k2 | diff - <(grep -v offline RELEASE-SHA256SUMS | sort -k2)

Each file also carries a PEP 740 attestation made at upload by the release workflow: its page on PyPI shows it under "Provenance", and https://pypi.org/integrity/requisition-aws/0.3.0/<file name>/provenance returns it.

There aren't any published security advisories