Open yizha1 opened 1 year ago
Just posting the contexts of why we should have a notation policy init
command:
For a 0-experience starter, find our specs -> find a trust policy template -> learn how to use it -> change it to user wanted values
could be a very hard workflow. The learning cost for a fresh beginner is a bit too high.
A candidate as the default trust policy statement:
{
"version": "1.0",
"trustPolicies": [
{
"name": "policy-by-init-command",
"registryScopes": ["*"],
"signatureVerification": {
"level": "strict"
},
"trustStores": ["ca:default"],
"trustedIdentities": ["*"]
}
]
}
@priteshbandi Do you mind to list your concerns to the above trust policy statement here again? so we can discuss them under this post and find the possible solutions. Thanks.
An alternative would be notation policy init
guiding the user to fill out the trust policy fields one by one in the command line with detailed descriptions of each field. In this way, the user won't need to find a template from our spec by themselves.
@yizha1 @shizhMSFT @priteshbandi
duplicated with issue #653
_Originally posted by @shizhMSFT in https://github.com/notaryproject/notation/pull/568#discussion_r1136444701_