Skip to content

Restore PeerPropose ACL resource and remove ACL capability gates#115

Merged
cendhu merged 2 commits into
hyperledger:mainfrom
cendhu:fix-acl
May 19, 2026
Merged

Restore PeerPropose ACL resource and remove ACL capability gates#115
cendhu merged 2 commits into
hyperledger:mainfrom
cendhu:fix-acl

Conversation

@cendhu

@cendhu cendhu commented May 19, 2026

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix

Description

Commit c948ab2 removed all ACL resource constants and default policy mappings, but fabric-smart-client's fabricx membership service still depends on:

  • resources.Peer_Propose constant ("peer/Propose")
  • default ACL mapping Peer_Propose → CHANNELWRITERS
  • aclmgmt.ACLProvider / aclmgmt.NewACLProvider

Without these, FSC fails to compile and CheckACL would hit "Unmapped policy" at runtime.

Additionally, remove the capability gate that rejected ACLs when the application capability version was below V1_2. In Fabric-X, ACLs are always allowed regardless of capability version.

Changes:

  • core/aclmgmt/resources/resources.go: restore Peer_Propose constant
  • core/aclmgmt/defaultaclprovider.go: restore Peer_Propose → CHANNELWRITERS mapping
  • common/capabilities/application.go: ACLs() always returns true
  • common/channelconfig/application.go: remove capability validation gate
  • Update tests for always-allowed ACLs

@coveralls

coveralls commented May 19, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 82.683% (-0.02%) from 82.706% — cendhu:fix-acl into hyperledger:main

@cendhu cendhu changed the title Restore Peer_Propose ACL resource and remove ACL capability gates Restore PeerPropose ACL resource and remove ACL capability gates May 19, 2026
Commit c948ab2 removed all ACL resource constants and default policy
mappings, but fabric-smart-client's fabricx membership service still
depends on:

  - resources.Peer_Propose constant ("peer/Propose")
  - default ACL mapping Peer_Propose → CHANNELWRITERS
  - aclmgmt.ACLProvider interface

Changes:
  - core/aclmgmt/resources/resources.go: restore Peer_Propose constant
  - core/aclmgmt/defaultaclprovider.go: restore Peer_Propose → CHANNELWRITERS mapping
  - common/capabilities/application.go: ACLs() always returns true (no capability gating needed)
  - common/channelconfig/application.go: remove ACL capability check
  - Test updates for parallel test compliance
-e
Signed-off-by: Senthilnathan <cendhu@gmail.com>

@liran-funaro liran-funaro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should add it back to the sample YAML file

Signed-off-by: Senthilnathan <cendhu@gmail.com>
@cendhu

cendhu commented May 19, 2026

Copy link
Copy Markdown
Contributor Author

We should add it back to the sample YAML file

Done.

@liran-funaro liran-funaro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. I suggest @mbrandenburger testing it before merging.

@mbrandenburger mbrandenburger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested it locally and seems to work. Thanks

@cendhu cendhu merged commit 84a244b into hyperledger:main May 19, 2026
8 of 9 checks passed
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.

4 participants