Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ledger.ACLOk() should return false by default #437

Open
xyzj opened this issue Nov 7, 2024 · 1 comment
Open

Ledger.ACLOk() should return false by default #437

xyzj opened this issue Nov 7, 2024 · 1 comment

Comments

@xyzj
Copy link
Contributor

xyzj commented Nov 7, 2024

my acl rules :

user01:
acl:
down/+/user01/#: 1
up/+/user01/#: 2

I want user01 to only be able to send messages with topic like 'up/json/user01/abc', 'up/base64/user01/def', but infact, user01 can send any topic, even does not start with 'up'.
So I think Ledger.ACLOk() should return false by default, just like Ledger.AuthOK()

@werbenhu
Copy link
Member

werbenhu commented Jan 7, 2025

@xyzj In my opinion, Auth ledger is just a hook plugin. You can treat it as a demo, and I think you can refer to its implementation to define a completely new auth hook yourself, allowing you to customize your own ACL rules as needed.

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

No branches or pull requests

2 participants