notation policy init
command is necessary for user experiences
#653
Labels
Milestone
notation policy init
command is necessary for user experiences
#653
What is the areas you would like to add the new feature to?
Notation CLI
Is your feature request related to a problem?
In version 1.0.0-rc.4,
notation policy
only supportsimport
andshow
. Thus, to use notation CLI for artifact verification, a beginner has to follow the workflow below:notation policy import <path-of-the-file-from-step3>
to actually configure Notation trust policy. Errors are highly possible because steps 1~3 are completed manually by the user.notation cert add
.notation verify
.The workflow above is not user friendly and error prone. IMO, learning cost for a new user of Notation is too high.
What solution do you propose?
Introduce
notation policy init
command. The command should prompt step by step with detailed descriptions on each field of the trust policy and ask users to type in values accordingly. On success, the command gathers answers from the user and configure Notation's trust policy within a single command.For example,
Now, the workflow for a beginner using Notation verification becomes:
notation policy init
notation cert add
notation verify
What alternatives have you considered?
An alternative could be:
notation policy init
creates a default trustpolicy.json for the user.If the user needs a more formal trust policy configuration, then they could do
notation policy show
, change trust policy fields, andnotation policy import
to update the default trustpolicy.json.Any additional context?
No response
The text was updated successfully, but these errors were encountered: