-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
add redshift backend #690
add redshift backend #690
Conversation
Hi there, Thanks for providing this. A few comments up-front:
|
JWT removed |
I think I still have the same question -- what exactly is the scope of differences? Is it just those two items you mentioned? In terms of maintainability it would be far, far easier to simply have a boolean configuration option for "redshift mode" -- or perhaps a string option with "postgres" as a default and "redshift" allowed, in order to allow other variants in the future. Then it's easy to key off of those to adjust which commands need to be run. Don't be too worried about changing the original backend -- that's what code review is for :-) You'll do fine. |
@eladapps Jeff and I have been discussing this. First of all, I actually didn't have any issue utilizing dashes in my usernames or passwords on Redshift...so not sure if you are using an older version? But my first issue actually was that Redshift requires an Uppercase letter in your password, which Vault does not provide (my workaround was simply to put two uppercase letters into the SQL command's password creation (i.e. CREATE USER "{{name}}" WITH PASSWORD "HI-{{password}}")...and just dealing with having to remember to enter those letters when you receive a Password. It's not perfect, but it works.) So the actual creation of the user and password always worked and got me in! The real issue is revocation. See my response to Jeff in #760, but I think the simple fix may be to have an additional value for Postgres mount point "roles", that would allow you to write a revocation SQL query. Thoughts? |
As far as I have seen from docs, Redshift uses IAM accounts. If there is a requirement for an uppercase letter in your password, this is likely coming from the complexity requirements set in IAM for your account, and can be changed. |
Hi Bryant. Its been a while since I wrote that code. On Mon, Nov 9, 2015 at 1:48 AM, Bryant Rockoff [email protected]
|
@jefferai Redshift doesn't use IAM accounts for SQL access. IAM is used to control access for creating/modifying/deleting clusters (which are AWS resources), but not for SQL login. Users generally login and run SQL queries against Redshift using the regular PostgreSQL client. I cannot find a way to change the password policy (for SQL login) in Redshift. It not configurable through IAM. However, as @brockoffdev mentioned, it's possible to workaround the password requirements. The real issue is revocation and renewal.
|
@jimjh Thanks, good to know. I'm still inclined to think that this is easily implemented as a config option on top of the existing postgresql backend. Over time (next few Vault releases) I think the plan will try to be to combine the various SQLish backends into one, where each role specifies the type of DB it's connecting to along with the other config params and all of the shared logic can be reused. |
@jefferai thanks for the update |
Definitely interested in a Redshift backend. Was thinking about copying the postgres one for my own needs, but not sure if you are still planning to consolidate the SQL pieces into one rather than separate code bases. |
We are planning that! |
@jefferai Has there been any more discussion/progress on getting something going for a Redshift backend? |
All that I can say right now is that it's planned. I don't have any hard dates to give. |
ping |
pong |
Just checking in and seeing if there was any forward motion on this. :) |
If the current postgres capabilities in the combined backend do not support redshift (I think they do) adding a plugin variant is the right way to do this at this point, so I'll close this. |
Ah thanks @briankassouf , I knew support existed but forgot just how recent :-) |
No description provided.