Skip to content

Provide binaries integrity verification#5

Merged
Vladyslav-Kuksiuk merged 4 commits into
masterfrom
provide-integrity-verification
Jul 22, 2026
Merged

Provide binaries integrity verification#5
Vladyslav-Kuksiuk merged 4 commits into
masterfrom
provide-integrity-verification

Conversation

@Vladyslav-Kuksiuk

@Vladyslav-Kuksiuk Vladyslav-Kuksiuk commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

This PR provides binaries integrity verification before execution.

Also, adds GitHub authorization token provisioning for Embed-Code downloads via CI.

@Vladyslav-Kuksiuk Vladyslav-Kuksiuk self-assigned this Jul 21, 2026
@Vladyslav-Kuksiuk
Vladyslav-Kuksiuk marked this pull request as ready for review July 21, 2026 13:06

@Oleg-Melnik Oleg-Melnik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lands the integrity story well: fail-closed SHA-256 verification of the downloaded asset, digest auto-resolution from the GitHub Releases API, source-identity binding of the cache (base URL + asset name), offline reuse gated on re-hashing the executable, and an explicit-opt-in token that is proven by test not to leak in from the ambient GITHUB_TOKEN. The metadata-write-after-atomic-move ordering also fails in the safe direction (a crash leaves an untrusted cache that gets re-downloaded). Inline comments below are hardening and UX-level; none are blockers.

Comment thread gradle-plugin/src/main/kotlin/io/spine/embedcode/gradle/Checksum.kt

@Oleg-Melnik Oleg-Melnik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Vladyslav-Kuksiuk LGTM with comments to address.

@Vladyslav-Kuksiuk
Vladyslav-Kuksiuk merged commit f8f52dd into master Jul 22, 2026
2 checks passed
@Vladyslav-Kuksiuk
Vladyslav-Kuksiuk deleted the provide-integrity-verification branch July 22, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants