-
-
Notifications
You must be signed in to change notification settings - Fork 558
allow more mappings per mapname #786
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
allow more mappings per mapname #786
Conversation
609d3df to
8f98d71
Compare
It is perfectly fine have more mappings per mapname, [ref](https://www.postgresql.org/docs/current/auth-username-maps.html). The current implementation doesn't allow repetitions of mapnames in `pg_ident.conf`, with this change an entry is unique based on map_name, system_username and database_username. This allows for multiple system users to be mapped to a single database user.
bf02aed to
d25ebd4
Compare
|
would fix #787 |
d25ebd4 to
e34804e
Compare
|
Looks like we got a small test error. Ping me when this is fixed 👌 Thanks! |
mdl doesn't like url's that are not clickable, but for the sake of defining a default value for a resource, we can ignore this error.
e34804e to
b15c741
Compare
when the mapname (or any other field in the ident file) exceeds the predefined width, the values are 'glued' together. This renders the file invalid. similar like this issue: sous-chefs#733 we now force a space between the values if the exceed the column width.
9121f03 to
a21353f
Compare
|
Some tests are failing due to chef/chef#15048. Without that fix i will be unable to fix the tests, after that fix i'll look into the rest. I'm mainly testing against ident-17-debian-12, there the tests are succeeding (works on my machine 😅 ) |
|
The indempotency issues we can ignore for now, but there are a large number of ident tests failing too which would suggest that this PR has either broken something or the tests need updating to match the new behaviour. If we can get those sorted then this can be merged 👍 |
|
There are a few things wrong here. So I'm going to bring them into the multi_ident_mapnames branch and fix them there. 👍🏼 |
69058e7
into
sous-chefs:multi_ident_mapnames
Description
It is perfectly fine have more mappings per mapname, ref.
The current implementation doesn't allow repetitions of mapnames in
pg_ident.conf, with this change an entry is unique based on map_name, system_username and database_username.This allows for multiple system users to be mapped to a single database user.
Issues Resolved
No issue was created regarding tis PR
Check List
## Unreleased