Remove trustkey id migration and config.TrustKeyPath#44329
Merged
tianon merged 5 commits intomoby:masterfrom Dec 1, 2022
Merged
Remove trustkey id migration and config.TrustKeyPath#44329tianon merged 5 commits intomoby:masterfrom
tianon merged 5 commits intomoby:masterfrom
Conversation
9fb4baf to
5ecabab
Compare
Member
Author
|
Probably permission issues in the test (or daemon) let me check |
075b1f8 to
91e63c9
Compare
Member
Author
|
Okay, so Chown won't work; And rootless still fails; Error (formatted for readability) is: |
f5aaea8 to
0962d0b
Compare
The migration code is in the 22.06 branch, and if we don't migrate the only side-effect is the daemon's ID being regenerated (as a UUID). Signed-off-by: Sebastiaan van Stijn <[email protected]>
Turned out that the loadOrCreateTrustKey() utility was doing exactly the same as libtrust.LoadOrCreateTrustKey(), so making it a thin wrapped. I kept the tests to verify the behavior, but we could remove them as we only need this for our integration tests. The storage location for the generated key was changed (again as we only need this for some integration tests), so we can remove the TrustKeyPath from the config. Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
This is only used for tests, and the key is not verified anymore, so instead of creating a key and storing it, we can just use an ad-hoc one. Signed-off-by: Sebastiaan van Stijn <[email protected]>
It's never set, so we can remove it. Signed-off-by: Sebastiaan van Stijn <[email protected]>
0962d0b to
85fddc0
Compare
cpuguy83
approved these changes
Dec 1, 2022
tianon
approved these changes
Dec 1, 2022
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
See individual commits for details
- A picture of a cute animal (not mandatory but encouraged)