-
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
NSFS | NC | add option to set account supplemental groups #8552
base: master
Are you sure you want to change the base?
Conversation
702fd42
to
9abd913
Compare
src/cmd/manage_nsfs.js
Outdated
@@ -338,6 +338,7 @@ async function fetch_account_data(action, user_input) { | |||
distinguished_name: user_input.user, | |||
uid: user_input.user ? undefined : user_input.uid, | |||
gid: user_input.user ? undefined : user_input.gid, | |||
supplemental_groups: _.isUndefined(user_input.supplemental_groups) ? undefined : String(user_input.supplemental_groups), |
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.
looks like supplemental_groups loading is missing in bucketspace_fs.read_account_by_access_key()
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.
seems like read_account_by_access_key gets the account from name, and just modify strings to be sensitiveStrings. do we need to do any modifications to supplemental groups? adding log there to print supplemental groups show the correct value
@@ -197,6 +201,19 @@ function validate_boolean_string_value(value) { | |||
return false; | |||
} | |||
|
|||
function validate_supplemental_groups(value) { | |||
if (value && typeof value === 'string') { |
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.
need to add the same validation on account_server/accountspace_FS
CC: @shirady
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'm not sure I understand - in which context do you want to add those validations?
50fd414
to
f2ee5e0
Compare
Signed-off-by: nadav mizrahi <[email protected]>
f2ee5e0
to
6f7239b
Compare
Explain the changes
Issues: Fixed #7274
Testing Instructions:
sudo npx jest test_nc_nsfs_account_cli.test.js
sudo node ./node_modules/mocha/bin/mocha src/test/unit_tests/test_nsfs_access.js