Skip to content

RDKEMW-15146 : Introduce mechanism to unlock secure debug properties - /opt/rfc.properties#183

Merged
KTirumalaSrihari merged 44 commits into
developfrom
RDKEMW-13335
Mar 30, 2026
Merged

RDKEMW-15146 : Introduce mechanism to unlock secure debug properties - /opt/rfc.properties#183
KTirumalaSrihari merged 44 commits into
developfrom
RDKEMW-13335

Conversation

@KTirumalaSrihari

Copy link
Copy Markdown
Contributor

Reason for change: to enable debug services, only if the build vairant is labSigned and device is test type or if the build type is Dev
Test Procedure: Flash the image and check for enabling secure debug services (override RFC properties from /etc/rfc.properties)
Risks: Low

Copilot AI review requested due to automatic review settings March 9, 2026 07:14
@KTirumalaSrihari
KTirumalaSrihari requested a review from a team as a code owner March 9, 2026 07:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Introduces a gating mechanism to allow local RFC override (via the persistence rfc.properties file) only when “secure debug services” are unlocked, based on build type and device/test/labsigned conditions.

Changes:

  • Adds RFC key support for a device type property and a device-type enum.
  • Introduces isSecureDbgSrvUnlocked() and getDeviceTypeRFC() to decide whether secure debug services (and local RFC override) can be enabled.
  • Updates initialization and request processing to use the new unlock check when deciding to use the persistence RFC override file.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
rfcMgr/rfc_xconf_handler.h Adds RFC key/constants and declarations for new secure-debug unlock helpers.
rfcMgr/rfc_xconf_handler.cpp Implements unlock/device-type logic and gates persistence RFC override usage on the new unlock check.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rfcMgr/rfc_xconf_handler.h Outdated
Comment thread rfcMgr/rfc_xconf_handler.h Outdated
Comment thread rfcMgr/rfc_xconf_handler.cpp Outdated
Comment thread rfcMgr/rfc_xconf_handler.cpp Outdated
Comment thread rfcMgr/rfc_xconf_handler.cpp
Copilot AI review requested due to automatic review settings March 9, 2026 07:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rfcMgr/rfc_xconf_handler.cpp Outdated
Comment thread rfcMgr/rfc_xconf_handler.cpp Outdated
Comment thread rfcMgr/rfc_xconf_handler.cpp Outdated
Comment thread rfcMgr/rfc_xconf_handler.cpp
Comment thread rfcMgr/rfc_xconf_handler.cpp
Copilot AI review requested due to automatic review settings March 9, 2026 08:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rfcMgr/rfc_xconf_handler.cpp
Comment thread rfcMgr/rfc_xconf_handler.cpp Outdated
Comment thread rfcMgr/rfc_xconf_handler.cpp Outdated
Comment thread rfcMgr/rfc_xconf_handler.cpp
@KTirumalaSrihari
KTirumalaSrihari marked this pull request as draft March 9, 2026 10:33
@KTirumalaSrihari KTirumalaSrihari changed the title RDKEMW-15146 : Introduce mechanism to unlock secure debug properties - /etc/rfc.properties RDKEMW-15146 : Introduce mechanism to unlock secure debug properties - /opt/rfc.properties Mar 16, 2026
@KTirumalaSrihari
KTirumalaSrihari marked this pull request as ready for review March 16, 2026 09:38
Copilot AI review requested due to automatic review settings March 16, 2026 09:38
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/functional-tests/tests/test_rfc_override_rfc_prop.py Outdated
Comment thread test/functional-tests/tests/test_rfc_override_rfc_prop.py Outdated
Comment thread rfcMgr/gtest/gtest_main.cpp
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 17, 2026 09:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/functional-tests/tests/test_rfc_override_rfc_prop.py
Comment thread test/functional-tests/tests/test_rfc_override_rfc_prop.py Outdated
Comment thread rfcMgr/rfc_xconf_handler.cpp
Comment thread rfcMgr/gtest/gtest_main.cpp
Comment thread rfcMgr/rfc_xconf_handler.cpp Outdated
Comment thread test/functional-tests/tests/test_rfc_override_rfc_prop.py Outdated
Copilot AI review requested due to automatic review settings March 17, 2026 10:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/functional-tests/tests/test_rfc_override_rfc_prop.py Outdated
Comment thread test/functional-tests/tests/test_rfc_override_rfc_prop.py
Comment thread rfcMgr/gtest/gtest_main.cpp
Copilot AI review requested due to automatic review settings March 17, 2026 10:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/functional-tests/tests/test_rfc_override_rfc_prop.py Outdated
Comment thread rfcMgr/gtest/gtest_main.cpp
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 17, 2026 10:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rfcMgr/rfc_xconf_handler.cpp
Comment thread test/functional-tests/tests/test_rfc_override_rfc_prop.py
Copilot AI review requested due to automatic review settings March 17, 2026 13:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/functional-tests/tests/test_rfc_override_rfc_prop.py
Comment thread rfcMgr/rfc_xconf_handler.cpp
Comment thread rfcMgr/rfc_xconf_handler.cpp
@KTirumalaSrihari
KTirumalaSrihari merged commit cc6d71d into develop Mar 30, 2026
13 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants