cello icon indicating copy to clipboard operation
cello copied to clipboard

Todo: Chaincode Mutual Lock

Open dodo920306 opened this issue 7 months ago • 4 comments

Add a chaincode organizational mutual. Prevent organizational members from operating simultaneously while allow other organizations manage their own chaincode.

dodo920306 avatar Apr 22 '26 00:04 dodo920306

/assign

Karman580 avatar May 12 '26 17:05 Karman580

Hi @dodo920306, I’d like to try working on this issue if it is still available.

From my understanding, the goal is to add an organization-level mutual lock for chaincode operations, so that members within the same organization cannot operate on chaincode simultaneously, while members from different organizations can still manage their own chaincode independently.

Before I start, may I clarify a few points?

  1. Which chaincode operations should be protected by this lock? For example: install, approve, commit, invoke, query, or only lifecycle operations?
  2. Should the lock be implemented at the API/backend level, or closer to the chaincode operation service layer?
  3. Is there an existing locking mechanism in Cello that I should reuse, or should I introduce a new organization-scoped lock?
  4. What should happen when another member from the same organization tries to operate while the lock is active — should the request wait, fail immediately, or return a specific error message?

My initial plan is to first trace the current chaincode operation flow, identify the right place to add the lock, then open a small PR with tests or documentation explaining the behavior.

Please let me know if this approach is reasonable.

DanielNg0729 avatar May 25 '26 02:05 DanielNg0729

Hi, I’d like to work on this issue. Please assign it to me.

Shantanu675 avatar Jul 05 '26 12:07 Shantanu675

@yeasy I would like to contribute to this issue, if its still open. Could you please assign it to me

atharva-vaish240 avatar Jul 29 '26 18:07 atharva-vaish240