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 | Weird behavior of the CLI when adding space before access_key/secret_key flag #8319

Open
romayalon opened this issue Aug 29, 2024 · 1 comment · May be fixed by #8722
Open

NC | CLI | Weird behavior of the CLI when adding space before access_key/secret_key flag #8319

romayalon opened this issue Aug 29, 2024 · 1 comment · May be fixed by #8722
Assignees
Labels
Non Containerized Non containerized

Comments

@romayalon
Copy link
Contributor

Environment info

  • NooBaa Version: Master
  • Platform: NC

Actual behavior

  1. On account creation/update - when providing --access_key flag and --secret_key and there is a space before the value, Instead of failing or trimming the space at the beginning, the access key and secret key get generated automatically.

Expected behavior

  1. Failing or trimming the space at the beginning and create an account with the user's access_key and secret_key.

Steps to reproduce

  1. Run sudo node src/cmd/manage_nsfs.js account add --name account15 --user root --new_buckets_path=/private/tmp/dir2/ --access_key= 12345678912345678912 --secret_key= a234567891234567891212345678912345678912 --debug 5

More information - Screenshots / Logs / Other output

sudo node src/cmd/manage_nsfs.js account add --name account15 --user root --new_buckets_path=/private/tmp/dir2/ --access_key= 12345678912345678912 --secret_key= a234567891234567891212345678912345678912  --debug 5

# Output - 
{
  "response": {
    "code": "AccountCreated",
    "reply": {
      "_id": "66d04174c03e0b51480e4ddd",
      "name": "account15",
      "email": "account15",
      "creation_date": "2024-08-29T09:37:56.615Z",
      "access_keys": [
        {
          "access_key": "QBxpvZvehMsbptZmlauR",
          "secret_key": "axXfXsBzpW2VeJ/2VibpioZcC+TLVSpMcTRyivC8"
        }
      ],
      "nsfs_account_config": {
        "distinguished_name": "root",
        "new_buckets_path": "/private/tmp/dir2/"
      },
      "allow_bucket_creation": true
    }
  }
}
@romayalon romayalon changed the title NC | CLI | Weird behaviour of the CLI when adding space before access_key/secret_key flag NC | CLI | Weird behavior of the CLI when adding space before access_key/secret_key flag Aug 29, 2024
Copy link

This issue had no activity for too long - it will now be labeled stale. Update it to prevent it from getting closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Non Containerized Non containerized
Projects
None yet
3 participants