Skip to content

[mock-orderer] common-root-cas workaround fix#402

Closed
dean-amar wants to merge 15 commits into
hyperledger:mainfrom
dean-amar:root-ca-workaround-fix
Closed

[mock-orderer] common-root-cas workaround fix#402
dean-amar wants to merge 15 commits into
hyperledger:mainfrom
dean-amar:root-ca-workaround-fix

Conversation

@dean-amar
Copy link
Copy Markdown
Contributor

@dean-amar dean-amar commented Mar 3, 2026

Type of change

  • Improvement (improvement to code, performance, etc)
  • Test update
  • Documentation update

Description

Removes the temporary common-ca-cert-paths configuration field and implements proper handling of root CA certificates. Static CA certificates from the initial YAML configuration are now preserved in the ConnectionManager and appended to all organizations' CA certificates during config block updates.

Related issues

… right orderer orgs and their root CAs properly.

For testing, we initialize the ordererconn with static root CAs from the first organizationMaterials we get which imitate YAMLs.

So thats not good, because if we ever set from the yaml and not config-block it will be accepted as long as the service lives.

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@dean-amar dean-amar added documentation Improvements or additions to documentation code-hygiene labels Mar 3, 2026
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@dean-amar dean-amar marked this pull request as ready for review March 3, 2026 13:35
@dean-amar dean-amar requested review from cendhu and liran-funaro and removed request for liran-funaro March 3, 2026 13:35
@dean-amar dean-amar changed the title [Orderer] Root CAs workaround fix [Orderer] common-root-cas workaround fix Mar 3, 2026
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@coveralls
Copy link
Copy Markdown

coveralls commented Mar 3, 2026

Coverage Status

coverage: 90.285% (-0.05%) from 90.335%
when pulling 2845dd6 on dean-amar:root-ca-workaround-fix
into 59fc208 on hyperledger:main.

…ns before initializing the connection manager.

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
…testing logic.

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
…ed redundant information.

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@dean-amar dean-amar requested review from cendhu and liran-funaro March 9, 2026 16:43
Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@liran-funaro liran-funaro marked this pull request as draft March 16, 2026 07:31
@liran-funaro
Copy link
Copy Markdown
Contributor

This PR is on hold until we make meaningful progress on PR

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@dean-amar
Copy link
Copy Markdown
Contributor Author

dean-amar commented Mar 16, 2026

This PR is on hold until we make meaningful progress on PR

This PR is now ready for review.

@dean-amar dean-amar marked this pull request as ready for review March 16, 2026 13:04
@liran-funaro
Copy link
Copy Markdown
Contributor

liran-funaro commented Mar 17, 2026

@dean-amar please rebase

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@dean-amar
Copy link
Copy Markdown
Contributor Author

@dean-amar please rebase

Done.

Copy link
Copy Markdown
Contributor

@liran-funaro liran-funaro left a comment

Choose a reason for hiding this comment

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

This PR doesn't really removes the common CA paths, it just moves it to another configuration area, disguising it under the organization's root CAs.
In practice, it uses the organizations' root CAs as a the common root CAs.
We should aim to remove the use of the static root CAs.

@dean-amar
Copy link
Copy Markdown
Contributor Author

Since this PR and #427 edit some of the same files, and the latter introduces a completely new code architecture, I'll wait for it to be merged.

@liran-funaro
Copy link
Copy Markdown
Contributor

@dean-amar #427 was merged. You can rebase.

@dean-amar dean-amar marked this pull request as draft April 5, 2026 11:36
@dean-amar dean-amar changed the title [Orderer] common-root-cas workaround fix [mock-orderer] common-root-cas workaround fix Apr 12, 2026
@dean-amar
Copy link
Copy Markdown
Contributor Author

I’m closing this PR. The reason is explained in #339.

@dean-amar dean-amar closed this May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-hygiene documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Orderer setup] Remove common-ca-cert-paths

3 participants