Skip to content
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

Password rotation functionality without '-F' #450

Closed
wants to merge 1 commit into from

Conversation

ashu3103
Copy link
Contributor

WORK IN PROGRESS

@jesperpedersen PTAL

About the commit

The following commit provides a functionality to invoke a startup script (after reading all the configuration files)
This startup script generates passwords with rotation (with timeout rotate_frontend_password_timeout) for the frontend end user even if the frontend users file doesn't exists i.e -F is not provided.

It operates by creating new frontend users in the system by taking usernames from file provided in -u option i.e. pgagroal_database.conf and generating random passwords for the newly created frontend_users.

Condition for startup function to work:-

  • number_of_frontend_users should be 0
  • rotate_frontend_password_timeout should be non-zero

src/main.c Outdated Show resolved Hide resolved
src/main.c Outdated Show resolved Hide resolved
src/main.c Show resolved Hide resolved
src/main.c Outdated Show resolved Hide resolved
@ashu3103
Copy link
Contributor Author

@jesperpedersen PTAL

src/main.c Outdated Show resolved Hide resolved
src/main.c Outdated Show resolved Hide resolved
src/main.c Outdated Show resolved Hide resolved
@ashu3103
Copy link
Contributor Author

@jesperpedersen Done

src/main.c Outdated Show resolved Hide resolved
src/main.c Outdated Show resolved Hide resolved
@jesperpedersen
Copy link
Collaborator

Rebased, and merged.

Remember, to add an issue that is referenced in the commit message.

Thanks for your contribution !

@ashu3103
Copy link
Contributor Author

Rebased, and merged.

Remember, to add an issue that is referenced in the commit message.

Sure, I will first raise an issue and then make PRs with respect to that issue

Thanks for your contribution !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants