Skip to content

Follow-up for Camera TLS Certificate Management Cluster to bring it up to latest spec #40552

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gmarcosb
Copy link
Contributor

@gmarcosb gmarcosb commented Aug 12, 2025

Summary

This is a follow-up to #39754:

Related issues

Fixes #40507

Testing

CI

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the TLS Certificate Management Cluster to align with the latest specification. The changes are propagated from the cluster definition files (.matter and .xml) to the generated code across various languages (C++, Java, Kotlin, Objective-C, and Python). Key modifications include removing a StatusCodeEnum, renaming and resizing fields in CSR-related commands, and altering the structure of the ProvisionClientCertificateRequest. The changes are consistent across all affected files and appear to correctly implement the spec update. Based on the provided diffs, the changes look good.

Copy link

github-actions bot commented Aug 12, 2025

PR #40552: Size comparison from d5106c0 to 90b9cdd

Full report (26 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, qpg, stm32, telink)
platform target config section d5106c0 90b9cdd change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1105014 1105014 0 0.0
RAM 178962 178962 0 0.0
bl702 lighting-app bl702+eth FLASH 657370 657370 0 0.0
RAM 134873 134873 0 0.0
bl702+wifi FLASH 835506 835506 0 0.0
RAM 124437 124437 0 0.0
bl706+mfd+rpc+littlefs FLASH 1067120 1067120 0 0.0
RAM 117293 117293 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 896558 896558 0 0.0
RAM 105604 105604 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 980272 980272 0 0.0
RAM 109780 109780 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 766928 766928 0 0.0
RAM 103336 103336 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 778508 778508 0 0.0
RAM 108496 108496 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 724024 724024 0 0.0
RAM 96900 96900 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 708396 708396 0 0.0
RAM 97100 97100 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 550746 550746 0 0.0
RAM 205088 205088 0 0.0
lock CC3235SF_LAUNCHXL FLASH 583182 583182 0 0.0
RAM 205296 205296 0 0.0
efr32 lock-app BRD4187C FLASH 958312 958304 -8 -0.0
RAM 122612 122612 0 0.0
BRD4338a FLASH 752816 752808 -8 -0.0
RAM 251864 251864 0 0.0
window-app BRD4187C FLASH 1050716 1050708 -8 -0.0
RAM 118840 118840 0 0.0
qpg lighting-app qpg6200+debug FLASH 819624 819624 0 0.0
RAM 127608 127608 0 0.0
lock-app qpg6200+debug FLASH 756940 756940 0 0.0
RAM 118568 118568 0 0.0
stm32 light STM32WB5MM-DK FLASH 466572 466572 0 0.0
RAM 141344 141344 0 0.0
telink bridge-app tl7218x FLASH 703750 703750 0 0.0
RAM 93552 93552 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 795556 795556 0 0.0
RAM 43968 43968 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 783960 783960 0 0.0
RAM 100856 100856 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 711544 711544 0 0.0
RAM 54192 54192 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 748138 748138 0 0.0
RAM 77348 77348 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 724866 724866 0 0.0
RAM 36948 36948 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 604904 604904 0 0.0
RAM 112512 112512 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 819564 819568 4 0.0
RAM 99108 99108 0 0.0

Copy link
Contributor

@samadDotDev samadDotDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also bring the TLS client management cluster upto the same spec version so we match the corresponding cert management updates here? Or are you planning to do that as a follow-on to this follow-up PR? :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might also need to re-run codegen after the merge of #40549 so that these changes are reflected in the camera app as well - I'm not sure if CI or other conflicts would enforce that update otherwise.

@gmarcosb
Copy link
Contributor Author

Can we also bring the TLS client management cluster upto the same spec version so we match the corresponding cert management updates here? Or are you planning to do that as a follow-on to this follow-up PR? :)

separate PR (not follow-up, parallel) - the PRs get big enough on their own, & splitting it on the cluster boundary is a good way to parallelize without making big PRs 😅🤣

Copy link

PR #40552: Size comparison from 8283cdb to 66320d1

Full report (5 builds for cc32xx, realtek, stm32)
platform target config section 8283cdb 66320d10 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 552230 552230 0 0.0
RAM 205120 205120 0 0.0
lock CC3235SF_LAUNCHXL FLASH 584546 584546 0 0.0
RAM 205352 205352 0 0.0
realtek light-switch-app rtl8777g FLASH 704008 704008 0 0.0
RAM 106676 106676 0 0.0
lighting-app rtl8777g FLASH 755592 755592 0 0.0
RAM 127056 127056 0 0.0
stm32 light STM32WB5MM-DK FLASH 468028 468028 0 0.0
RAM 141400 141400 0 0.0

Copy link

PR #40552: Size comparison from 233d3f7 to 15daa98

Full report (4 builds for cc32xx, realtek)
platform target config section 233d3f79 15daa98 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 552230 552230 0 0.0
RAM 205120 205120 0 0.0
lock CC3235SF_LAUNCHXL FLASH 584546 584546 0 0.0
RAM 205352 205352 0 0.0
realtek light-switch-app rtl8777g FLASH 704008 704008 0 0.0
RAM 106676 106676 0 0.0
lighting-app rtl8777g FLASH 755592 755592 0 0.0
RAM 127056 127056 0 0.0

Copy link

github-actions bot commented Aug 23, 2025

PR #40552: Size comparison from e086a20 to 4ad005d

Full report (37 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section e086a20 4ad005d change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1105874 1105874 0 0.0
RAM 179018 179018 0 0.0
bl702 lighting-app bl702+eth FLASH 659208 659208 0 0.0
RAM 135025 135025 0 0.0
bl702+wifi FLASH 836380 836380 0 0.0
RAM 124509 124509 0 0.0
bl706+mfd+rpc+littlefs FLASH 1068388 1068388 0 0.0
RAM 117349 117349 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 897826 897826 0 0.0
RAM 105660 105660 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 981540 981540 0 0.0
RAM 109844 109844 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 768324 768324 0 0.0
RAM 103392 103392 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 779944 779944 0 0.0
RAM 108560 108560 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 725548 725548 0 0.0
RAM 96932 96932 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 710024 710024 0 0.0
RAM 97140 97140 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 552246 552246 0 0.0
RAM 205120 205120 0 0.0
lock CC3235SF_LAUNCHXL FLASH 584562 584562 0 0.0
RAM 205352 205352 0 0.0
efr32 lock-app BRD4187C FLASH 959824 959824 0 0.0
RAM 126408 126408 0 0.0
BRD4338a FLASH 755272 755264 -8 -0.0
RAM 255732 255732 0 0.0
window-app BRD4187C FLASH 1053940 1053940 0 0.0
RAM 122604 122604 0 0.0
esp32 all-clusters-app c3devkit DRAM 102536 102536 0 0.0
FLASH 1769494 1769594 100 0.0
IRAM 83862 83862 0 0.0
m5stack DRAM 121388 121388 0 0.0
FLASH 1716750 1716790 40 0.0
IRAM 117051 117051 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 912220 912220 0 0.0
RAM 152898 152898 0 0.0
nxp contact mcxw71+release FLASH 632472 632472 0 0.0
RAM 64124 64124 0 0.0
lock mcxw71+release FLASH 742264 742264 0 0.0
RAM 65200 65200 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1661588 1661588 0 0.0
RAM 211216 211216 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1582916 1582916 0 0.0
RAM 208480 208480 0 0.0
light cy8ckit_062s2_43012 FLASH 1453876 1453876 0 0.0
RAM 197200 197200 0 0.0
lock cy8ckit_062s2_43012 FLASH 1486204 1486204 0 0.0
RAM 224920 224920 0 0.0
qpg lighting-app qpg6200+debug FLASH 820984 820984 0 0.0
RAM 127644 127644 0 0.0
lock-app qpg6200+debug FLASH 758316 758316 0 0.0
RAM 118604 118604 0 0.0
realtek light-switch-app rtl8777g FLASH 704040 704040 0 0.0
RAM 106676 106676 0 0.0
lighting-app rtl8777g FLASH 755624 755624 0 0.0
RAM 127056 127056 0 0.0
stm32 light STM32WB5MM-DK FLASH 468060 468060 0 0.0
RAM 141400 141400 0 0.0
telink bridge-app tl7218x FLASH 709988 709988 0 0.0
RAM 93472 93472 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 798900 798900 0 0.0
RAM 44032 44032 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 790114 790114 0 0.0
RAM 100776 100776 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 716272 716272 0 0.0
RAM 54260 54260 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 749628 749628 0 0.0
RAM 77408 77408 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 726418 726418 0 0.0
RAM 37008 37008 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 606406 606406 0 0.0
RAM 112584 112584 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 822834 822838 4 0.0
RAM 99172 99172 0 0.0

Copy link

codecov bot commented Aug 23, 2025

Codecov Report

❌ Patch coverage is 0% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.73%. Comparing base (233d3f7) to head (4ad005d).
⚠️ Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
...common/src/tls-certificate-management-instance.cpp 0.00% 15 Missing ⚠️
...ement-server/tls-certificate-management-server.cpp 0.00% 11 Missing ⚠️
...ificate-management-server/CertificateTableImpl.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #40552   +/-   ##
=======================================
  Coverage   50.72%   50.73%           
=======================================
  Files        1356     1356           
  Lines       99337    99334    -3     
  Branches    12876    12871    -5     
=======================================
+ Hits        50390    50397    +7     
+ Misses      48947    48937   -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

Unit tests for CertificateTableImpl
2 participants