-
Notifications
You must be signed in to change notification settings - Fork 35
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
Optionally use pg_roles instead of pg_authid. #47
Conversation
pg_roles is a "public" version of pg_authid, which allows use in more restricted environments (such as RDS). The downside is that password comparison doesn't work, as pg_roles only returns a dummy `********` password, so passwords update logic will be fired for each account on every run. Added `--alternate-attributes-table` to activate the use of `pg_role`, though the default is `--no-alternate-attributes-table` so that the existing behavior of using `pg_authid` is preserved
This allows the use of Partially addresses #12. |
@zcmarine at least One downside of the "automatic" handling of #40 is that it will (possibly unexpectedly) operate differently in different environments (eg one way in a local dev database with full privileges and a different way in prod on RDS/Google Cloud SQL). |
Hey guys; any chance of this one coming back to life? I thought I had solved my pg role woes when I found this tonight only to smack straight into this issue. |
^^ was wondering the same |
Any chance of bringing this back from the dead? Could really use this! |
@jfhbrook any chance of this happening? A lot of RDS folks (including me!) looking to use pgbedrock |
Ah, checking it looks like #40 was never merged. So how do you want to approach this at this point? Getting RDS support would be a huge win for the company I'm at. It sounds like Google Cloud users would benefit as well. What can I do to make this happen? |
I like the spirit of this PR, it allows one to |
What exactly are the issues other than password setting? I'd be happy to grab this and make alterations to get it merged. Please indicate what else needs to be done to get this in a mergeable state and I will pick this up. Context: |
pg_roles is a "public" version of pg_authid, which allows use in
more restricted environments (such as RDS). The downside is
that password comparison doesn't work, as pg_roles only returns
a dummy
********
password, so passwords update logic will befired for each account on every run.
Added
--alternate-attributes-table
to activate the use ofpg_role
,though the default is
--no-alternate-attributes-table
so thatthe existing behavior of using
pg_authid
is preserved