Authentication failure while trying to configure the AVI-NSALB plugin using the Portal VNA Gateway
search cancel

Authentication failure while trying to configure the AVI-NSALB plugin using the Portal VNA Gateway

book

Article ID: 415602

calendar_today

Updated On:

Products

Network Observability Virtual Network Assurance

Issue/Introduction

While trying to configure the AVI-NSALB plugin using the Portal VNA Gateway and the following curl command it's failing with an Authentication Error:

curl -X 'POST' \
  'http://user:pass@<AVIHOST>:8080/vna/rest/v1/admin/plugins/NSXALB%20Plugin?configDesc=avitest' \
  -H 'accept: text/plain' \
  -H 'Content-Type: application/json' \
  -d '{
  "PLUGIN_CONFIG" : {
    "CONTROLLER_HOSTS" : [ "<AVIHOST>" ],
    "CONTROLLER_PORT" : 443,
    "CONTROLLER_USERNAME" : "<user>",
    "CONTROLLER_PASSWORD" : "Pass#]word+c3",
    "PROTOCOL" : "https",
    "USE_PROXY" : false,
    "PROXY_IP" : "172.0.0.1",
    "PROXY_PORT" : 80,
    "PROXY_PROTOCOL" : "http",
    "PROXY_USERNAME" : "proxy",
    "PROXY_PASSWORD" : "proxy",
    "INVENTORY_POLL_RATE" : "0 */10 *",
    "INVENTORY_DELTA_TIME" : 600,
    "PERFORMANCE_POLL_RATE" : "0 */1 *",
    "PERFORMANCE_DELTA_TIME" : 60,
    "MAX_THREADS" : 3,
    "DOMAIN_ID" : 1
  }
}
'

Environment

VNA: 24.3.12

Cause

The Special Characters in the  "Pass#]word+c3" were not being handled correctly. 

Resolution

URL Encoding can be used in the password for Special characters. For Example:

For example:
* `#` can be encoded as `%23`
* `]` can be encoded as `%5D`
* `+` can be encoded as `%2B`
 
The example password in the string above "Pass#]word+c3" would be "Pass%23%5Dword%2Bc3"
 
This will be addressed in a future release.