nats-io / nats-server

High-Performance server for NATS.io, the cloud and edge native messaging system.
https://nats.io
Apache License 2.0
16.04k stars 1.42k forks source link

[FEAT] enable scoped users to have templates that are not limited to a subject token #5981

Closed aricart closed 1 month ago

aricart commented 1 month ago

Relaxed template logic to allow a template in a scoped user to be in line with the subject, enabling uses like KV_{{tag(foo)}}. This allows more flexibility for some arcane cases even if the tag requirement is that it will still be lower-cased.

Signed-off-by: Alberto Ricart alberto@synadia.com

derekcollison commented 1 month ago

Need to fix this..

image
ripienaar commented 1 month ago

nice, I'd be interested in exporting processUserPermissionsTemplate to provide a UI in nats auth that can show ACLs expanded during JWT info expanded just as the server would

aricart commented 1 month ago

nice, I'd be interested in exporting processUserPermissionsTemplate to provide a UI in nats auth that can show ACLs expanded during JWT info expanded just as the server would

I got that and better: https://github.com/aricart/aclgenerator