-
Notifications
You must be signed in to change notification settings - Fork 54
remove signing support from duffle commands #693
Conversation
bf94275
to
1c2e225
Compare
@@ -25,19 +31,11 @@ func newBundleShowCmd(w io.Writer) *cobra.Command { | |||
} | |||
|
|||
flags := cmd.Flags() | |||
flags.BoolVarP(&bsc.insecure, "insecure", "k", false, "Do not verify the bundle (INSECURE)") | |||
flags.BoolVarP(&bsc.raw, "raw", "r", false, "Display the raw bundle manifest") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When bundles were signed, bundle show
would strip the signature, and --raw
would show the entire file, including the signature -- now that there is no signature anymore, wondering what this flag could be used for -- one thing that comes to mind is to show the canonical vs. pretty form for JSN.
That being said, bundle show
seems to be broken right now:
$ duffle build examples/helloworld
==> Successfully built bundle helloworld:0.1.0
$ duffle bundle show helloworld:0.1.0
error occurred runtime error: invalid memory address or nil pointer dereference
$ duffle bundle show helloworld:0.1.0 --raw
{"credentials":null,"description":"A short description of your bundle","images":null,"invocationImages":[{"image":"deislabs/helloworld-cnab:2aa903328e18e41014b0c98c43582169639defa2","imageType":"docker"}],"keywords":["helloworld","cnab","tutorial"],"maintainers":[{"email":"[email protected]","name":"John Doe","url":"https://example.com"},{"email":"[email protected]","name":"Jane Doe","url":"https://example.com"}],"name":"helloworld","parameters":null,"version":"0.1.0"}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Yes, I think that's a great idea. Let's make the default, the pretty form and have -r show the canonical form? If it's alright to do that in a follow up PR, I'd like to that instead of adding to this gigantic one lol
- I was getting that error earlier and pushed a fix for it with the last commit. Could you try again and let me know if it's still broken for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, let's have that in a follow-up commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
+ update loader pkg to support only unsigned loader + update docs
a33d460
to
8a1c7d7
Compare
The Open-PGP based signing mechanism was removed from the CNAB spec as of cnab-spec PR 115. This PR removes signing support from all duffle commands to lay the ground work for implementing the current bundle security section of the CNAB spec.
resolves #696