Skip to content

pg_hba for replication peer_ip too open #1299

@hloeung

Description

@hloeung

Hi,

Splitting this out from #1272, the generated netmask/cidr for replication peer_ip is too open at /0:

    {%- for peer_ip in peers_ips %}
    - {{ 'hostssl' if enable_tls else 'host' }}     replication    replication    {{ peer_ip }}/0    md5
    {% endfor %}

A /0 allows all and I think should be /32 though could probably get away with using /24. Thankfully it is authenticated with md5 and in our Canonical IS deployed environments have additional layers of security with firewalling as well as OpenStack security groups.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions