Skip to content

Support systemd-style drop-ins for containers-policy.json #527

@jbtrystram

Description

@jbtrystram

Users can specify their own policy.json file under $HOME/.config/containers/ but if one want to modify the policy system-wide, /etc/containers/policy.json needs to be modified.

Any change done there may be overwritten by subsequent updates. It would be great to support drop-ins in a systemd fashion, e.g :

# /etc/containers/policy.d/10-quay-fedora.json
{
   "transports": {
       "docker" : {
            "quay.io/fedora": [
                {
                    "type": "signedBy",
                    "keyType": "GPGKeys",
                    "keyPath": "/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora"
                }
            ]
     }
}

Since this is JSON this could be merged into the existing policy.json fairly easily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    imageRelated to "image" package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions