-
Notifications
You must be signed in to change notification settings - Fork 70
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
[DNM] MCOL-5019: distributing cskeys secrets file, move cskeys amd cspasswd functions to mcs cli. #3427
base: develop
Are you sure you want to change the base?
[DNM] MCOL-5019: distributing cskeys secrets file, move cskeys amd cspasswd functions to mcs cli. #3427
Conversation
mariadb-AlanMologorsky
commented
Mar 11, 2025
•
edited
Loading
edited
- [add] distribute .secrets file to all nodes while adding a new node
- [add] encrypt_password, generate_secrets_data, save_secrets to CEJPasswordHandler
- [add] tools section to mcs cli tool
- [add] mcs_cluster_tool/tools_commands.py file with cskeys and cspasswd commands
- [add] cskeys and cspasswd commands to tools section of mcs cli
- [mv] backup/restore commands to tools section mcs cli
- [fix] minor imports ordering
- [fix] constants
- [fix] CEJPasswordHandler class methods to use directory for cskeys file
- [fix] CEJPasswordHandler.encrypt_password to return password in hex format
- [fix] CEJPasswordHandler key_length
- [fix] CEJPasswordHandler os.urandom call typo
- [upd] mcs cli README.md and man page
- [upd] mcs cli README_DEV.md
- [fix] mcs_cluster_tool/decorators.py to handle typer.Exit exception
- [add] various docstrings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
untested ACK
How did you check that new passwords are compatible with the decoding mechanism used by the engine? We need a test that decodes password produced by the code added with this patch.
I created |
Anyway I could add some test for that. As I know engine code itself only have secrets.h include in resourcemanager.cpp |
MAJOR: Some logic inside node remove changed significantly using active nodes list from Columnstore.xml to broadcast config after remove. [fix] TransactionManager passsing extra, remove and optional nodes arguments to start_transaction function [fix] commit and rollback methods of TransactionManager adding nodes argument [fix] TransactionManager using success_txn_nodes inside [fix] remove node logic to use Transaction manager [fix] cluster set api key call using totp on a top level cli call [add] missed docstrings [fix] cluster shutdown timeout for next release
… amd cspasswd functions to mcs cli. [add] distribute .secrets file to all nodes while adding a new node [add] encrypt_password, generate_secrets_data, save_secrets to CEJPasswordHandler [add] tools section to mcs cli tool [add] mcs_cluster_tool/tools_commands.py file with cskeys and cspasswd commands [add] cskeys and cspasswd commands to tools section of mcs cli [mv] backup/restore commands to tools section mcs cli [fix] minor imports ordering [fix] constants
[fix] CEJPasswordHandler class methods to use directory for cskeys file [fix] CEJPasswordHandler.encrypt_password to return password in hex format [fix] CEJPasswordHandler key_length [fix] CEJPasswordHandler os.urandom call typo [upd] mcs cli README.md and man page [upd] mcs cli README_DEV.md [fix] mcs_cluster_tool/decorators.py to handle typer.Exit exception [add] various docstrings
26f3ac8
to
7071065
Compare
@@ -18,6 +18,8 @@ $ mcs [OPTIONS] COMMAND [ARGS]... | |||
* `dbrm_backup`: Columnstore DBRM Backup. | |||
* `restore`: Restore Columnstore (and/or MariaDB) data. | |||
* `dbrm_restore`: Restore Columnstore DBRM data. | |||
* `cskeys`: Generates a random AES encryption key and init vector and writes them to disk. | |||
* `cspasswd`: Encrypt a Columnstore plaintext password... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the trailing '...' plz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
untested ACK but address the comment plz.