-
Notifications
You must be signed in to change notification settings - Fork 409
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
OSCORE store for holding security material #920
Comments
As we discussed the OscoreStore can be modeled on the PSKStore, but is there some class in Leshan itself which has similar properties (persistent, shared between cluster environments) which I could use as inspiration to see how these properties can be achieved? The way I could imagine for the OscoreStore to function is as kind of a layer between the OSCORE Object and the creation of the OSCORE Context. So it would be something like: OSCORE Object or Local configuration -> OscoreStore -> Oscore Context. Meaning the information from the OSCORE Object received on the Client (or the local configuration input in the GUI/CLI on the Client/Server/Bootstrap server) will be input into the OscoreStore , then the information from the OscoreStore is used when building the actual OSCORE Context. |
You can have a look at I'm back on Tuesday and can give you more information if needed when I'll be back. |
Thank you for the feedback. I will start having a look at those classes. |
I created draft #1175 to show my proposition |
About the proposition, I feel this is not exactly the idea. I will try to better explain what I have in mind. First we should keep in mind that Leshan should be as much as possible independent to californium and californium is just a possible implementation. As explained at #920 (comment), I guess there is 2 kind of OSCORE data, the one which should be persisted (and will be provided by a user) and the context/temporary one which can be recreated with some exchange between client and server. I feel its pretty much similar as PSK with DTLS. Even If I'm not so sure I guess for OSCORE this could be the same idea. At Leshan side, the Then we create an The question is : Does this idea makes sense at OSCORE point of view ? (@rikard-sics) |
About
I rethink about this and maybe this is possible to experiment a kind of OscoreStore in directly in Leshan playing with a |
Yes, I think that plan makes sense. Then we can see what can of solution fits best for Leshan, and based on that merged our solution into Californium after it is confirmed to work well and fit with Leshan. |
@rikard-sics do you start to work on this ? |
Yes, I will get started on this. Let us synchronize on what code modifications you need and I can try to adapt things accordingly. |
I created #1208. |
@rikard-sics, I created #1212 to clarify ideas I tried to explain here. Let me know if this is clearer now ? and if you think this is the right direction ? 🙏 |
Thanks sounds great. I will check #1212 and write a comment there. |
(you should probably check #1208 first) |
Noted, then I will check that PR first. Let me get back to you tomorrow. |
@rikard-sics with #1208 and #1212. Please tell me if you want to review those 2 PRs more deeper. Next step I have in mind :
I think the most important missing point is the OSCORE context lifetime question. (#1212 (comment)) |
Sounds very good! I have tried to keep up with those PRs and the discussion, so I don't see a need for me to do any deeper review before you proceed with the steps in your plan. Let us discuss more about the list of changes needed in Californium when that step is reached. I have tried to keep track of the things that came up during our discussions.
I wrote a reply regarding the lifetime point in that thread. If you wish to break it out into a separate issue we could continue the discussion in there. |
(I need to work on a 1.4.0 release, then I start to apply this plan) |
Unless I missed something all of this are done now. @rikard-sics, I don't know what could be next steps ? 🤔 I think we could consider to integrate all those changes on Then we should decide what is missing before we put in I'm not sure what I can do more for now, if you have some idea let me know ? |
I think this is implemented and integrated in Mssing work should be listed in #1231. So I close this issue. (@rikard-sics feel free to reopen if needed) |
As discussed during the process of adding OSCORE support to Leshan it would be good to have a "OSCORE store", similar to the DTLS store, for holding OSCORE security information.
To start the discussion, here's a quote proposed from @sbernard31 from an earlier PR related to OSCORE. #857
I will come back with further comments on considerations in a follow up post.
The text was updated successfully, but these errors were encountered: