paralus / cli

Command Line Interface tool for Paralus
https://www.paralus.io/
Apache License 2.0
8 stars 11 forks source link

X-API-KEYID specified in auth and in request call leading to a concatenated string that fails paralus API call #67

Open estein9825 opened 7 months ago

estein9825 commented 7 months ago

Expected vs actual behavior

Any PCTL call fails due to having that X-API-KEYID header twice, which went calling paralus API leads to a concatenated API Key and a failure:

https://github.com/paralus/cli/blob/b87e7047311b8e13b7e06c1500ed1e515adfb5fe/pkg/authprofile/key_profile.go#L72C17-L72C28

Steps to reproduce the bug

  1. Generate the config json
  2. Use it as a config input parameter into a PCTL call
  3. Call will fail as unable to find key, since the key will be in the format API_KEY, APIKEY

-