moby/cli/command
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
..
bundlefile Reinstate --bundle-file argument to 'docker deploy' 2016-11-10 11:28:18 -05:00
checkpoint refactor help func in CLI 2016-11-17 10:54:10 -08:00
commands secrets: secret management for swarm 2016-11-09 14:27:43 -05:00
container Merge pull request #28445 from cpuguy83/28439_fix_client_rm_on_old_daemons 2016-11-22 14:25:03 +01:00
formatter Merge pull request #28538 from yongtang/11162016-Log-Logf-fix 2016-11-17 15:21:22 -05:00
idresolver service ps: Truncate Task IDs 2016-11-08 16:17:15 -08:00
image Add registry-specific credential helper support 2016-12-01 10:29:00 -08:00
inspect add endpoint mode in service pretty 2016-09-27 18:41:19 +08:00
network Update docs of docker network ls --filter 2016-11-24 08:14:36 -08:00
node Revert "Add -a option to service/node ps" 2016-11-28 18:08:45 +01:00
plugin Add ID field for docker plugin ls 2016-12-02 13:42:50 -08:00
prune add docker network prune 2016-10-25 06:43:54 +00:00
registry Add registry-specific credential helper support 2016-12-01 10:29:00 -08:00
secret Fix issue where secret ID is masked by name 2016-12-02 20:24:29 -08:00
service Revert "Add -a option to service/node ps" 2016-11-28 18:08:45 +01:00
stack Merge pull request #28876 from vdemeester/28835-better-handling-of-external-networks 2016-11-29 15:00:35 -08:00
swarm fix description of 'docker swarm init' 2016-11-28 13:24:02 +09:00
system Align output of docker version again 2016-11-28 11:38:58 -08:00
task Suppressing digest for docker service ls/ps 2016-11-18 09:39:34 -08:00
volume refactor help func in CLI 2016-11-17 10:54:10 -08:00
cli.go Add registry-specific credential helper support 2016-12-01 10:29:00 -08:00
events_utils.go Add subcommand prune to the container, volume, image and system commands 2016-09-29 07:42:53 -07:00
in.go Fix the incorrect description for NewInStream 2016-10-13 22:33:09 +08:00
out.go Windows: OCI process struct convergence 2016-09-19 10:34:31 -07:00
registry.go Add registry-specific credential helper support 2016-12-01 10:29:00 -08:00
trust.go Move image trust related cli methods into the image package. 2016-09-09 10:50:16 -04:00
utils.go return nil when no node or service to avoid additional api call 2016-10-11 10:59:16 +08:00