sailpoint-oss / sailpoint-cli

The SailPoint Command Line Interface (CLI) makes it easy to interact with SailPoint's SaaS Platform in a programmatic way. Many functions that use to be accomplished through tools like Postman or from custom scripts can now be done directly on the command line with minimal setup.
https://developer.sailpoint.com/discuss
MIT License
24 stars 19 forks source link

[Bug] OSX keyring storage of client ID and client Secret stores incorrect values #129

Closed rob-buskens-sp closed 2 months ago

rob-buskens-sp commented 11 months ago

On OSX, setting an environment client ID / Secret in the keyring stores incorrect value:

To Reproduce

  1. sail set pat
  2. enter clientId
  3. enter clientSecret
  4. Open keychain access
  5. search env, pick the one for the current enviornment
  6. click show password The value is "go-keyring-" image

Expected behavior A value representing the stored item.

Actual behavior "go-keyring-"

Operating System

Additional context sail version 2.0.3

jordan-violet-sp commented 7 months ago

This issue has been mentioned on SailPoint Developer Community Forum. There might be relevant details there:

https://developer.sailpoint.com/discuss/t/sailpoint-cli-credentials-issue/39820/1

rob-buskens-sp commented 7 months ago

in my experience it happens only if you copy and paste the secret into a terminal window when the CLI prompts for input.

sail set pat Personal Access Token Client ID:{paste client id} etc.

whereas if you copy and paste the client id and client secret as command line parameters, it works.

sail set pat -i {ClientId} -s {ClientSecret}

tyler-mairose-sp commented 2 months ago

Hey @rob-buskens-sp,

This was fixed in the following release https://github.com/sailpoint-oss/sailpoint-cli/releases/tag/2.1.5.

Please re-open if you still find this to be a problem after this release version!