-
Notifications
You must be signed in to change notification settings - Fork 408
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
secret key updation in server ( identity unchanged ) has no effect on update registration #162
Comments
As far as I understand, the secret key is only used during the DTLS handshake. So, with an already established DTLS session, there will be no new handshake on "update registration" and therefore the new secret key is not accessed. |
Does that mean - "it is not a bug" ? I felt end user will expect the update registration to fail. |
I would just say, the LWM2M TS doesn't explizitly define the behaviour. Therefore it's rather unclear, if this should be considered as bug or not. |
@boaks is right. Currently Leshan server does not close DTLS session when credentials is changed. So, as long as the DTLS session is alive the device will be able to communicate with the server. The LWM2M TS is not clear about that. So we should probably ask this at OMA. About the DTLS session lifetime, the TLS RFC say that : With the currently DTLS implementation (Scandium) used in Leshan, session can live forever (If device talk at least every 36 hours). I suppose Session lifetime expiration should be handled/configurable at Scandium level. |
Have added a query at OMA(1). Note: currently in Leshan server, if both PSK identity and key is changed, the update registration fails as expected. |
:-). For each registration / registration update message, the "exchanged" security info is checked. DTLS/PSK exchanges only the PSK identity (and for sure not the PSK secret key). So changing the identity results in failing of the check, but changing the PSK (currently) only affects the handshake. |
maybe you want to create an issue for this in Californium? |
@sophokles73 I once did that( link ). Should it be reopened ? Or should the query be presented differently. |
Sry, this was a bit confusing but scandium#24 is about time of inactivity. |
OMA replied(1) - it is up to the implementation to decide. If Leshan chose to not expire session on secret key change, shouldn't Leshan have consistent behavior across changes to identity and secret key ?. Currently identity change breaks the session and secret key change keeps the session as before. |
@kiranpradeep, #818 should provide a new behavior closer to your expectation. |
I close this one as #818 should cover the need. |
I tried below.
Shouldn't the update registration have failed once secret was changed ?
The text was updated successfully, but these errors were encountered: