Skip to content

fix(integrity): honest build_digest_matched (#1211)#1247

Merged
FabioLeitao merged 2 commits into
mainfrom
fix/integrity-build-digest-matched-1211
Jul 15, 2026
Merged

fix(integrity): honest build_digest_matched (#1211)#1247
FabioLeitao merged 2 commits into
mainfrom
fix/integrity-build-digest-matched-1211

Conversation

@FabioLeitao

Copy link
Copy Markdown
Collaborator

Summary

  • Rename integrity-anchor signature_okbuild_digest_matched and record True only when DATA_BOAR_EXPECTED_BUILD_DIGEST was set and matched (digest compare, not crypto signature).
  • Migrate legacy SQLite column signature_okbuild_digest_matched so old DBs do not stay perpetual unknown.
  • Docs + tests: honesty for unset env, match/mismatch, migration, fail-closed error paths.

Closes #1211

Test plan

  • ./scripts/quick-test.sh --path tests/test_integrity_anchor.py
  • ./scripts/check-all.sh --enforced
  • CI green on PR

Made with Cursor

…verclaim

Rename and retighten the integrity-anchor digest flag so unset
DATA_BOAR_EXPECTED_BUILD_DIGEST no longer claims verification, with
legacy SQLite column migration and fail-closed tests.

Closes #1211
After RENAME COLUMN, reset the old default-true overclaim to 0 so
existing anchors do not keep claiming digest match under the new name.
@FabioLeitao
FabioLeitao merged commit 37d546e into main Jul 15, 2026
18 checks passed
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.

[P1][integrity] integrity_anchor: semantica de signature_ok + fail-open em erro (nao pode parecer confiavel sem verificacao)

1 participant