Skip to content

Add xPKI certifier server configuration and seed certificate to enable certificate procurement for SSA-CPC#138

Merged
Sidsohail merged 33 commits intodevelopfrom
feature/RDK-61060
Apr 22, 2026
Merged

Add xPKI certifier server configuration and seed certificate to enable certificate procurement for SSA-CPC#138
Sidsohail merged 33 commits intodevelopfrom
feature/RDK-61060

Conversation

@Sidsohail
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 5, 2026 03:57
@Sidsohail Sidsohail requested a review from a team as a code owner March 5, 2026 03:57
@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/docker-device-mgt-service-test/138/rdkcentral/docker-device-mgt-service-test

  • Commit: b56859c

Report detail: gist'

Comment thread mock-xconf/xpki-certifier.js Fixed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the container-based test environment for RDK-61060 by adding (1) optional PKCS#11 support to the native-platform mTLS certificate flow and (2) a new mock XPKI Certifier HTTPS service in the mock-xconf container, exposed via docker-compose.

Changes:

  • Add ENABLE_PKCS11 plumbing and PKCS#11 setup steps to native-platform startup + certificate generation flow.
  • Add a new xpki-certifier.js service to mock-xconf (port 50054) and generate a dedicated Test-RDK-xpki CA hierarchy for signing CSRs.
  • Update Dockerfiles/compose to include required scripts/deps and expose the new service port.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
native-platform/entrypoint.sh Exports ENABLE_PKCS11 and documents PKCS#11-aware cert setup.
native-platform/certs.sh Improves server CA import and adds PKCS#11 OpenSSL/token setup + reference P12 handling.
native-platform/Dockerfile Pins rdk-cert-config and installs PKCS#11 dependencies + symlinks setup scripts.
mock-xconf/xpki-certifier.js New HTTPS mock XPKI certifier service that signs CSRs using an XPKI ICA.
mock-xconf/entrypoint.sh Starts the new XPKI certifier service.
mock-xconf/certs.sh Generates a Test-RDK-xpki root/ICA for the XPKI certifier.
mock-xconf/Dockerfile Copies the new service into the image and documents port 50054.
compose.yaml Publishes port 50054 to the host for the new service.

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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread mock-xconf/xpki-certifier.js
Comment thread native-platform/certs.sh
Comment thread native-platform/certs.sh
Comment thread mock-xconf/certs.sh Outdated
Comment thread mock-xconf/xpki-certifier.js Outdated
Comment thread mock-xconf/xpki-certifier.js Outdated
Comment thread mock-xconf/xpki-certifier.js
Copilot AI review requested due to automatic review settings March 5, 2026 07:38
@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/docker-device-mgt-service-test/138/rdkcentral/docker-device-mgt-service-test

  • Commit: e3ecff4

Report detail: gist'

@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/docker-device-mgt-service-test/138/rdkcentral/docker-device-mgt-service-test

  • Commit: a887d08

Report detail: gist'

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 8 out of 8 changed files in this pull request and generated 7 comments.


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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread mock-xconf/certs.sh Outdated
Comment thread compose.yaml Outdated
Comment thread mock-xconf/entrypoint.sh Outdated
Comment thread mock-xconf/xpki-certifier.js Outdated
Comment thread mock-xconf/xpki-certifier.js Outdated
Comment thread mock-xconf/xpki-certifier.js Outdated
Comment thread mock-xconf/entrypoint.sh Outdated
@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## WARNING: A Blackduck scan failure has been waived

A prior failure has been upvoted

  • Upvote reason: Spurious match, OK

  • Commit: a887d08
    '

Copilot AI review requested due to automatic review settings March 9, 2026 05:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 8 out of 8 changed files in this pull request and generated 12 comments.


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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread native-platform/entrypoint.sh Outdated
Comment thread native-platform/entrypoint.sh Outdated
Comment thread mock-xconf/Dockerfile Outdated
Comment thread mock-xconf/entrypoint.sh Outdated
Comment thread mock-xconf/certs.sh Outdated
Comment thread native-platform/entrypoint.sh Outdated
Comment thread mock-xconf/entrypoint.sh Outdated
Comment thread mock-xconf/certs.sh Outdated
Comment thread native-platform/certs.sh Outdated
Comment thread native-platform/Dockerfile Outdated
Copilot AI review requested due to automatic review settings March 9, 2026 06:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 8 out of 8 changed files in this pull request and generated 10 comments.


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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread native-platform/certs.sh
Comment thread mock-xconf/certs.sh Outdated
Comment thread mock-xconf/xpki-certifier.js Outdated
Comment thread mock-xconf/xpki-certifier.js Outdated
Comment thread native-platform/certs.sh
Comment thread mock-xconf/xpki-certifier.js Outdated
Comment thread native-platform/entrypoint.sh Outdated
Comment thread native-platform/Dockerfile
Comment thread native-platform/Dockerfile Outdated
Comment thread native-platform/Dockerfile
Copilot AI review requested due to automatic review settings March 10, 2026 04:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 8 out of 8 changed files in this pull request and generated 6 comments.


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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread mock-xconf/certs.sh Outdated
Comment thread mock-xconf/certs.sh Outdated
Comment thread mock-xconf/xpki-certifier.js Outdated
Comment thread mock-xconf/xpki-certifier.js
Comment thread native-platform/entrypoint.sh Outdated
Comment thread native-platform/certs.sh
Copilot AI review requested due to automatic review settings March 10, 2026 08:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 8 out of 8 changed files in this pull request and generated 7 comments.


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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread native-platform/entrypoint.sh Outdated
Comment thread native-platform/certs.sh
Comment thread mock-xconf/xpki-certifier.js Outdated
Comment thread native-platform/entrypoint.sh Outdated
Comment thread mock-xconf/certs.sh Outdated
Comment thread compose.yaml
Comment thread mock-xconf/entrypoint.sh
shibu-kv
shibu-kv previously approved these changes Mar 11, 2026
Copilot AI review requested due to automatic review settings March 23, 2026 10:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 8 out of 8 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 native-platform/Dockerfile
Comment thread mock-xconf/xpki-certifier.js Outdated
Comment thread mock-xconf/certs.sh Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 8 out of 8 changed files in this pull request and generated no new comments.


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

Copilot AI review requested due to automatic review settings April 13, 2026 12:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 8 out of 8 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

mock-xconf/entrypoint.sh:66

  • The entrypoint backgrounds multiple Node processes and then PID 1 becomes an infinite while true loop, but there’s no trap to forward SIGTERM/SIGINT and gracefully stop child processes (including xpki-certifier). This can cause slow/unclean container shutdowns and orphaned processes. Add a trap that kills/waits for background jobs before exiting.
## Keep the container running . Running an independent process will help in simulating scenarios of webservices going down and coming up
while true ; do echo "Mocked webservice heartbeat ..." && sleep 5 ; done


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

Comment thread mock-xconf/xpki-certifier.js
Copilot AI review requested due to automatic review settings April 13, 2026 14:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 8 out of 8 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 mock-xconf/entrypoint.sh
Comment thread test_docker.py
Copilot AI review requested due to automatic review settings April 14, 2026 03:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 8 out of 8 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 mock-xconf/certs.sh
Comment thread mock-xconf/xpki-certifier.js
“sahmad154” and others added 3 commits April 14, 2026 05:40
- Remove 30s wait loop for xPKI seed certificate
- Seed cert check/copy moved to test execution (ci-run-pkcs11-tests.sh)
- Faster container startup - no blocking on test-specific files
Copilot AI review requested due to automatic review settings April 15, 2026 05:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 7 out of 7 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_docker.py
Comment thread mock-xconf/xpki-certifier.js
Comment thread mock-xconf/certs.sh
Comment thread mock-xconf/certs.sh Outdated
Comment thread mock-xconf/certs.sh Outdated
- Remove unnecessary cert copying to /etc/xconf/xpki-certs/
- Use original cert paths from /etc/pki/Test-RDK-root/ directly
- Change seed cert validity: 30 days → 1 day
- Change operational cert validity: 90 days → 1 day (default fallback)
- All tests complete within seconds, 1-day validity is sufficient
@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/docker-device-mgt-service-test/138/rdkcentral/docker-device-mgt-service-test

  • Commit: 70597a0

Report detail: gist'

@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/docker-device-mgt-service-test/138/rdkcentral/docker-device-mgt-service-test

  • Commit: 70597a0

Report detail: gist'

@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## WARNING: A Blackduck scan failure has been waived

A prior failure has been upvoted

  • Upvote reason: OK - boilerplate match

  • Commit: 70597a0
    '

Copy link
Copy Markdown
Contributor

@shibu-kv shibu-kv left a comment

Choose a reason for hiding this comment

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

Approving from container changes perspective. Please get approval from @vbaska for the mTLS certs related mocking.

@Sidsohail Sidsohail merged commit 5673843 into develop Apr 22, 2026
9 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 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.

6 participants