[labels] No command-line access to secrets by label
Bug #2037104 reported by
Judit Novak
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Wishlist
|
Harry Pidcock |
Bug Description
While the usage of secret labels is widely encouraged, there's no way to retrieve secrets by label using juju command-line.
May be a very useful feature to add. Thanks.
(If it exists but I've missed it, I'm very sorry, pls point me to the command/docs :-) Thank you.)
summary: |
- [labels] No command-line access to secrest by label + [labels] No command-line access to secrets by label |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
assignee: | nobody → Harry Pidcock (hpidcock) |
To post a comment you must log in.
You're right, it looks like there's no way to query by label at the moment. However, it looks like you can view all secret details, including the (owner) label, by using "juju secrets --format=yaml". This lists all secrets, but will show a "label:" field for those that have an owner label. Would this work for you?