Skip to content

Missing /etc/pg_hardstorage/keyring/ in ConfigMap #46

Description

@sebastiansuter-advact

What happened

ConfigMap (https://github.com/cybertec-postgresql/pg_hardstorage/blob/main/charts/pg-hardstorage-sidecar/templates/configmap.yaml) only templates pg_hardstorage.yaml but not /etc/pg_hardstorage/keyring/

The documentation states that the keyring is part of the ConfigMap (https://github.com/cybertec-postgresql/pg_hardstorage/blob/main/docs/how-to/kubernetes/helm-sidecar-chart.md#inline-keyring-small-deployments)

The keyring directory /etc/pg_hardstorage/keyring/ mounts as part of the ConfigMap. Useful for plaintext-only setups or for a passphrase wrapper backed by a sealed Secret.

To reproduce

Install latest version of the sidecar chart and inspect the ConfigMap. It does not contain the keyring

pg_hardstorage version

v1.1.1

Environment

Kubernetes Cluster with latest version of the sidecar chart installed

Anything else

At the moment there is no good way to persist the keyring data for kek_ref: local:default. The ConfigMap does not template the keyring and the StatefulSet does not allow any configurable mounts besides state.

There are also no env variables like KEYSTORE_* that can reference the public/privte signing-key or kek.bin, therefore not allowing the option to pass there values with env: in the chart.

Honestly I'd prefer passing the values through the env: in the chart than paintext in the ConfigMap. But ideally additional mounts with secretRefs in the StatefulSet would provide an option to pass the three paramteres (private, public, kek) to the container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions