carverauto / threadr

🌎 OSS Real-time AI Data Analysis with GraphDB integration. 🔍
Apache License 2.0
16 stars 1 forks source link

NATS: Auto-provision NATS resources #112

Open mfreeman451 opened 2 months ago

mfreeman451 commented 2 months ago

When we create a new user and assign them an 'instanceId', we need to create a new account in NATS JetStream, with a user that contains the NKEY to auth.

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

Another possible auth strategy, Auth Callout - https://docs.nats.io/running-a-nats-service/configuration/securing_nats/auth_callout

Need to look into running NATS in operator mode.