Juju does not support setting owner label using secret-get
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Yang Kelvin Liu |
Bug Description
Looking up a secret using a label is broke. Steps to reproduce from the CI test below.
The last line fails.
Looking at the db, there's no label recorded for the application owned secret in secret metadata.
juju --show-log deploy easyrsa
juju --show-log deploy etcd
juju --show-log integrate etcd easyrsa
secret_
secret_
secret_
secret_
echo "Set a label for the unit owned secret $secret_
juju exec --unit easyrsa/0 -- secret-set "$secret_
echo "Set a consumer label for the app owned secret $secret_
juju exec --unit easyrsa/0 -- secret-get "$secret_
# secret-get by label or consumer label - content.
juju exec --unit easyrsa/0 -- secret-get --label=easyrsa_0 | grep 'owned-by: easyrsa/0'
juju exec --unit easyrsa/0 -- secret-get --label=easyrsa-app | grep 'owned-by: easyrsa-app'
Changed in juju: | |
status: | Triaged → In Progress |
Changed in juju: | |
assignee: | nobody → Yang Kelvin Liu (kelvin.liu) |
summary: |
- secret lookup by label broken + Juju does not support setting owner label using secret-get |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Changed in juju: | |
milestone: | 3.1.3 → 3.1.5 |
https:/ /github. com/juju/ juju/pull/ 15537