podman/contrib
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
..
cirrus compat handlers: add X-Registry-Auth header support 2020-05-29 15:39:37 +02:00
fedora-minimal Cirrus: Fix fedora-minimal mirroring 2020-03-04 14:24:58 -05:00
gate Fix Dockerfile 2020-05-26 09:53:27 -04:00
imgprune Cirrus: Load base-image names indirectly 2019-08-30 09:46:43 -04:00
imgts Cirrus: Reimplement release archive + upload 2019-08-28 11:54:06 -04:00
msi Update XML to not embed quote in PATH on windows 2020-01-31 15:22:20 -07:00
podmanimage [CI:DOC]Use full repo name in podmanimage Dockerfiles 2020-05-01 17:54:33 -04:00
script Add script to determine dependency sizes 2018-03-23 14:12:14 +00:00
snapcraft Enable pre-commit tool linting 2020-01-14 13:42:59 +00:00
spec Default podman.spec to use crun 2020-05-14 09:38:29 -04:00
systemd auto updates 2020-03-17 17:18:56 +01:00
upldrel Minor: Bugfix in upload image 2020-01-17 10:43:48 -05:00
varlink io.podman.socket: drop Also=multi-user.target 2019-10-08 12:12:16 -04:00
build_rpm.sh Fix repos for CentOS 7 RPM build 2020-04-01 14:01:46 +03:00
dependencies.txt [CI:DOCS] Prepare image to turn on podman-commands test 2020-05-23 10:17:31 -04:00