Skip to content

Inconsistent behavior with ZOWE_SHOW_SECURE_ARGS #2430

Closed
@adam-wolfe

Description

Describe the bug

If I set ZOWE_SHOW_SECURE_ARGS to true and run a command with the --show-inputs-only flag, I am able to see things like passwords and token values, however I am not able to see other fields that I have included in my secure array. I would expect all secure fields to be printed if I have ZOWE_SHOW_SECURE_ARGS = true.

Expected and actual results

Example where I have host, port, base-path, protocol, and token-value in a secure array (running Zowe CLI 8.12.0):

With ZOWE_SHOW_SECURE_ARGS = false:

PS C:\> zowe files list ds IBMUSER --show-inputs-only
Some inputs are not displayed:
Inputs below may be displayed as '(secure value)'. Properties identified as secure fields are not displayed by default.

Set the environment variable ZOWE_SHOW_SECURE_ARGS to 'true' to display secure values in plain text.

commandValues:
  host:                (secure value)
  port:                (secure value)
  reject-unauthorized: false
  base-path:           (secure value)
  protocol:            (secure value)
  show-inputs-only:    true
  token-type:          apimlAuthenticationToken
  token-value:         (secure value)
optionalProfiles:
  - zosmf
  - base
locations:
  - C:\Users\me\.zowe\zowe.config.json

With ZOWE_SHOW_SECURE_ARGS = true:

PS C:\> zowe files list ds IBMUSER --show-inputs-only
commandValues:
  host:                ****
  port:                ****
  reject-unauthorized: false
  base-path:           ****
  protocol:            ****
  show-inputs-only:    true
  token-type:          apimlAuthenticationToken
  token-value:         eyfaketokenvalue123
optionalProfiles:
  - zosmf
  - base
locations:
  - C:\Users\me\.zowe\zowe.config.json

Note that the token value is displayed, but my other secure properties are shown as ****, which is not what I would expect.

Describe your environment

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnewThe issue wasn't triaged yet

    Type

    No type

    Projects

    • Status

      Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions