Skip to content

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

@estein9825

Description

@estein9825

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
  • I've described the bug, included steps to reproduce it, and included my environment setup with all customizations.
  • I'm using the latest version of the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnewNeeds triage

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions