Git Product home page Git Product logo

Comments (6)

GopherJ avatar GopherJ commented on September 12, 2024

hello, any updates on this?

from emqx-auth-http.

HJianBo avatar HJianBo commented on September 12, 2024

Hi, guys. Thanks for your feedback. I'll implement this feature at v3.2.0

A workaround before v3.2.0 is changing the acl_cache_ttl of emqx.conf:

## The time after which an ACL cache entry will be deleted
##
## Value: Duration
## Default: 1 minute
acl_cache_ttl = 1m

from emqx-auth-http.

GopherJ avatar GopherJ commented on September 12, 2024

hello @HJianBo , how to make the cache works? I just tested and find that even when I have the following settings in my emqx.conf:

## Whether to enable ACL cache.
## If enabled, ACLs roles for each client will be cached in the memory
enable_acl_cache = on
## The maximum count of ACL entries can be cached for a client.
acl_cache_max_size = 32
## The time after which an ACL cache entry will be deleted
acl_cache_ttl = 1m
bridge.aws.queue.mem_cache = on

when I use tcpdump to see the traffic, I can still see every time when I publish a message, it's sending requests -> /emqx/auth, /emqx/superuser, /emqx/acl.

what I did:

mosquitto_sub -t test -u jiangch1 -P jiangch1

and I use this to publish:

mosquitto_pub -t test -u jiangch1 -P jiangch1 -m test -k 60

Any ideas to make it works?

from emqx-auth-http.

GopherJ avatar GopherJ commented on September 12, 2024

@HJianBo sorry I find that when I use mqtt.js it's ok, it will just send the auth request the fist time. Cool!

One question, can I know when [email protected] will be release?

from emqx-auth-http.

HJianBo avatar HJianBo commented on September 12, 2024

Maybe two weeks later. We enhance a numbers of new features, so I can't give a explicit deadline.

If it released I'll mention it here

from emqx-auth-http.

GopherJ avatar GopherJ commented on September 12, 2024

@HJianBo great thanks!

from emqx-auth-http.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.