-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: expand the secret ID out to the full URI when only given the ID #1358
Merged
tonyandrewmeyer
merged 8 commits into
canonical:main
from
tonyandrewmeyer:full-secret-id-1312
Sep 10, 2024
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
aa394a6
feat: expand the secret ID out to the full URI when only given the ID.
tonyandrewmeyer e660c11
Canonicalise the Secret ID in the testing backend storage, so that an…
tonyandrewmeyer a104ae2
Use a more robust secret 'id' comparison.
tonyandrewmeyer d6e972d
Use a regular expression to parse the secret URI.
tonyandrewmeyer b913d91
Add a test to ensure that Harness can get secrets in any of the three…
tonyandrewmeyer 7673ef0
Remove unused import.
tonyandrewmeyer 20cf599
Remove accidental commit.
tonyandrewmeyer 8ba9c0a
Style adjustments, per review.
tonyandrewmeyer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In what cases can this happen? Only if people manually create a
SecretInfo
object? (Which they shouldn't be doing.)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manually create a
SecretInfo
, yes. And yes, I don't know why they would, although we don't tell them not to (as we do withSecret
, for example). This is probably overly cautious - I can't find any charm doing this (Scenario does, but we can fix that in advance of a release), but seemed better than just havingNone
work and then in some future version (3.0?) suddenly not work.