Skip to content

run decrypt for admin credentials before creating boot.properites as … #407

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

Merged
merged 4 commits into from
Jul 25, 2019

Conversation

jshum2479
Copy link
Member

decrypt admin credentials from model before creating boot.properties

@jshum2479 jshum2479 requested a review from rakillen June 29, 2019 19:05
@rakillen rakillen requested a review from ddsharpe July 1, 2019 14:58
Copy link
Member

@ddsharpe ddsharpe left a comment

Choose a reason for hiding this comment

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

This change looks fine. But, the previous boot.properties change still needs to be addressed. Creating boot.properties needs to be optional for the user. The previous change made creation of boot.properties all the time. They should be optional for the on-prem customer that does not want boot.properties on their file system.

…mic servers and may be a risk for production system
@@ -1121,6 +1120,9 @@ def __create_boot_dot_properties(self):

for server in servers:
properties = Properties()

admin_username = self.aliases.decrypt_password(admin_username)
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need to decrypt it each time there is a server (for every server)? Shouldn't this decrypt step be done near line 1110 (outside of the for-loop)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, I know about that. Both decrypt and encrypt of credentials can be outside the loop, I also change to create boot.properties when it is not in production mode

@ddsharpe ddsharpe merged commit a4ead66 into master Jul 25, 2019
@ddsharpe ddsharpe deleted the bootpropsencryption branch July 25, 2019 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants