puppetlabs / puppetlabs/puppetlabs-postgresql
could not create local user with password authentication
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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