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

GDB-10752 Add password hash for the security provisioner #123

Merged

Conversation

cloudvlad
Copy link
Contributor

@cloudvlad cloudvlad commented Sep 2, 2024

The password hash is introduced due to the dynamic nature of the bcrypt algorithm, which generates a new hash each time deployment is initiated.

This resolves potential issues with CI/CD tools that detect these changes and prevent false-positive drift events.

Issue: GDB-10752

#118

@mihailradkov
Copy link
Contributor

This change should be in the 11.2 feature branch.

files/config/users.js Outdated Show resolved Hide resolved
values.yaml Outdated Show resolved Hide resolved
values.yaml Outdated Show resolved Hide resolved
@cloudvlad cloudvlad force-pushed the GDB-10752_add_security_password_hash branch 2 times, most recently from b904602 to ecb8578 Compare September 3, 2024 12:09
@cloudvlad cloudvlad changed the base branch from main to PRO-444-features-for-11-2 September 3, 2024 12:21
@cloudvlad cloudvlad force-pushed the GDB-10752_add_security_password_hash branch 3 times, most recently from d65f374 to d395207 Compare September 3, 2024 12:29
CHANGELOG.md Outdated Show resolved Hide resolved
templates/graphdb/statefulset.yaml Outdated Show resolved Hide resolved
values.yaml Outdated Show resolved Hide resolved
@cloudvlad cloudvlad force-pushed the GDB-10752_add_security_password_hash branch 3 times, most recently from 075173d to eb757d1 Compare September 9, 2024 20:21
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
templates/_helpers.tpl Outdated Show resolved Hide resolved
@cloudvlad cloudvlad force-pushed the GDB-10752_add_security_password_hash branch 2 times, most recently from 3b29772 to 4f36047 Compare September 11, 2024 06:44
CHANGELOG.md Outdated Show resolved Hide resolved
@cloudvlad cloudvlad force-pushed the GDB-10752_add_security_password_hash branch from c4dcf51 to f772709 Compare September 12, 2024 13:00
@cloudvlad cloudvlad merged commit 79ff703 into PRO-444-features-for-11-2 Sep 12, 2024
@cloudvlad cloudvlad deleted the GDB-10752_add_security_password_hash branch September 12, 2024 13:45
@@ -258,6 +258,10 @@ security:
# Note: The user is created regardless of if the existingSecret is provided or not.
username: provisioner
password: iHaveSuperpowers
# Define an initial password for the provisioner user as a bcrypt hash.
# If the password is not specified, it will use the default one specified in the provisioner.password.
# Important: This value must be a bcrypt encrypted hash, not a plaintext string. The format is "{bcrypt}<the-encrypted-hash>"
Copy link
Contributor

@Secchol Secchol Sep 18, 2024

Choose a reason for hiding this comment

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

Make the "{bcrypt}" prefix automatically be added to the hash in the user.js file so the user only has to input the hash. This improves the user experience.

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