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

dynamic url-based permissions #5184

Open
tarasglek opened this issue Mar 7, 2024 · 1 comment
Open

dynamic url-based permissions #5184

tarasglek opened this issue Mar 7, 2024 · 1 comment
Labels
proposal Enhancement idea or proposal

Comments

@tarasglek
Copy link

Proposed change

In web service world it's easy to write a proxy that does url-based rules to enforce authorization in a single place. Eg user joe can only access ws://myservice/r/parent.topic.* or ws://myservice/[rw]+/.topic.

would be great that if nats server could offer a feature for dynamic url-based permissions. Eg a url that nats server receives would define rw access and topic pattern.

We specced out a similar feature in wsbroad vi/wsbroad#2 (comment)

This would allow defining who can subscribe/write to a topic entirely outside of nats

Use case

  • http-friendly proxy-based policies

Contribution

no

@tarasglek tarasglek added the proposal Enhancement idea or proposal label Mar 7, 2024
@ripienaar
Copy link
Contributor

I suspect we're unlikely to support such a scheme in the server itself - there are always more to support! - we have created a way to externalize authentication to your own code that could solve this.

https://docs.nats.io/running-a-nats-service/configuration/securing_nats/auth_callout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Enhancement idea or proposal
Projects
None yet
Development

No branches or pull requests

2 participants