-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#18457 from manadart/dqlite-secrets-caveat
juju#18457 This change is mechanical only and serves as preparation for a patch to follow. The secrets service was using a `canManage` function, which included a logical branch that asserted application leadership of unit accessors for application-owned secrets. The issue with this is that the point-in-time check may become invalid later, during execution of the logic requiring said check. In preparation for using `WithLease` to ensure checked conditions for the duration of the operations predicated on them, we swap `canManage` for `getManagementCaveat`. Right now, the caveat is always permissive if the point-in-time check is satisfied, but we will replace this later with usage of `WithLease`. Sundry nips and tucks accompany including usage of the new errors package for code under change. Formatting changes are in the first of the two commits. Looking at the second in isolation clarifies material change. ## QA steps Passing tests.
- Loading branch information
Showing
7 changed files
with
261 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.