Skip to content

Commit

Permalink
Pass expiry to generate-envelope plugin (#211)
Browse files Browse the repository at this point in the history
Pass expiry to envelope generator plugin so that it can be used for generating signature.
Issue: notaryproject/notation#443

Signed-off-by: Pritesh Bandi pritesb@amazon.com
  • Loading branch information
priteshbandi committed Nov 29, 2022
1 parent 7bd0562 commit f1691a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions specs/plugin-extensibility.md
Expand Up @@ -375,6 +375,9 @@ All request attributes are required.
// Optional plugin configuration, map of string-string
"pluginConfig" : { },

// Optional signature expiry duration in seconds, number
"expiryDurationInSeconds" : 1234567,

"payload" : "<Base64 encoded payload to be signed>",

// The type of payload - currently a descriptor
Expand All @@ -389,6 +392,8 @@ All request attributes are required.

*pluginConfig* : Optional field for plugin configuration. For details, see [Plugin Configuration section](#plugin-configuration).

*expiryDurationInSeconds* : Optional field which contains signature expiry duration(in seconds) as integer number.

*signatureEnvelopeType* - defines the type of signature envelope expected from the plugin. As Notation clients need to be updated in order to parse and verify new signature formats, the default signature format can only be changed with new major version releases of Notation. Users however can opt into using an updated signature envelope format supported by Notation, by passing an optional parameter.
e.g. `notation sign $IMAGE --key {key-name} --envelope-type {some-new-type}`

Expand Down

0 comments on commit f1691a6

Please sign in to comment.