Skip to content
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

[ansible/postgresql] method key for postgres_allowed_hosts doesn't work #411

Closed
AlexeyMinasyan opened this issue Sep 2, 2024 · 1 comment

Comments

@AlexeyMinasyan
Copy link

Is this a request for help?: No


Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Which installer: N/A

Which product and version (eg: ansible & collection version - 7.24.2): Ansible - 2.14.3, jfrog.platform 10.19.4

Which operating system and version(eg: ubuntu & version - 20.4): Debian 12

Which product license (Enterprise/Pro): Pro

JFrog support reference (if already raised with support team):

What happened:
Variable postgres_allowed_hosts.method doesn't work.
By looking at code it seems that there is a typo in template.
Method is not using host iterator, but item and also looking for auth key instead of method

What you expected to happen:
Method should be appropriately populated during pg_hba.conf template generation

How to reproduce it (as minimally and precisely as possible):
Execute postgresql role with variable like this

postgres_allowed_hosts:
  - {
      type: "host",
      database: "all",
      user: "all",
      address: "0.0.0.0/0",
      method: "md5",
    }

Method will be trust instead of expected md5

Anything else we need to know:

@chukka
Copy link
Collaborator

chukka commented Nov 18, 2024

#428 is already raised , Fixed internally , waiting for public release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants