emqx / emqx/emqx-auth-http

ACL expiration

Open
#54 6 comments 6 reactions 1 assignee View on GitHub

@hjianbo is already working on this.

Since Dec 26, 2017.

enhancement feature
Dominant language
Erlang
Stars
46
Forks
48
PR merge metrics
No merged PRs in 30d

Description

Once the broker has requested authorization from the http endpoint for a given client-id, it will never request it again until it restarts (losing the state) or the client reconnects by itself. The result is cached for ever. Makes sense, requesting the authorization for every message would be a huge performance hit.

Nonetheless, http provides the "Cache-Control" and "Expires" headers for controlling caching. In a dynamic environment, ACLs can change quite often and it would be cumbersome to restart the broker every time. I suggest this http plugin takes into account these headers. The user could effectively control caching as needed.

Unfortunately I don't write erlang so I can't help.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.