puppetlabs / puppetlabs/puppetlabs-postgresql

could not create local user with password authentication

Open
#1,605 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
232
Forks
610
Avg merge
5d 23h
Merged PRs (30d)
4

Description

Describe the Bug

in order to create a user with password, which authenticates over the socket, I need an entry like this one:

local   user     db         md5

but this entry should be placed before this one:

# Order: 2
local   all     all             ident

however, this is Order 2 and Order 1 is already taken.

Expected Behavior

All the stanzas after 1 should be shifted, at least by 10 positions.

Steps to Reproduce

create a rule like this:

local   user     db         md5

it will never work, because this one takes precedence:

local   all     all             ident

Environment

  • Version: not applicable (this code is still the same in the main branch)
  • Platform: not applicable

Additional Context

None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how this Ruby module generates PostgreSQL authentication rules and assigns their Order values; the issue provides the relevant local stanzas to reproduce. Confirm that inserting a rule before the existing Order 2 ident rule remains effective and that subsequent stanzas are shifted as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, ruby
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.