Skip to content
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

Where to find the root keys for ADU JWS authentication? #2904

Open
2 tasks done
florianhumblot opened this issue Sep 4, 2024 · 9 comments
Open
2 tasks done

Where to find the root keys for ADU JWS authentication? #2904

florianhumblot opened this issue Sep 4, 2024 · 9 comments
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@florianhumblot
Copy link

florianhumblot commented Sep 4, 2024

Query/Question
The Azure SDK samples for device updates with ADU contain two root keys for JWS authentication. The key IDs are "ADU.200702.R" and "ADU.200703.R".

I have two questions:

  1. Where can I find the keys that I will need when they are next rotated in May 2025? (according to the docs on update security
    I found this PR comment saying that there is an internal issue for this, but I haven't been able to find any updates.
  2. What is the recommended way of dealing with key updates? Should they be part of the firmware package or is it recommended to be able to update them separately?

Why is this not a Bug or a feature Request?
A clear explanation of why is this not a bug or a feature request?

Setup (please complete the following information if applicable):

  • OS: Windows/Linux/FreeRTOS
  • IDE: CLion
  • Version of the Library used 7759a42a1eab12818ea2a8f3f940847743968021

Information Checklist
Please make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Query Added
  • Setup information Added
@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Sep 4, 2024
@prayassamriya
Copy link

prayassamriya commented Dec 20, 2024

Any reason there is no updates on this topic? we are just few months away from expiry.
@danewalton, @CIPop

@CIPop
Copy link
Member

CIPop commented Dec 20, 2024

@florianhumblot @prayassamriya I am no longer a maintainer of this project. That said, keys are not part of the SDK, they should come from the service.
I recommend opening a support ticket referencing your ADU instance.

@ewertons ewertons self-assigned this Dec 21, 2024
@ewertons
Copy link
Contributor

@prayassamriya thanks for filling the issue, we are tracking this work item.

@prayassamriya
Copy link

Gentle Reminder !!!

@florianhumblot
Copy link
Author

@ewertons considering the tokens are supposed to rotate by May 2025, I feel like it might be wise to prioritize this before customers can no longer authenticate JWS!

@andrewbrownmsft
Copy link

Hi. Apologies for the delay and lack of response (I was just sent this link and had not seen it previously). I am the PM owner for the Device Update for IoT Hub security story, including the upcoming root key rotation. We are a little bit behind in releasing both documentation and the new root key that will replace the one being rotated out, but anticipate those to be available in the next 2-3 weeks. The documentation will include a temporary mechanism for any customer to import a special update which will be signed with the new root key that will be used starting in May. This way, you'll be able to confirm the exact behavior of any of your devices in advance of the actual root key rotation.

One note on this:

considering the tokens are supposed to rotate by May 2025, I feel like it might be wise to prioritize this before customers can no longer authenticate JWS!

The default implementation of the Device Update agent has two root keys present. This is so that a rotation event like this one does not disrupt the device's ability to continue to receive updates, even if that device is not updated frequently. The second key (ADU.200703.R) has not been used by the Device Update team for validation in our production service, and will be the one we will start signing with in May. Our expectation, then, is that no devices will be impacted will be impacted by the May 2025 rotation unless the implementation on a device currently omits that second root key. Our goal in making the information available several months in advance of the rotation is to allow our customers to test whether their devices might be in that state for some reason, and if so, update their devices to include all valid root keys. But by default, the May rotation should not cause devices to be unable to authenticate the update manifest.

@prayassamriya
Copy link

Thanks @andrewbrownmsft . When the new key (ADU.200703.R) to be rotated. I heard that this will be 2028. Could you please let me know. also please share the documentation and test process here( as soon as its ready) to help us confirm that After May 2025, The migration to new key will happen seamlessly for on field device.

@andrewbrownmsft
Copy link

When the new key (ADU.200703.R) to be rotated. I heard that this will be 2028.

We have not yet announced a rotation timeframe for the new key. Our overall intent is to rotate approximately every 2.5 years, so I would not expect it to be to be earlier than 2028.

@prayassamriya
Copy link

When the new key (ADU.200703.R) to be rotated. I heard that this will be 2028.

We have not yet announced a rotation timeframe for the new key. Our overall intent is to rotate approximately every 2.5 years, so I would not expect it to be to be earlier than 2028.

Thank you. I will wait for more information/documentation related to pre-validating ADU.200703.R signed manifest to verify seamless migration after May 2025. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

5 participants