-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export BuiltinDefaultPolicyPath #2562
base: main
Are you sure you want to change the base?
Conversation
This field is duplicated in containers/common/pkg/config and is being vendored into bindings, just because it is not exported from containers/image. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NAK; if the goal is to handle #1726 , this is going in the wrong direction, motivating users even more to hard-code specifics of the logic (in this case, exporting the system-wide path motivates users to reimplement the per-user path).
If c/common intends to use the c/image default, it should not be setting the path in SystemContext
at all, and the whole need for this goes away. (That can’t immediately happen because the two implementations have already diverged. Also maybe c/image needs some special knowledge of rootless operations .)
There is pkg/trust
, which writes to the config files, and that one really needs to know a path, not a policy accessor. So c/image should probably export something — but it wouldn’t be systemDefaultPolicyPath
; it would be defaultPolicyPath
or maybe a separate “system-wide primary policy config path” / “per-user primary config path”.
Well how do we move forward on that then? |
I don’t immediately know; the way the code has already diverged, maybe there is some neat elegant solution which is compatible enough, maybe we will have to live with a gross hack forever. Someone needs to figure that out. For the purpose of trimming containers/podman#23857 (comment) , the bindings should not be including the whole implementation in |
This field is duplicated in containers/common/pkg/config and is being vendored into bindings, just because it is not exported from containers/image.