automation-tests/cmd/podman/images
Valentin Rothberg dc80267b59 compat handlers: add X-Registry-Auth header support
* Support the `X-Registry-Auth` http-request header.

 * The content of the header is a base64 encoded JSON payload which can
   either be a single auth config or a map of auth configs (user+pw or
   token) with the corresponding registries being the keys.  Vanilla
   Docker, projectatomic Docker and the bindings are transparantly
   supported.

 * Add a hidden `--registries-conf` flag.  Buildah exposes the same
   flag, mostly for testing purposes.

 * Do all credential parsing in the client (i.e., `cmd/podman`) pass
   the username and password in the backend instead of unparsed
   credentials.

 * Add a `pkg/auth` which handles most of the heavy lifting.

 * Go through the authentication-handling code of most commands, bindings
   and endpoints.  Migrate them to the new code and fix issues as seen.
   A final evaluation and more tests is still required *after* this
   change.

 * The manifest-push endpoint is missing certain parameters and should
   use the ABI function instead.  Adding auth-support isn't really
   possible without these parts working.

 * The container commands and endpoints (i.e., create and run) have not
   been changed yet.  The APIs don't yet account for the authfile.

 * Add authentication tests to `pkg/bindings`.

Fixes: #6384
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-05-29 15:39:37 +02:00
..
build.go Attempt to turn on additional build tests 2020-05-22 12:55:23 -04:00
diff.go Fix errors found when comparing podman v1 --help versus V2 2020-05-04 14:16:34 -04:00
exists.go system tests must pass 2020-04-28 15:17:00 -05:00
history.go Fix errors found when comparing podman v1 --help versus V2 2020-05-04 14:16:34 -04:00
image.go V2 enable ps tests 2020-04-29 15:51:37 -07:00
images.go system tests must pass 2020-04-28 15:17:00 -05:00
import.go Fix errors found when comparing podman v1 --help versus V2 2020-05-04 14:16:34 -04:00
inspect.go enable inspect tests 2020-04-29 07:25:31 +02:00
list.go Attempt to turn on additional build tests 2020-05-22 12:55:23 -04:00
load.go Attempt to turn on additional build tests 2020-05-22 12:55:23 -04:00
prune.go Handle filters correctly for podman prune 2020-05-21 09:28:42 -04:00
pull.go compat handlers: add X-Registry-Auth header support 2020-05-29 15:39:37 +02:00
push.go compat handlers: add X-Registry-Auth header support 2020-05-29 15:39:37 +02:00
rm.go image removal: refactor part 2 2020-05-04 16:01:45 +02:00
rmi.go Podman V2 birth 2020-04-16 15:53:58 -05:00
save.go Fix errors found when comparing podman v1 --help versus V2 2020-05-04 14:16:34 -04:00
search.go v2 podman search rootless 2020-05-08 12:47:01 -05:00
sign.go v2podman image sign 2020-05-11 09:18:56 -05:00
tag.go Fix errors found when comparing podman v1 --help versus V2 2020-05-04 14:16:34 -04:00
tree.go V2 podman image tree 2020-04-20 10:10:24 -07:00
trust.go v2trust set and show 2020-05-07 09:55:52 -05:00
trust_set.go v2trust set and show 2020-05-07 09:55:52 -05:00
trust_show.go v2trust set and show 2020-05-07 09:55:52 -05:00
untag.go Fix errors found when comparing podman v1 --help versus V2 2020-05-04 14:16:34 -04:00