Skip to content

cert parse - #401

Draft
ugeshmunirjulu wants to merge 41 commits into
eclipse-score:mainfrom
ugeshmunirjulu:um_cert_parse
Draft

ugeshmunirjulu wants to merge 41 commits into
eclipse-score:mainfrom
ugeshmunirjulu:um_cert_parse

Conversation

@ugeshmunirjulu

Copy link
Copy Markdown
Contributor

Incremental scope relative to PR #251

This change adds configured-slot key generation and daemon-owned CSR processing. Certificate management, verification and trust-store capabilities already implemented in #251 are retained and selectively hardened.

Area Scope Description
Signing-key generation into configured slots New Implements direct slot generation and persistence, rejects occupied-slot overwrite, and reuses existing resource mappings and permission infrastructure.
Signed PKCS#10 CSR generation New Adds CSR generation using ECDSA, RSA-PSS or Ed25519.
CSR subjects and attributes New Supports ordered subjects, SANs, critical/custom extensions and challenge passwords.
DER CSR templates New Adds runtime substitution, required-attribute validation and ordered batch generation. Template storage uses ASN.1 DER, not JSON.
Certificate and bundle management Existing + hardening Retains DER/PEM parsing, installation, loading, export and slot clearing from #251; adds input and persistence safeguards.
Certificate verification Existing + corrections Retains chain/time verification, configurable anchors, termination policies and CRL revocation from #251; adds targeted CRL/time correctness fixes.
Trust-store management Existing + protection Retains membership, enable/disable, update acknowledgement and member CRL management from #251; rejects ordinary certificate saves into configured trust-store member slots.
CSR shared-memory transport New integration Routes CSR request/output data through existing shared-memory infrastructure, with commands, handles and status on the control plane.
Invalid-input and response handling Extended Adds CSR-specific validation and malformed-input/invalid-response recovery coverage; general key and response validation already existed.

Architectural boundary

  • The client forwards plain inputs and performs bounded transport/response checks without OpenSSL headers, types, calls or dependencies.
  • The daemon owns CSR parsing, validation, template processing, encoding, signing and signature verification.

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run --lockfile_mode=error //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.6.0) and connecting to it...
INFO: Invocation ID: c4a60b55-ea48-459e-ab1f-1863989c10e0
Computing main repo mapping: 
Computing main repo mapping: 
DEBUG: Rule 'abseil-cpp+' indicated that a canonical reproducible form can be obtained by modifying arguments integrity = "sha256-m3oGQwXp/ZTRJP+mzDWFkutCtdpYj7TgfQklSqQAhts="
DEBUG: Repository abseil-cpp+ instantiated at:
  <builtin>: in <toplevel>
Repository rule http_archive defined at:
  /home/runner/.bazel/external/bazel_tools/tools/build_defs/repo/http.bzl:431:31: in <toplevel>
Computing main repo mapping: 
DEBUG: Rule 'protobuf+' indicated that a canonical reproducible form can be obtained by modifying arguments integrity = "sha256-w6Cp7OiTLjHDtzbi2xixxC5wcM2biBOIsm0BqnHiTKI="
DEBUG: Repository protobuf+ instantiated at:
  <builtin>: in <toplevel>
Repository rule http_archive defined at:
  /home/runner/.bazel/external/bazel_tools/tools/build_defs/repo/http.bzl:431:31: in <toplevel>
Computing main repo mapping: 
DEBUG: Rule 'grpc+' indicated that a canonical reproducible form can be obtained by modifying arguments integrity = "sha256-CvN7gAlTEwtHwHW1ZoPuYL3D7aPDf8YAQZP1tWl1ggQ="
DEBUG: Repository grpc+ instantiated at:
  <builtin>: in <toplevel>
Repository rule http_archive defined at:
  /home/runner/.bazel/external/bazel_tools/tools/build_defs/repo/http.bzl:431:31: in <toplevel>
WARNING: For repository 'score_bazel_platforms', the root module requires module version score_bazel_platforms@0.1.2, but got score_bazel_platforms@1.1.0 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'rules_cc', the root module requires module version rules_cc@0.2.22, but got rules_cc@0.2.25 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'flatbuffers', the root module requires module version flatbuffers@25.12.19, but got flatbuffers@25.12.19.bcr.1 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'score_process_description', the root module requires module version score_process_description@2.2.2, but got score_process_description@2.2.3 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
Computing main repo mapping: 
Loading: 
Loading: 1 packages loaded
Loading: 1 packages loaded
    currently loading: 
Loading: 1 packages loaded
    currently loading: 
Loading: 1 packages loaded
    currently loading: 
WARNING: Target pattern parsing failed.
ERROR: Skipping '//:license-check': no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/inc_security_crypto/inc_security_crypto/BUILD
ERROR: no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/inc_security_crypto/inc_security_crypto/BUILD
INFO: Elapsed time: 12.262s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

Add signed PKCS#10 CSR generation with ECDSA, RSA-PSS and Ed25519,
ordered subjects, SANs, critical/custom extensions, challenge passwords,
and DER templates with runtime substitution and batch processing.

Keep OpenSSL processing in the daemon and use provider-neutral client
inputs with bounded shared-memory transport and response validation.

Generate keys directly into configured slots with occupied-slot
protetion and persistence for reload across daemon restarts.

Harden existing certificate parsing and fingerprint-based storage,
protct trust-store members from ordinary saves, and tighten CRL/time
handling without introducing new trust or verification policy APIs.

Add regression and recovery coverage, independent offline CSR
verification, integration configuration, build wiring and documentation.

Validation: CRLF-aware whitespace checks passed; builds/tests not rerun.

This branch is waiting to be deployed

1 waiting deployment
workflow-approval — b3302f0a Waiting Nov 12, 2026 by ugeshmunirjulu via Build and Test x86_64-qnx / approval #948
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants