Merged
Conversation
This change removes the legacy routing controller, routing service, and microservice pub/sub tags and replaces them with a full NATS backend. New NATS support includes accounts, users, rules, instances, and operators, with corresponding models, managers, services (nats-service, nats-api-service, nats-auth-service, nats-hub-service), API routes, and server config templates. Microservices and application logic are updated to use NATS, and DB migrations (MySQL, Postgres, SQLite) plus RBAC and Swagger are updated for the new model. Tests are added/updated for the NATS controller, nats-service, system-naming, and yaml-parser, and routing-related tests are removed.
…d fog validation - Add GET /nats/bootstrap for K8s installer (operator JWT, seed, sys user creds); available only when Controller runs on Kubernetes control plane - Introduce NatsReconcileTasks table and worker job: enqueue reconcile work, claim-by-controller with staleness reclaim, run reconcileResolverArtifacts, delete completed tasks; add natsReconcileChunkSize, natsReconcileTaskStalenessSeconds, natsReconcileWorkerIntervalSeconds to config - Add JetStream store options: jsStorageSize and jsMemoryStoreSize on NatsInstances and hub, with schema/validation and server/leaf config template support - Allow NatsInstances.iofog_uuid to be null (hub without fog) - Link NatsUsers to NatsUserRules via nats_user_rule_id - Validate system fogs: block creation on Kubernetes, require natsMode=server and routerMode=interior, disallow changing isSystem; add ForbiddenError and 403 - When NATS access disabled for app, reconcile then delete account (order fix) - Add RBAC for natsBootstrap, Swagger for bootstrap and JetStream fields
…lookup logic improved with fallback to look up by also agent name
…vice account APIs now use appName in paths and require applicationName in YAML; list supports filtering by application; DB migrations add unique indexes on RbacServiceAccounts (application_id+name, microservice_uuid) and return 409 when a referenced SA is deleted. Bump Node to 24 (CI, Dockerfile, .nvmrc, engines), upgrade @kubernetes/client-node to ^1.4.0 and other dependencies, refactor NATS and k8s-client logic, add nats-auth and k8s-client tests, and document OpenBao in test/vault.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.