Skip to content

ACL permission changes takes few seconds to affect #4031

@prashant-shahi

Description

@prashant-shahi

What version of Dgraph are you using?

Dgraph version   : v1.1.0-47-gcd0e2086
Dgraph SHA-256   : 31dde15b917ec6f70ae31480c87012a33a1a2e29bb49c8c649824345dd9d99a0
Commit SHA-1     : cd0e2086
Commit timestamp : 2019-09-19 13:43:55 +0530
Branch           : master
Go version       : go1.12.9

Have you tried reproducing the issue with the latest release?

YES

Steps to reproduce the issue (command/config used to run Dgraph).

Dgraph cluster was brought up using the docker-compose yaml file in dgraph directory.

  • Bring up the Dgraph cluster with ACL feature turned on.
  • Create a new user and a new group. Add the newly created user to the new group.
  • Give permission to read/write/modify.
  • Try to read/write/modify right afterward.

For the ACL tests of Dgraph clients currently, the delay is set to 6 seconds, which does get the work done.

Expected behaviour and actual result.

Expected for ACL permission change to affect as soon as the response of success is relayed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementSomething could be better.status/acceptedWe accept to investigate/work on it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions