Skip to content

Add --debug option to Notation CLI Sign and Verify commands to help with troubleshooting and logging #300

@iamsamirzon

Description

@iamsamirzon

As a user, I want the Notation Sign and Verify commands to generate additional info why a given CLI command is failing and/or to create logs of the actions being performed by a command.

When the Notation CLI reports an error that a user can get more detail about the error by running the command again with the --debug option. With this option, the Notation CLI outputs details about every step it takes. The details in the output can help a user to determine when the error occurs and provides clues about where it started. A user should be able to output to a text file for later review, or to post it as part of bug report.

When you include the --debug option, some of the details included in the logs could be.

General

  • Registry auth failure details
  • Plugin request and responses

Signing workflow

  • String to sign
  • Signature envelope content

Verification workflow

  • Trust store resolution
  • Trust policy evaluation
  • Details of verification result
  • display signature envelope content as part of debug with verify command.

--debug for both sign and verify should also emit signature either in plain text(for jws) or and encoded format(for cose).

Metadata

Metadata

Labels

UXUser experience changescliIssue or PR released to Notation CLI

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions