-
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
Pass client Identity in call to BootstrapStore.getBootstrap #548
Comments
I don't think the argument about the 1.1 is too strong as the spec say that it can be omitted only if it is equals to the identifier from security protocol. The LWM2M spec 1.0 propose severals format to ensure uniqueness of endpoint name :
Anyway, we could add identity to Do you plan to provide a PR for this change ? |
The LwM2M 1.1. argument wasn't my actual reason to request this change. I just happened to think that it could be related and making this interface change before Leshan 1.0 could perhaps help in adding LwM2M 1.1 support later. Yes, I'm aware of the proposals to ensure uniqueness of the endpoint names. In the multi-tenant bootstrap server use case it could be considered a security issue to start controlling the uniqueness of endpoint names across all tenants in the system. The minor threat that there would be is that another tenant could check if some other tenant has registered devices with a specific endpoint name. It helps to add the Since this is a simple change and PRs cause some legal overhead with my customer, I unfortunately wasn't planning to provide a PR for this change of a few lines of code. (I'm sorry...) |
You made several contributions by the past by opening issues. I would have enjoyed you level up by contributing a very small PR 😉, but I understand your concern I would made the change myself soon. |
I create a PR #549 for this. If you have time to have a look ? |
Thanks @sbernard31, it looks good to me. |
#549 is integrated in master. |
This is the example of the changed interface:
currently the
BootstrapStore
interface method only contains theString endpoint
parameter.Identity information is useful for implementing a multi-tenant
Bootstrap Server where the endpoint name isn't guaranteed to be
unique across multiple tenants.
BootstrapStore that can use the autenticated client's
information for looking up the correct information to be used
for bootstrapping.
In LwM2M 1.1, the endpoint name is optional in client initiated
bootstrapping
In 6.1.3.3. Client Initiated Bootstrap
The text was updated successfully, but these errors were encountered: