forked from canonical/operator
-
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.
feat: expand the secret ID out to the full URI when only given the ID (…
…canonical#1358) Adjust the rules for getting the 'canonical' form of the Secret URI: * If the passed ID starts with `secret:`, leave it as-is (unchanged) * Otherwise, if the model UUID is unknown, add the `secret:` prefix to end up with the form `secret:id` (unchanged) * Otherwise, change to the full `secret://{model UUID}/{secret ID` form (new) Also adjust the code that calls the canonicalization [sic] method so that the model UUID is always available in regular ops use. If someone is creating `SecretInfo` objects themselves then a `None` value for the UUID is the default, for backwards compatibility (but a warning is issued in that case). Fixes canonical#1312.
- Loading branch information
1 parent
e89e2da
commit f43ac80
Showing
4 changed files
with
159 additions
and
54 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
Oops, something went wrong.