Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

remove signing support from duffle commands #693

Merged
merged 4 commits into from
Apr 5, 2019

Conversation

michelleN
Copy link
Contributor

@michelleN michelleN commented Apr 5, 2019

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

@ghost ghost assigned michelleN Apr 5, 2019
@ghost ghost added the review label Apr 5, 2019
@michelleN michelleN force-pushed the remove-sign branch 7 times, most recently from bf94275 to 1c2e225 Compare April 5, 2019 01:32
@@ -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")
Copy link
Member

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"}

Copy link
Contributor Author

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks.

Copy link
Member

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.

Copy link
Member

@radu-matei radu-matei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Michelle Noorali added 3 commits April 5, 2019 11:59
@michelleN michelleN force-pushed the remove-sign branch 2 times, most recently from a33d460 to 8a1c7d7 Compare April 5, 2019 16:01
@michelleN michelleN merged commit 03065cf into cnabio:master Apr 5, 2019
@michelleN michelleN deleted the remove-sign branch April 5, 2019 16:18
@ghost ghost removed the review label Apr 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove pgp signing support from duffle
2 participants