[labels] No command-line access to secrets by label

Bug #2037104 reported by Judit Novak
6
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.)

Revision history for this message
Ben Hoyt (benhoyt) wrote :

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?

Harry Pidcock (hpidcock)
summary: - [labels] No command-line access to secrest by label
+ [labels] No command-line access to secrets by label
Revision history for this message
Judit Novak (juditnovak) wrote :

I'm still thinking that --especially given the siginificance that we are giving to the usage of labels-- there should be a lot more explicit/intuitive way to access secrets by the "primary" (i.e. owner's) label.

Once we're encouraged to rely on this single piece of information in our charms as an identifier -- would be a lot more elegant to have better-established means of command-line access than 'grep'-ing.

Based on the continued discussion (https://chat.charmhub.io/charmhub/pl/jddb4wtoepd1pk8f1uguykjyor) it seems like I'm not the only one who thinks there may be value in a dedicated direct access...

Changed in juju:
status: New → Triaged
importance: Undecided → Wishlist
assignee: nobody → Harry Pidcock (hpidcock)
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.