Repository navigation
Persist ohttp keys - #616
Merged
Merged
Conversation
OHTTP KeyConfig management is about to get more complex.
DanGould
force-pushed
the
persist-ohttp-keys
branch
2 times, most recently
from
March 31, 2025 19:13
d187f20 to
4240876
Compare
Collaborator
Pull Request Test Coverage Report for Build 14183175036Details
💛 - Coveralls |
DanGould
force-pushed
the
persist-ohttp-keys
branch
5 times, most recently
from
March 31, 2025 19:56
59ef0e8 to
999d418
Compare
DanGould
marked this pull request as ready for review
March 31, 2025 20:24
Member
Author
|
@spacebear21: @nothingmuch and I paired this, so would you help us out and provide third party review? |
spacebear21
reviewed
Mar 31, 2025
DanGould
force-pushed
the
persist-ohttp-keys
branch
4 times, most recently
from
March 31, 2025 21:16
9297ee4 to
21972ae
Compare
spacebear21
reviewed
Mar 31, 2025
spacebear21
approved these changes
Mar 31, 2025
spacebear21
left a comment
Collaborator
There was a problem hiding this comment.
utACK 21972ae
Does the Dockerfile need to be updated to generate keys if none exist since they're not made automatically? If it's a required manual step it should be documented somewhere.
DanGould
force-pushed
the
persist-ohttp-keys
branch
2 times, most recently
from
March 31, 2025 23:03
2cd72f6 to
c26bea6
Compare
Include functions for generation and reading from persistence. Note KeyId = 1 Is still used and there is no function for key rotation yet. Persist a key on first run if none already exists. The OHTTP Server configuration is now an argument to listen functions. For now, a default path of `ohttp_keys/1.ikm` is used to persist the key material. "1" is the KeyId. The default path is relative to where the binary is run.
Member
Author
No, and we wouldn't want it to because that's really a docker compose matter. In order to keep the compose functionality working I've changed this to generate on first use and read from the specified or default key configuration directory. |
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.
Fix #614