Verify PHP deployments
Deploy a git checkout and install dependencies with Composer. composer.lock pins each package to a commit of its source repository, and a commit names its file tree, so that tree is the reference. The attester hashes every file in the checkout and every file in vendor/, and inspects each PHP process. The verifier reads each package's tree at the pinned commit and compares every installed file with it, allowing for files the package marks export-ignore.
| Lockfile | composer.lock |
|---|---|
| Reference | Git tree of the pinned commit, with export-ignore |
| What is verified | Packages in vendor/ |
How it works
The lockfile is read at the deployed commit, from the verifier's own clone of the public repository, never from the server. Every package is compared with the reference the lockfile pins, fetched and checked by hash. Besides the packages, the deployed files are compared with the commit, every process of the service is inspected, and every running executable and library is explained by a reference. A reference that cannot be fetched makes the result inconclusive, never passing.
The PHP guide
The PHP guide covers the setup for the project, the attester and the verifier:
- What gets verified
- Requirements
- Attester configuration
- Verifier configuration
- Build and deploy
- Common findings
- Limits