zuul-jobs/test-playbooks/registry
Clark Boylan 4c40b92950 Prevent leaks of buildset registry credentials
Because buildset registries may be used by jobs that finish before other
jobs are finished using the buildset registry we must be careful not to
expose the registry credentials in the jobs that finish sooner.
Otherwise logs for the earlier job runs could potentially be used to
poison the registry for later jobs.

This is likely currently incomplete. Other Zuulians should look over it
carefully to ensure we're covering all the bases here.

The cases I've identified so far are:

* Setting facts that include passwords
* Reading and writing to files that include passwords (as content may be
  logged)
* Calling modules with passwords passed as arguments (the module
  invocation is logged)

I've also set no_log on zuul_return that passes up credentials because
while the logging for zuul_return is minimal today, I don't want to
count on it remaining that way.

We also use the yet to be merged secret_data attribute on zuul_return to
ensure that zuul_return itself does not expose anything unwanted.

Finally it would be great if others could check over the use of
buildset_registry variables to make sure there aren't any that got
missed. One thing I'm not sure of is whether or not when conditionals
get logged and if we need to be careful about their use too.

Temporarily remove some buildset-regitry jobs which are in a catch-22.

Change-Id: I2dea683e27f00b99a7766bf830981bf91b925265
2021-06-24 09:56:19 -07:00
..
docker Support multi-arch image builds with docker buildx 2020-05-04 14:02:13 -05:00
docker-siblings ensure-podman: Use official podman repos for ubuntu 2021-04-01 16:39:00 -04:00
host_vars Add a registry test job 2019-06-03 09:03:35 -07:00
roles Rename test install role to ensure- 2020-05-26 09:41:33 +02:00
vars Refresh intermediate TLS certs for testing 2020-11-24 11:39:17 -05:00
buildset-registry-k8s-crio-post.yaml Add cri-o support to use-buildset registry 2020-01-07 07:35:28 -08:00
buildset-registry-k8s-crio.yaml ensure-docker: ensure docker.socket is stopped 2021-04-20 18:44:37 -05:00
buildset-registry-k8s-docker-post.yaml Test buildset registry with k8s and docker 2019-10-28 15:45:39 -07:00
buildset-registry-k8s-docker.yaml ensure-docker: ensure docker.socket is stopped 2021-04-20 18:44:37 -05:00
buildset-registry-openshift-docker.yaml test-playbooks: avoid warnings with shell/command 2020-06-04 18:54:37 +01:00
buildset-registry-pre.yaml Fix buildset-registry test on focal 2021-05-25 16:38:00 +02:00
buildset-registry.yaml Prevent leaks of buildset registry credentials 2021-06-24 09:56:19 -07:00
test-registry-post.yaml collect-container-logs: add role 2020-01-09 19:52:01 -05:00
test-registry-pre.yaml cleanup: move tests to use ensure-package-repositories 2020-05-01 15:49:30 +02:00
test-registry.yaml Prevent leaks of buildset registry credentials 2021-06-24 09:56:19 -07:00