DockerCLI/cli/config/credentials
Sebastiaan van Stijn 555aba27af
cli/config/credentials: refactor DetectDefaultStore and add tests
Refactor the DetectDefaultStore to allow testing it cross-platform, and
without the actual helpers installed.

This also makes a small change in the logic for detecting the preferred
helper. Previously, it only detected the "helper" binary ("pass"), but
would fall back to using plain-text if the pass credentials-helper was
not installed.

With this patch, it falls back to the platform default (secretservice),
before falling back to using no credentials helper (and storing unencrypted).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-10-28 23:25:47 +01:00
..
credentials.go Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
default_store.go cli/config/credentials: refactor DetectDefaultStore and add tests 2024-10-28 23:25:47 +01:00
default_store_darwin.go cli/config/credentials: refactor DetectDefaultStore and add tests 2024-10-28 23:25:47 +01:00
default_store_linux.go cli/config/credentials: refactor DetectDefaultStore and add tests 2024-10-28 23:25:47 +01:00
default_store_test.go cli/config/credentials: refactor DetectDefaultStore and add tests 2024-10-28 23:25:47 +01:00
default_store_unsupported.go cli/config/credentials: refactor DetectDefaultStore and add tests 2024-10-28 23:25:47 +01:00
default_store_windows.go cli/config/credentials: refactor DetectDefaultStore and add tests 2024-10-28 23:25:47 +01:00
file_store.go cli/config/credentials: add test for save being idempotent 2024-10-22 12:22:54 +02:00
file_store_test.go cli/config/credentials: add test for save being idempotent 2024-10-22 12:22:54 +02:00
native_store.go Fix setting ServerAddress property in NativeStore 2023-11-11 14:22:23 +01:00
native_store_test.go cil/config/credentials: remove newStore() test-utility 2024-10-22 10:58:29 +02:00