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

Hide PKI Client database password in log file #658

Closed
wants to merge 1 commit into from

Conversation

Akasurde
Copy link
Member

@Akasurde Akasurde commented Mar 27, 2017

Signed-off-by: Abhijeet Kasurde akasurde@redhat.com

@stlaz stlaz self-assigned this Mar 27, 2017
@stlaz
Copy link
Contributor

stlaz commented Mar 27, 2017

You will need to do something similar in ipaserver/install/krainstance.py as well.

@@ -150,6 +150,7 @@ def __spawn_instance(self):
os.chown(cfg_file, pent.pw_uid, pent.pw_gid)
self.tmp_agent_db = tempfile.mkdtemp(
prefix="tmp-", dir=paths.VAR_LIB_IPA)
self.tmp_agent_pwd = ipautil.ipa_generate_password()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not using the password outside the scope of this method so please reduce this scope as well (remove self.)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
@stlaz
Copy link
Contributor

stlaz commented Mar 29, 2017

Works well, thanks!

@stlaz stlaz added the ack Pull Request approved, can be merged label Mar 29, 2017
@MartinBasti
Copy link
Contributor

master:

  • 7fddc1d Hide PKI Client database password in log file

@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label Mar 30, 2017
@Akasurde
Copy link
Member Author

@stlaz @MartinBasti Thanks.

@Akasurde Akasurde deleted the miscfix branch March 30, 2017 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants