"juju credentials --show-secrets" doesn't show secrets when using tabular output

Bug #1643984 reported by Francis Ginther
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Invalid
Wishlist
Unassigned

Bug Description

I see this with 2.0.1 and 2.1-beta1-xenial-amd64.

Basically, when using tabular format (or when it's not specified), "juju credentials ${CLOUD_NAME} --show-secrets", doesn't show any secrets. When using the other output formats, they are shown. I expect to be able to see secrets when requested regardless of the format.

ubuntu@landscape-xenial:~$ juju credentials scapestack --show-secrets --format yaml
credentials:
  scapestack:
    scapestack:
      auth-type: oauth1
      maas-oauth: [REDACTED]

ubuntu@landscape-xenial:~$ juju credentials scapestack --show-secrets --format json
{"credentials":{"scapestack":{"cloud-credentials":{"scapestack":{"auth-type":"oauth1","details":{"maas-oauth":"[REDACTED]"}}}}}}

ubuntu@landscape-xenial:~$ juju credentials scapestack --show-secrets --format tabular
Cloud Credentials
scapestack scapestack

ubuntu@landscape-xenial:~$ juju credentials scapestack --show-secrets
Cloud Credentials
scapestack scapestack

Also available via: https://pastebin.canonical.com/171477/

Tags: landscape
Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.1-beta2
Revision history for this message
Ian Booth (wallyworld) wrote :

This was a deliberate decision because the credential secret attributes differ depending on the auth scheme used. Tabular output is best suited to information which can be organised into consistent columns.

Changed in juju:
importance: High → Wishlist
Changed in juju:
milestone: 2.1-beta2 → none
Changed in juju:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.