-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Validate CSR in separate commissioning step #16913
Merged
cecille
merged 11 commits into
project-chip:master
from
cecille:CSR_check_in_separate_step
Apr 4, 2022
Merged
Validate CSR in separate commissioning step #16913
cecille
merged 11 commits into
project-chip:master
from
cecille:CSR_check_in_separate_step
Apr 4, 2022
Conversation
This file contains 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
This will let OperationalCredentialsIssuer impls validate the CSR before generating the NOC chain.
pullapprove
bot
requested review from
andy31415,
anush-apple,
austinh0,
Byungjoo-Lee,
bzbarsky-apple,
carol-apple,
chrisdecenzo,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
franck-apple,
gjc13,
hawk248,
holbrookt,
harsha-rajendran,
isiu-apple,
jelderton,
jepenven-silabs,
jmartinez-silabs,
lazarkov,
LuDuda,
lzgrablic02,
mlepage-google and
mrjerryjohns
April 1, 2022 00:06
PR #16913: Size comparison from 566cf88 to ec80428 Increases (1 build for linux)
Full report (22 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
tcarmelveilleux
approved these changes
Apr 1, 2022
msandstedt
approved these changes
Apr 1, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PAA needs to be removed from the noc-chain-generation interface and PAI should be piped through from the commissioner.
Else, looks good. Thanks for cleaning this up.
bzbarsky-apple
approved these changes
Apr 1, 2022
Co-authored-by: Boris Zbarsky <[email protected]>
woody-apple
approved these changes
Apr 1, 2022
It's not available.
No one's messing around with these things, may as well.
msandstedt
approved these changes
Apr 1, 2022
I accidentally removed it.
I hate myself.
chencheung
pushed a commit
to chencheung/connectedhomeip
that referenced
this pull request
Apr 6, 2022
* Vaidate CSR as a separate step * Pass all validataion parameters to GenerateNOCChain This will let OperationalCredentialsIssuer impls validate the CSR before generating the NOC chain. * Restyled by clang-format * Update src/controller/ExampleOperationalCredentialsIssuer.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Remove PAA from GenerateNOCChain command It's not available. * More const is better const No one's messing around with these things, may as well. * Pass PAI to noc chain generation. * Remove stale comment * Bring back namespasing. I accidentally removed it. * Once more. * And again. I hate myself. Co-authored-by: Restyled.io <[email protected]> Co-authored-by: Boris Zbarsky <[email protected]>
chencheung
pushed a commit
to chencheung/connectedhomeip
that referenced
this pull request
Apr 6, 2022
* Vaidate CSR as a separate step * Pass all validataion parameters to GenerateNOCChain This will let OperationalCredentialsIssuer impls validate the CSR before generating the NOC chain. * Restyled by clang-format * Update src/controller/ExampleOperationalCredentialsIssuer.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Remove PAA from GenerateNOCChain command It's not available. * More const is better const No one's messing around with these things, may as well. * Pass PAI to noc chain generation. * Remove stale comment * Bring back namespasing. I accidentally removed it. * Once more. * And again. I hate myself. Co-authored-by: Restyled.io <[email protected]> Co-authored-by: Boris Zbarsky <[email protected]>
andrei-menzopol
pushed a commit
to andrei-menzopol/connectedhomeip
that referenced
this pull request
Apr 14, 2022
* Vaidate CSR as a separate step * Pass all validataion parameters to GenerateNOCChain This will let OperationalCredentialsIssuer impls validate the CSR before generating the NOC chain. * Restyled by clang-format * Update src/controller/ExampleOperationalCredentialsIssuer.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Remove PAA from GenerateNOCChain command It's not available. * More const is better const No one's messing around with these things, may as well. * Pass PAI to noc chain generation. * Remove stale comment * Bring back namespasing. I accidentally removed it. * Once more. * And again. I hate myself. Co-authored-by: Restyled.io <[email protected]> Co-authored-by: Boris Zbarsky <[email protected]>
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.
Problem
Validation of the CSR is coupled to NOC generation currently. Separating these steps allows more flexibility for custom CommissioningDelegates. Also adds remaining values required for CSR validation to the GenerateNOCChain command, so the OperationalCertificateIssuer classes can validate the CSR themselves.
Fixes: #11908
Change overview
Testing
Manually commissioned - checked that the ValidateCSR stage was properly entered and returned success.