Skip to content

[Query] Can certificates be read from one nested directory: something like test/*/a.pem #463

@porwalameet

Description

@porwalameet

Hi,

We have a requirement to read certificates within a directory with one level down.

Something like this:
/etc/containerd/certs.d/abc/a.pem
/etc/containerd/certs.d/def/b.pem
/etc/containerd/certs.d/xyz/z.crt

here there is no fixed naming convention for abc, def or xyz, so i prefer to give wildcard.

So, I have configured something like below:
watchDirectories:
- /etc/containerd/certs.d/
watchSpecificExtensionDirectories:
- pem
- crt

It doesnt try to match the directory within certs.d.
The error is caught during startup:
time="2025-08-05T12:13:52Z" level=warning msg="failed to parse \"/mnt/watch/dir-a59898a81f4333a329d7ab95040dc315f7e06241eb08d01876//etc/containerd/certs.d\": no directory match \"/mnt/watch/dir-a59898a81f4333a329d7ab95040dc315f7e06241eb08d01876//etc/containerd/certs.d\""

Can you please clarify is this supported, and this config is correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions