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

Gun ignores '/' at the end of soul policy #1291

Open
ViteOrder opened this issue Nov 17, 2022 · 0 comments
Open

Gun ignores '/' at the end of soul policy #1291

ViteOrder opened this issue Nov 17, 2022 · 0 comments

Comments

@ViteOrder
Copy link

Heres a senario:

{
  "mention": {
     // I want users to be able to write
    "posts": {
       // here
    },
    "comments": {
      // and here
    },
    // but not here, in the mention soul itself
  } 
}

I should be able to solve this using one certificate; one that requires the soul to start with mention/. This should work because ~pub/mention and ~pub/mention/ are two different nodes
But, as shown by this jsbin, it does not. The policy {"*":"mention/"} allows people to write to ~pub/mention

In the usecase I showed this can easily be worked around by using two certificates, but I think I think this should be fixed regardless

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

1 participant