{"id":50815411,"url":"https://github.com/ilia-ae/integrity","last_synced_at":"2026-06-13T09:03:49.551Z","repository":{"id":354898565,"uuid":"1225892645","full_name":"ilia-ae/integrity","owner":"ilia-ae","description":"📝📦🔓 Public deployment integrity manifests for razqqm projects","archived":false,"fork":false,"pushed_at":"2026-04-30T19:52:51.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-18T07:54:33.532Z","etag":null,"topics":["2026","ci","deployment","integrity","manifests","release-management"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ilia-ae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-30T18:53:04.000Z","updated_at":"2026-05-15T09:04:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ilia-ae/integrity","commit_stats":null,"previous_names":["razqqm/integrity","ilia-ae/integrity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ilia-ae/integrity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilia-ae%2Fintegrity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilia-ae%2Fintegrity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilia-ae%2Fintegrity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilia-ae%2Fintegrity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilia-ae","download_url":"https://codeload.github.com/ilia-ae/integrity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilia-ae%2Fintegrity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34278157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2026","ci","deployment","integrity","manifests","release-management"],"created_at":"2026-06-13T09:03:48.785Z","updated_at":"2026-06-13T09:03:49.540Z","avatar_url":"https://github.com/ilia-ae.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# integrity\n\nPublic **deployment integrity manifests** for projects maintained by [@razqqm](https://github.com/razqqm).\n\nThis repository serves a single purpose: publish, in plain sight, the cryptographic\nfingerprint of what is currently deployed for each project. A site can fetch its own\nmanifest from this repo at runtime, compute the same hash from the bundle running in\nthe visitor's browser, and report whether the two match.\n\nIt is intentionally minimal: no build step, no CI, no signatures. The only thing\nthat matters is that the manifest URL is **public** and **stable**, while the source\ncodebases of the projects can remain private.\n\n## Why this exists\n\nThe projects themselves are private repositories — auditors cannot click through to\nGitHub source to verify that what runs in the browser matches what was published.\nPublishing only the *hashes* on a separate, public repo gives anyone three things\nwithout exposing the source:\n\n1. **A public commitment.** Each deploy writes a manifest entry here. The git history\n   of this repo is therefore a public, append-only log of every deployment.\n2. **A way to verify in-page integrity claims.** A site reading \"deployed: a1b2c3d\"\n   can be cross-checked: visit the corresponding project's `manifest.json`, confirm\n   the same commit and hash.\n3. **Independent observation.** Even if the project's server is later compromised\n   to lie about what it is serving, an observer can still see the *true* last\n   deploy here and notice the mismatch.\n\n## Repository layout\n\n```\nprojects/\n  \u003chostname\u003e/\n    manifest.json         # current deployed manifest (always points at HEAD)\n    history/              # one file per past deploy, keyed by commit SHA\n      \u003ccommit-sha\u003e.json\nschema/\n  manifest.schema.json    # JSON Schema for manifest.json\nverify.js                 # tiny browser-side helper any project can import\n```\n\nStable manifest URL for any project:\n\n```\nhttps://raw.githubusercontent.com/razqqm/integrity/main/projects/\u003chostname\u003e/manifest.json\n```\n\n## Manifest format\n\n```json\n{\n  \"project\": \"tg.ilia.ae\",\n  \"commit\": \"1bf2ac5\",\n  \"commitFull\": \"1bf2ac5...\",\n  \"branch\": \"main\",\n  \"builtAt\": \"2026-04-30T18:37:14Z\",\n  \"publishedAt\": \"2026-04-30T18:38:02Z\",\n  \"bundles\": [\n    {\n      \"name\": \"main.js\",\n      \"url\": \"https://tg.ilia.ae/main-XYZ.js\",\n      \"sha256\": \"ab12cd34...\"\n    }\n  ],\n  \"sourceRepoVisibility\": \"private\",\n  \"publicSourceUrl\": null\n}\n```\n\n`sha256` is hex-encoded SHA-256 over the raw bytes of the deployed file. Easy to\nrecompute from the command line:\n\n```sh\ncurl -sL https://tg.ilia.ae/main-XYZ.js | shasum -a 256\n```\n\n…or in the browser via `crypto.subtle.digest('SHA-256', buffer)`.\n\n## How a project consumes this\n\n```js\nimport { verifyIntegrity } from 'https://raw.githubusercontent.com/razqqm/integrity/main/verify.js';\n\nconst result = await verifyIntegrity('tg.ilia.ae');\n// → { status: 'verified' | 'mismatch' | 'offline' | 'unknown',\n//     manifest, runningSha256, ... }\n```\n\nSee [`verify.js`](./verify.js) for the full surface.\n\n## How a manifest is published\n\nEach project's deploy script (or CI job) computes its own bundle SHA-256, opens a\nPR (or pushes directly) into this repo, and the new `manifest.json` becomes the\npublic commitment for that deploy. Old manifests are kept under `history/` so the\nlog is append-only.\n\nA reference helper script lives at [`scripts/publish.sh`](./scripts/publish.sh):\n\n```sh\n./scripts/publish.sh tg.ilia.ae \\\n    --commit 1bf2ac5 \\\n    --commit-full 1bf2ac5...  \\\n    --branch main \\\n    --bundle 'dist/browser/main-XYZ.js|https://tg.ilia.ae/main-XYZ.js|main.js'\n```\n\nThe `--bundle` spec is `\u003clocal-path\u003e|\u003cpublic-url\u003e|\u003clogical-name\u003e`, separated\nby `|` so URLs containing `:` parse cleanly.\n\n## Trust model — what this gives you, what it does not\n\nThis repository is a **public commitment**, not a cryptographic guarantee. The\nintegrity story relies on:\n\n- HTTPS to `raw.githubusercontent.com` — visitors trust GitHub's TLS.\n- The `razqqm` GitHub account not being compromised. Anyone publishing a fake\n  manifest under this repo would have to take over that account first.\n- The site's served bundle being identical, byte-for-byte, to what the manifest\n  describes. A SHA-256 mismatch is a strong signal that something between the\n  build server and the visitor's browser has been modified.\n\nWhat it does **not** do:\n\n- It does not prove the *source code* matches public expectations — the project\n  repo is private. Verification is \"what was deployed is consistent with what was\n  publicly committed\", not \"what was deployed is what you would have audited.\"\n- It does not protect against an attacker who controls both the project server\n  *and* the GitHub account at the same time.\n\nFor stronger guarantees (cryptographic signatures, transparency log inclusion),\nsee [Sigstore](https://www.sigstore.dev/) — this repo can be upgraded later to\nhost signed bundles in the same place.\n\n## License\n\nPublic domain (CC0-1.0). Manifests are factual data; do whatever you want with them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filia-ae%2Fintegrity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filia-ae%2Fintegrity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filia-ae%2Fintegrity/lists"}