Skip to content

Debug logging of signature application#7803

Merged
achamayou merged 6 commits intomainfrom
debug_logging_of_signature_application
Apr 16, 2026
Merged

Debug logging of signature application#7803
achamayou merged 6 commits intomainfrom
debug_logging_of_signature_application

Conversation

@achamayou
Copy link
Copy Markdown
Member

No description provided.

achamayou and others added 2 commits April 2, 2026 10:24
When debug logging is enabled, decode the COSE protected header after
successfully verifying a backup signature in verify_root_signatures()
and log the TxID and issued-at timestamp (formatted as x509 time string).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Only decode the COSE protected header to extract iat when DEBUG
logging is enabled, avoiding unnecessary work on the hot path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 2, 2026 12:22
@achamayou achamayou requested a review from a team as a code owner April 2, 2026 12:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds optional DEBUG-level logging during COSE root signature verification in the node history component, to surface receipt metadata (TxID and issuance time) when available.

Changes:

  • Adds receipt decoding and DEBUG log on successful COSE signature verification.
  • Adds X.509 time formatting for the logged iat timestamp.
  • Includes COSE receipt decoding utilities needed for the debug-only path.

@achamayou achamayou added this to the 7.0.0-rc2 milestone Apr 14, 2026
@achamayou achamayou merged commit fcf6f92 into main Apr 16, 2026
19 checks passed
@achamayou achamayou deleted the debug_logging_of_signature_application branch April 16, 2026 09:39
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.

4 participants