Comments (6)
If you use an explicit allow block for the subs, they will be the only ones allowed.
from nats-server.
If you use an explicit allow block for the subs, they will be the only ones allowed.
Thank you for your reply , as i know the config allow block can not change when running, as my user almost unlimit , it 's difficult to add allow block to every user, my webside will auto create a userid when connecting like "order.0CFFFF3ADGAR.send",
now is working , so the only one ploblem is user can "order.*.send" subscribe all the id. A different way to solve this problem is reply request ,and ban all the subscribe.But this way i haven try. But juse ban The wildcards for the user may be the faster way to this. the config maybe
authorization: {
users: [
{ user: a, password: a },
{ user: b, password: b, permissions: {subscribe: "q", allow_wildcards : false } },
]
}
from nats-server.
Yes if the subjects are very dynamic wildcards help express the scope. In these case I can see a desire to restrict to literal subjects.
from nats-server.
Only real way we have today is to put your user in a different account and import let’s say orders.tenantid.> into the tenant account as orders.>
Accounts offer a much more usable way of achieving this really
from nats-server.
Only real way we have today is to put your user in a different account and import let’s say orders.tenantid.> into the tenant account as orders.>
Accounts offer a much more usable way of achieving this really
yes i have think of this for some times if i use orders.tenantid.> like order.0CFFFF3ADGAR.> to sub in my server,
user still can use order.*.> to get all the answer, We know that if user wants to get data ,It muse be allowed to subscribe.
What ever i do ,It may have some ways to get others data.or severs data. But for common use ,is enouth.Now my project Is working.my webside will auto create a userid when connecting like "order.0CFFFF3ADGAR.send",Its hard to add userid in config when connecting
from nats-server.
Accounts let your user not even think about it or know their ID and the wildcard subscribe will do the right thing.
from nats-server.
Related Issues (20)
- Performance degradation HOT 2
- Comment at end of config file is a parse error HOT 6
- Explicit server route connection retry does not backoff HOT 1
- Dynamic append headers for clients messages HOT 4
- Add support for inline configuration in CLI
- Embedded nats servers with opt.LogFile have no logging HOT 2
- Consumer not receiving messages when power off and restart, consumer's ack floor is ahead of stream's last sequence HOT 12
- Connection between Leafnode and Core NATS over satellite link fails to get established
- NATS Cluster - Dynamically del node HOT 3
- Durable Consumer Does not Consume From Last Message Per Subject HOT 3
- Abnormal NATS write load associated with a specific jetstream HOT 2
- Jetstream KV Cluster loosing data after nodes restart/ HOT 4
- Add the time zone designator to the time when `logtime_utc` is enabled
- WorkQueue jetstream messages are not deleted on non-leader nodes when used as mirror source
- Too many CPU/System resource used after many consumer created in idle cluster HOT 2
- Healthcheck fails when JetStream account is removed from configuration HOT 6
- Reusing Options struct leads to unexpected behavior HOT 3
- Streams getting marked as orphaned and deleted when transitioning from one non-clustered server to a cluster HOT 6
- Flood of STATSZ system events starting nodes in a large cluster
- MQTT Memory Leaks on consumer connections HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nats-server.