-
Notifications
You must be signed in to change notification settings - Fork 80
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
NC | Secret Keys Encryption Gaps #7979
Conversation
0e4cc15
to
912987c
Compare
bce0de4
to
561f77c
Compare
561f77c
to
9508d82
Compare
@@ -95,6 +95,7 @@ async function main(argv = minimist(process.argv.slice(2))) { | |||
const user_input = user_input_from_file || argv; | |||
config_root = argv.config_root ? String(argv.config_root) : config.NSFS_NC_CONF_DIR; | |||
if (!config_root) throw_cli_error(ManageCLIError.MissingConfigDirPath); | |||
if (argv.config_root) config.NSFS_NC_CONF_DIR = String(argv.config_root); |
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.
is this still needed?
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.
the argv.config_root?
I would love to remove it, it's very annoying
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.
so why did you add it in this PR? is it needed for any case?
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.
I meant to the option of passing config_root,
I added it because if we won't update it the master_keys.json will get written to /etc/noobaa.conf.d/
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.
why would it be created always in etc? our config.js code already handles config_dir_redirect no?
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.
yes, but this was initially introduced before we had anything, and for cases when there is not config_dir_redirect.
I think we use it only for tests
1605f3a
to
bc54fe2
Compare
Signed-off-by: Romy <35330373+romayalon@users.noreply.github.com>
1a24129
to
477ef92
Compare
Explain the changes
Master Key Manager -
Config.js -
Checked for the correctness of the master keys configuration.
On executable flow - Checked that the executable files exist and can be executed.
Unit Tests additions -
Issues: Fixed #xxx / Gap #xxx
Testing Instructions:
sudo jest --testRegex=jest_tests/test_nc_master_keys_exec
sudo jest --testRegex=jest_tests/test_nc_nsfs_config_schema