Skip to content

fix(ccaas): use peer-specific archive name to prevent package overwrite#699

Open
hellokitty09 wants to merge 1 commit into
hyperledger-labs:mainfrom
hellokitty09:fix/ccaas-peer-specific-package-653
Open

fix(ccaas): use peer-specific archive name to prevent package overwrite#699
hellokitty09 wants to merge 1 commit into
hyperledger-labs:mainfrom
hellokitty09:fix/ccaas-peer-specific-package-653

Conversation

@hellokitty09
Copy link
Copy Markdown

In CCaaS setups with multiple peers, the chaincode connection package ($CHAINCODE_LABEL.tar.gz) was being overwritten during the packaging loop because the filename didn't include the peer name. This caused all peers to install the last package, routing all chaincode requests to the last CCaaS container.

Changes:

  • chaincodePackageCCaaS(): archive name now includes peer name (${CHAINCODE_LABEL}_${PEER_NAME}.tar.gz)
  • chaincodeInstall(): detects peer-specific package if available, falls back to shared package for non-CCaaS chaincodes

TLS support is fully preserved.

Fixes #653

In CCaaS setups with multiple peers, the chaincode connection package
($CHAINCODE_LABEL.tar.gz) was being overwritten during the packaging
loop because the filename didn't include the peer name. This caused all
peers to install the last package, routing all chaincode requests to
the last CCaaS container.

Changes:
- chaincodePackageCCaaS(): archive name now includes peer name
  (${CHAINCODE_LABEL}_${PEER_NAME}.tar.gz)
- chaincodeInstall(): detects peer-specific package if available,
  falls back to shared package for non-CCaaS chaincodes

TLS support is fully preserved.

Fixes hyperledger-labs#653

Signed-off-by: hellokitty09 <183717166+hellokitty09@users.noreply.github.com>
@hellokitty09 hellokitty09 force-pushed the fix/ccaas-peer-specific-package-653 branch from 61b6b0e to 72098a0 Compare April 11, 2026 09:18
@joaormatos
Copy link
Copy Markdown

Hi,

This PR is attempting to solve the same problem as PR #680, which initially had a similar approach to this one — one package per peer — but has since been revised to address the fundamental issue with that approach that I described here: #653 (comment)

Also note the ensuing discussion about the distinction between:

A) using TLS at the network level, which is an important feature to maintain, and

B) using TLS in Peer-to-CCaaS connections, which is independent of the above and has very limited usefulness in typical Fablo use cases while introducing significant complexity and overhead.

PR #680 should currently fix issue #653 while preserving A and removing B.

Having optional support for B would be nice, but it may not be worth it considering the development and maintenance cost.

1 similar comment
@joaormatos
Copy link
Copy Markdown

Hi,

This PR is attempting to solve the same problem as PR #680, which initially had a similar approach to this one — one package per peer — but has since been revised to address the fundamental issue with that approach that I described here: #653 (comment)

Also note the ensuing discussion about the distinction between:

A) using TLS at the network level, which is an important feature to maintain, and

B) using TLS in Peer-to-CCaaS connections, which is independent of the above and has very limited usefulness in typical Fablo use cases while introducing significant complexity and overhead.

PR #680 should currently fix issue #653 while preserving A and removing B.

Having optional support for B would be nice, but it may not be worth it considering the development and maintenance cost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: CCaaS uses only the last chaincode

2 participants