noobaa-core icon indicating copy to clipboard operation
noobaa-core copied to clipboard

NSFS | NC | IAM Service - Input Validation

Open shirady opened this issue 7 months ago • 0 comments

Explain the changes

  1. Add input validation before every IAM operation.
  2. Rename the file of op get_access_key_last_used (missing prefix iam_).

Issues:

List of GAPs:

  1. Move constants to the file iam_constants.js (mainly from iam_utils.js).
  2. 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:

  1. npx jest test_iam_utils.test.j
  2. npx jest test_iam_ops_input_validation.test.js
  • [X] Doc added/updated
  • [X] Tests added

shirady avatar Jun 30 '24 11:06 shirady