You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
feat(cmapi): MCOL-5019: distributing cskeys secrets file, move cskeys and 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
This commit is contained in:
committed by
Alan Mologorsky
parent
10dec6ea94
commit
215e4eea4d
@ -19,6 +19,7 @@ from cmapi_server.constants import (
|
||||
)
|
||||
from cmapi_server.controllers.error import APIError
|
||||
from cmapi_server.handlers.cej import CEJError
|
||||
from cmapi_server.handlers.cej import CEJPasswordHandler
|
||||
from cmapi_server.handlers.cluster import ClusterHandler
|
||||
from cmapi_server.helpers import (
|
||||
cmapi_config_check, dequote, get_active_nodes, get_config_parser,
|
||||
@ -363,6 +364,7 @@ class ConfigController:
|
||||
sm_config_filename = request_body.get(
|
||||
'sm_config_filename', DEFAULT_SM_CONF_PATH
|
||||
)
|
||||
secrets = request_body.get('secrets', None)
|
||||
|
||||
if request_mode is None and request_config is None:
|
||||
raise_422_error(
|
||||
@ -391,6 +393,9 @@ class ConfigController:
|
||||
)
|
||||
request_response = {'timestamp': str(datetime.now())}
|
||||
|
||||
if secrets:
|
||||
CEJPasswordHandler().save_secrets(secrets)
|
||||
|
||||
node_config = NodeConfig()
|
||||
xml_config = request_body.get('config', None)
|
||||
sm_config = request_body.get('sm_config', None)
|
||||
|
Reference in New Issue
Block a user