noobaa-core
noobaa-core copied to clipboard
NSFS | NC | IAM Service - Input Validation
Explain the changes
- Add input validation before every IAM operation.
- Rename the file of op
get_access_key_last_used
(missing prefixiam_
).
Issues:
List of GAPs:
- Move constants to the file
iam_constants.js
(mainly fromiam_utils.js
). - Special handle for anonymous - currently we block all IAM User API and Access keys API on it (in the future we want to allow IAM User API on it).
Testing Instructions:
Unit Tests
Please run:
-
npx jest test_iam_utils.test.j
-
npx jest test_iam_ops_input_validation.test.js
- [X] Doc added/updated
- [X] Tests added