verifier_tools: Add support for Tessera backed sharded logs. - #15
Merged
Merged
Conversation
cmd/verifier/verifier.go: - configured a new base URL and note verifier for Google APK Log v2. - refactored main with a logTarget chain so --log_type=google_1p_apk checks the latest Tessera shard (2026/02) first, and automatically falls back to the legacy 2026/01 shard if the candidate payload is not found. internal/checkpoint/checkpoint.go: - added new origin to `parseCheckpoint`. - added `FromURLWithPath` function to support standard Tessera checkpoint paths (checkpoint) alongside legacy paths (checkpoint.txt). - also added unit tests for Tessera logs. internal/tiles/reader.go: - extended `HashReader` with `IsTessera` flag to address Merkle tree hash tiles with standard tile/<L>/<N>[.p/<W>] paths (omitting tile height). - added `EntryTilePath` and `ParseEntryBundle` to decode big-endian uint16 length-prefixed entry bundles from `tile/entries/`. - implemented `TesseraFindPayloadIndex` with atomic disk caching to locate payload sequence indices across entry tiles. - also added unit tests for bundle parsing, tile paths, and index lookup. README.md: - updated the Google Product Application Transparency Log section to list both the legacy and new 2026/02 Tessera tile endpoints Change-Id: I8c75e2ad9ae9542e8c6e64ee81c395b7a12ffbb8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cmd/verifier/verifier.go:
internal/checkpoint/checkpoint.go:
parseCheckpoint.FromURLWithPathfunction to support standard Tessera checkpoint paths (checkpoint) alongside legacy paths (checkpoint.txt).internal/tiles/reader.go:
HashReaderwithIsTesseraflag to address Merkle tree hash tiles with standard tile//[.p/] paths (omitting tile height).EntryTilePathandParseEntryBundleto decode big-endian uint16 length-prefixed entry bundles fromtile/entries/.TesseraFindPayloadIndexwith atomic disk caching to locate payload sequence indices across entry tiles.README.md:
Change-Id: I8c75e2ad9ae9542e8c6e64ee81c395b7a12ffbb8