moby/cli/command/secret
Yong Tang 3638ca4d14 Fix issue where secret ID is masked by name
This fix tries to address the issue in 28884 where
it is possible to mask the secret ID by name.

The reason was that searching a secret is based on name.
However, searching a secret should be done based on:
- Full ID
- Full Name
- Partial ID (prefix)

This fix addresses the issue by changing related implementation
in `getCliRequestedSecretIDs()`

An integration test has been added to cover the changes.

This fix fixes 28884

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-12-02 20:24:29 -08:00
..
cmd.go refactor help func in CLI 2016-11-17 10:54:10 -08:00
create.go Fix the use for secret create 2016-12-01 19:48:33 +08:00
inspect.go Fix the inconsistency for docker secret 2016-11-30 17:23:39 +08:00
ls.go Fix the inconsistency for docker secret 2016-11-30 17:23:39 +08:00
remove.go Merge pull request #28922 from yuexiao-wang/fix-secret 2016-12-01 11:29:58 +01:00
utils.go Fix issue where secret ID is masked by name 2016-12-02 20:24:29 -08:00