JUJU_SECRET_REVISION not set in secret-expired hook

Bug #2023120 reported by Ben Hoyt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

It seems the JUJU_SECRET_REVISION environment variable is not being set in the secret-expired hook context, so ops (which is looking for that env var) raises a KeyError: 'JUJU_SECRET_REVISION' exception. Per the spec, that hook should have the revision number so that the charm can call the secret-remove hook tool with the correct revision.

Thanks Ghislain Bourgeois for finding this. Original Mattermost thread: https://chat.charmhub.io/charmhub/pl/khzw91jz37f9dqqm7zothgmnyw

Revision history for this message
Ian Booth (wallyworld) wrote :
Changed in juju:
status: Confirmed → In Progress
assignee: nobody → Ian Booth (wallyworld)
milestone: none → 3.1.3
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
milestone: 3.1.3 → 3.1.5
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.