image/docker: use unified configfile search for cert directories#746
image/docker: use unified configfile search for cert directories#746Luap99 merged 1 commit intocontainers:mainfrom
Conversation
|
@Luap99 , thanks for the review :-). I will change the code once we finish discussions for all the suggested changes. |
mtrmac
left a comment
There was a problem hiding this comment.
(Just a random note for now)
Luap99
left a comment
There was a problem hiding this comment.
With the latest GetSearchPaths() API do we even get anything new from this ContainersResourceDirs?
I guess the simple thing is to just reuse GetSearchPaths() and not do any pkg/configfile changes?
|
@Luap99 , I rewrote it to use GetSearchPaths, but I had to introduce File.ExtraDropInDirectories to inject the /etc/docker/certs.d between XDG directories and /etc directories. |
mtrmac
left a comment
There was a problem hiding this comment.
Looks reasonable overall.
|
Podman and buildah tests with this PR applied: |
Switch `dockerCertDir` to use the `configfile.GetSearchPaths` for resolving certificate directories. Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
|
Packit jobs failed. @containers/packit-build please check. |
|
@mtrmac Did you change the skopeo CI setup? ERROR: Somehow quay.io/libpod/skopeo_cidev:c20260425t010036z-f43f42d14 is not based on fedora-45. (contrib/cirrus/runner.sh:76 in _run_setup()) |
|
Anyhow failure is unrelated to this PR so I am ok force merging in the interest of getting this done. |
One part of the explanation is https://github.com/containers/skopeo/pull/2861/changes#r3163314632 (and that whole PR), but that doesn’t explain why it suddenly started breaking. Should be fixed by #809 . |
mtrmac
left a comment
There was a problem hiding this comment.
LGTM, for the record. Thanks!
Switch
dockerCertDirto use the newconfigfile.ContainersResourceDirsfor resolving certificate directories.