-
Notifications
You must be signed in to change notification settings - Fork 61
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
WIP: pgagroal-vault #407
WIP: pgagroal-vault #407
Conversation
You need to squash all commits. I don't think we need the For If the user doesn't exist, or in all other cases, response should be 404. Once this is fixed, send me a PTAL, and I'll take a deeper look... |
358904f
to
0c53380
Compare
@jesperpedersen, PTAL |
You still have 2 commits for this... you need to properly squash against the latest Also, the CI system has failures... |
db799f8
to
eb87fa6
Compare
For now, I'll stop here... Once you have force pushed your branch - look at the commit and go over every single line of change, and think about if it is needed. Is there an existing functions that I can use ? Are the changes made necessary ? And so on... It is about making this feature work with the fewest changes as possible. Enhancements can be made in future pull requests - for now, the main goal is to get the basic feature into in the project. |
A few more quick comments. So, you decided to stick to the explicit |
If we are doing inheritance, then don't we also have to explicitly provide the configuration file - So I'm not sure how we can efficiently incorporate inheritance here |
The inheritance is about share the definition between the We can look at it later, for now continue with the separate definition. Lets get the basic patch ready |
Can you run Also, I still don't understand why there are |
Sure!
Yeah so basically, we are using shared memory
|
It is better to change the function signature of I don't see the need for Also, change all |
Just leave stuff like |
Could be an idea to add a
file... |
Check if the management port is enabled
The way I have coded it, only the 3rd should work as it contains ‘/users’. Also, can you please send the ‘.conf’ files Thanks |
Quite frankly, I think it is a mandatory step! |
Can you rebase ? |
Merged. Thanks for your contribution ! |
Continuation of PR #378
@jesperpedersen PTAL on this PR
About this commit
pgagroal_vault.conf
. This server only listens to HTTP requests from the client, also the address {host
,port
,admin_user
andadmin_password
} of management port is provided to the vault to connect to the remote management port and forward requests to that port. Theadmin_user
password is provided using a-u
flag which is mandatory. Typical.conf
looks like this -The handelling of URLs is done in the following manner :-
http://localhost:2500/info
, The server will repyhttp://localhost:2500/users/<_frontend_user_>
, The server will try to connect and request to the management port of pgagroal to fetch the frontend_user password of the<_frontend_user_>
, If found the server will respondERROR 404
Now, this server further have to connect to the management port of pgagroal to call
GET_PASSWORD
method and fetch the frontend user password of the user provided.Meanwhile in pgagroal we have a callback function which will keep rotating frontend passwords of all the
frontend_users
periodically after a certain timeout (rotate_frontend_password_timeout
) [defined inpgagroal.conf
file].