IAM, STS | Improve Log Printing Before Throw Error of NotImplemented
#8903
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe the Problem
Currently, when using an action that is not listed in the actions supported in IAM (which is based on STS implementation) we don't have a log printing, and it is harder to debug if external application uses the code base without us knowing exactly what it is performing.
Explain the Changes
parse_op_name
add log printing with additional info to help debugging (in IAM and STS).Issues:
IAM REQUEST
is printed after parsing, so we will not see all the information when using a supported action (link).Testing Instructions:
sudo node src/cmd/manage_nsfs account add --name <account-name> --new_buckets_path /Users/buckets/ --access_key <access-key> --secret_key <secret-key> --uid <uid> --gid <gid>
Note: before creating the account need to give permission to the
new_buckets_path
:chmod 777 /Users/buckets/
.sudo node src/cmd/nsfs --debug 5 --https_port_iam 7005
alias nc-user-1-iam='AWS_ACCESS_KEY_ID=<access-key> AWS_SECRET_ACCESS_KEY=<secret-key> aws --no-verify-ssl --endpoint-url https://localhost:7005'
nc-user-1-iam iam create-group --group-name Admins
expect to see: