Skip to content
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 | CLI | Restrict Access Keys chars + performance improvement #8008

Merged
merged 1 commit into from
May 5, 2024

Conversation

romayalon
Copy link
Contributor

@romayalon romayalon commented May 5, 2024

Explain the changes

  1. Change the access keys constraints per the following rules -
  • access_key -
    a. Length = 20.
    b. Contains only alphanumeric chars.
  • secret_key -
    a. Length = 40.
    b. Contains only alphanumeric chars, "+", "/".
  1. Performance improvements -
    Before the change, we tested 4 different regexp on the same access_key/secret_key, now we do it once.

Issues: Fixed #xxx / Gap #xxx

  1. Fixed SignatureDoesNotMatch for presigned URL when access key contains special character (+) #7931

Testing Instructions:

  1. sudo jest --testRegex=jest_tests/test_nc_nsfs_account_cli
  • Doc added/updated
  • Tests added

@romayalon romayalon requested a review from guymguym May 5, 2024 09:19
Signed-off-by: Romy <35330373+romayalon@users.noreply.github.com>
@romayalon romayalon force-pushed the romy-restrict-access-keys-chars branch from 9a178fc to c7a4eb4 Compare May 5, 2024 10:02
@romayalon romayalon requested a review from guymguym May 5, 2024 10:03
@guymguym guymguym added this to the 5.15.3 milestone May 5, 2024
@romayalon romayalon merged commit 56e1768 into noobaa:master May 5, 2024
10 checks passed
@romayalon romayalon mentioned this pull request May 7, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SignatureDoesNotMatch for presigned URL when access key contains special character (+)
2 participants