secret-ids hook command does not show the unit owned secrets for operator apps

Bug #2015335 reported by Yang Kelvin Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
High
Unassigned

Bug Description

juju show-secret --reveal cgmkgcmffbas7anck8mg
cgmkgcmffbas7anck8mg:
  revision: 1
  owner: mariadb-k8s
  label: mariadb1
  created: 2023-04-05T10:06:43Z
  updated: 2023-04-05T10:06:43Z
  content:
    mariadb: mariadb1

juju show-secret --reveal cgmkgimffbas7anck8n0
cgmkgimffbas7anck8n0:
  revision: 1
  owner: mariadb-k8s/0
  label: mariadb2
  created: 2023-04-05T10:07:08Z
  updated: 2023-04-05T10:07:08Z
  content:
    mariadb: mariadb2

juju exec --unit mariadb-k8s/0 'secret-ids'

cgmkgcmffbas7anck8mg

Revision history for this message
Yang Kelvin Liu (kelvin.liu) wrote :

This is because the facade method GetSecretMetadata does not handle operator agent properly:
 https://github.com/juju/juju/blob/3.1/apiserver/facades/agent/secretsmanager/secrets.go#L342

Changed in juju:
importance: Undecided → High
milestone: none → 3.1.1
status: New → Triaged
Harry Pidcock (hpidcock)
Changed in juju:
milestone: 3.1.1 → 3.1.2
Changed in juju:
milestone: 3.1.2 → 3.1.3
Changed in juju:
milestone: 3.1.3 → 3.1.4
Changed in juju:
milestone: 3.1.4 → 3.1.5
Changed in juju:
milestone: 3.1.5 → 3.1.6
Changed in juju:
milestone: 3.1.6 → 3.1.7
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.