JSPM

@tunnlo/enterprise

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q56980F
  • License MIT

Enterprise features for Tunnlo: multi-tenant, RBAC, audit logging

Package Exports

  • @tunnlo/enterprise

Readme

@tunnlo/enterprise

Enterprise features for Tunnlo: multi-tenancy, RBAC, and audit logging.

Part of the Tunnlo project -- a real-time data-to-agent bridge with intelligent filtering.

Installation

npm install @tunnlo/enterprise

Usage

import { TenantManager, RBACManager, AuditLogger, FileAuditStore } from '@tunnlo/enterprise';

// Multi-tenancy
const tenants = new TenantManager();
tenants.addTenant({ id: 'acme', name: 'Acme Corp', config: {} });

// Role-based access control
const rbac = new RBACManager();
rbac.addRole({ name: 'operator', permissions: ['pipeline:read', 'pipeline:start'] });
rbac.authorize(user, 'pipeline:start');

// Audit logging
const auditStore = new FileAuditStore('/var/log/tunnlo/audit.jsonl');
const audit = new AuditLogger(auditStore);
await audit.log({ actor: 'admin', action: 'pipeline.start', resource: 'prod-pipeline' });

API

Multi-Tenancy

  • TenantManager -- manages tenant lifecycle and configuration
  • TenantIsolationFilter -- pipeline filter that enforces tenant data isolation

Access Control

  • RBACManager -- role-based access control with permission checks

Audit Logging

  • AuditLogger -- records actions and events for compliance
  • FileAuditStore -- file-backed audit log storage

License

MIT