Service-catalog: We should have a message to warning people not to use --param[s-json] for secret information.

Created on 30 Mar 2018  路  3Comments  路  Source: kubernetes-sigs/service-catalog

Most helpful comment

dibs

All 3 comments

Here's some more info:

The help text displayed when you run svcat bind --help and svcat provision --help should append a warning for the --params-json flag that Sensitive information should be placed in a secret and specified with--secret`.

Here are the two commands that need to be changed:

https://github.com/kubernetes-incubator/service-catalog/blob/e196fc6e1bfff9d74b90a87d71dc364e508acdc7/cmd/svcat/binding/bind_cmd.go#L92-L93

https://github.com/kubernetes-incubator/service-catalog/blob/e196fc6e1bfff9d74b90a87d71dc364e508acdc7/cmd/svcat/instance/provision_cmd.go#L84-L85

There is an existing test for the help text. It should fail after making this change and you can update the test by running the following command go test ./cmd/svcat/... -update. See http://svc-cat.io/docs/devguide/#golden-files for an explanation of how our "golden files" work.

dibs

Not sure if #2140 actually closed this, but it looks like it did. @popaulina @carolynvs @n3wscott reopen if there's more to do.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

addprs picture addprs  路  5Comments

MHBauer picture MHBauer  路  8Comments

junneyang picture junneyang  路  3Comments

duglin picture duglin  路  6Comments

gmrodgers picture gmrodgers  路  9Comments