r/git • • Oct 15 '26

Why Git commit dates are legally hearsay, and how to cryptographically anchor commits before pushing

In Git, commit timestamps (GIT_COMMITTER_DATE and GIT_AUTHOR_DATE) are completely client-controlled strings. Anyone can forge commit history with a single flag:

`git commit --amend --date="2021-01-01 12:00:00"`

Because Git blindly records whatever the client clock claims, raw Git commit histories are legally treated as uncorroborated hearsay under U.S. Federal

Rules of Evidence (FRE 802). In ownership disputes, co-founder litigations, or M&A tech diligence, opposing counsel or auditors can easily argue that backdated commits were fabricated.

To solve this without breaking standard Git muscle memory or leaking private code, I built **GitProof** (https://gitproof.legendrail.com) and open-

sourced its standalone verifier (https://github.com/LEGEND-Rail/gitproof-verify):

### How it works under the hood:

1. **Deterministic Merkle DAG Hashing:** Before a push, it walks the Git tree and computes a canonical SHA-256 Merkle root across all tree and blob

objects. Changing a single character in any file completely alters the 32-byte Merkle root. 2. Atomic RFC 3161 Notarization: It sends only the 32-byte hash imprint to qualified public Time Stamp Authorities (DigiCert & Sectigo) via HTTP POST. Zero source code leaves your local machine. 3. Cryptographically Signed CMS Tokens: The TSA binds the hash to an atomic clock timestamp and cryptographically signs it using their intermediate X.509 certificate authority. 4. Git Hook Automation: A native .git/hooks/pre-push hook intercepts pushes to automatically seal and append attestations into .gitproof/proof. json. 5. 100% Open & Offline Verification: In legal or compliance audits, closed-source tools destroy credibility. The standalone verifier (gitproof- verify) is a zero-dependency Go CLI that anyone can run offline to verify Merkle trees and certificate chains against root CAs.

### Quick test in any Git repo:

```bash
# Install CLI
curl -fsSL https://gitproof.legendrail.com/install.sh | bash

# Seal commit & notarize against DigiCert TSA
gproof seal --notarize

# Verify cryptographic proof offline
gitproof-verify proof.json

• Open-Source Verifier Repo: https://github.com/LEGEND-Rail/gitproof-verify • Detailed Technical Spec: https://gitproof.legendrail.com/docs/rfc3161.html

I’d love to hear your thoughts on Git hook ergonomics, Merkle tree performance on large repos, and how teams here handle code provenance!

0 Upvotes

30 comments sorted by

View all comments

Show parent comment

2

u/jthill Oct 16 '26

Yes, but now we're back to "convoluted". Want an ironclad timestamp, get an unforgeable record of a commit id's existence, anything in that commit's history existed at that point. For example of what I was talking about e.g. S3 has log archival and admissible access logs, and you and I and I think everybody (justifiably, that's a separate debate) are all relying on even sha1 merkle tree ids being sufficient proof of existence at least for now, anybody who can use the pun break has to have both versions to create it and there's no hint of any deeper damage.

2

u/mze9412 Oct 17 '26

He is selling a solution, this is basically a business pitch, so meh ...

2

u/jthill Oct 17 '26

And I don't have a problem with that part.

It's the preying on ignorance and omission of material fact I have a problem with. I find it… distasteful.

1

u/mze9412 Oct 17 '26

I would at least wish for disclosure, then its fine!

1

u/jthill Oct 17 '26

Yah, the marketers being marketers view has worn beyond thin in spots for me.

1

u/lucyfor Oct 18 '26

On "selling a solution" / "disclosure": The CLI is 100% free and open-source (Apache-2.0), and every bundle it outputs verifies offline using standard openssl ts -verify and ssh-keygen with zero vendor lock-in. I built it because I actually had to defend my own code in a live IP lawsuit after being locked out—not as a hypothetical pitch.

1

u/lucyfor Oct 18 '26 edited Oct 18 '26

You just restated the exact problem while assuming S3 and bare Git hashes solve it:

  1. A Git Merkle tree ID (SHA-1/SHA-256) proves what is in the tree, never when it existed. Anyone can run GIT_AUTHOR_DATE="2020-01-01" git commit and produce a valid Merkle tree with a backdated history in two seconds. That is why you yourself wrote: "get an unforgeable record of a commit id's existence." The IETF standard for proving a hash existed at time T is anchoring that commit ID to an independent third-party clock (an RFC 3161 Time-Stamp Authority + append-only transparency log) — which is literally what git proof automates in one command.
  2. S3 access logs are neither unforgeable nor independent. AWS's own documentation explicitly states S3 server access logging is best-effort with no completeness or delivery-time guarantee. Worse, S3 logs sit inside whoever controls the AWS IAM root keys: if an employer or client locks you out of AWS, you lose access to the logs; if it is your own AWS account, opposing counsel argues you controlled the bucket and forces custodian-of-records subpoenas and foundation declarations (FRE 803(6)), whereas an independent RFC 3161 token + Ed25519 signature + FRE 902(13)/(14) bundle verifies mathematically offline with openssl ts -verify and zero trust in the host.

1

u/jthill Oct 18 '26

You just restated the exact problem while assuming S3 and bare Git hashes solve it:

No, I didn't. I said "unforgeable record of a commit id's existence".

S3 offers that, I did say access logs and that's not what's needed, S3's object locking is what's needed, but this is keeping records, "lucyfor". Anybody actually looking to do it can see what's needed. This is not rocket science. Good luck in your pursuit of ginning up a stampede.

1

u/lucyfor Oct 18 '26 edited Oct 18 '26

I spent a decade at Amazon working on AWS, the EC2 backplane, and GovCloud, and I hold multiple patents through Amazon IP counsel—so I know something about AWS storage and patent evidence standards.

S3 Object Lock is an internal WORM retention policy for SEC compliance. It is not an adversarial cryptographic proof of existence:

  1. Zero-Trust Verification: You cannot hand opposing counsel IAM credentials and ask them to trust your AWS API responses. A real proof must be portable and verifiable offline without trusting the author or AWS.
  2. Inadmissible as Hearsay (FRE 802): AWS explicitly disclaims timestamp warranties in the customer agreement. S3 metadata requires AWS custodian-of-records subpoenas and forensic declarations to introduce into court.
  3. Self-Authenticating (FRE 902(14)): An RFC 3161 Time-Stamp Token (TST) signed by an independent Time-Stamp Authority is self-authenticating, requires zero testimony or subpoenas, and verifies offline with standard openssl 20 years after your AWS account lapses or gets deleted.

And as for "ginning up a stampede" — I don't need to gin up anything. Launch day already brought a stampede with tens of thousands of inbound requests in the first few hours from developers who actually understand IP and evidence reality.