Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Advanced Security

This chapter covers advanced security topics for General Bots, including Role-Based Access Control (RBAC), organization multi-tenancy, knowledge base security, and compliance requirements.

Overview

General Bots implements a comprehensive security model designed for enterprise deployments:

  • Multi-tenant Architecture: Support for multiple organizations with complete data isolation
  • Role-Based Access Control (RBAC): Fine-grained permissions at every level
  • Knowledge Base Security: Folder-level permissions with Qdrant vector search integration
  • SOC 2 Type II Compliance: Enterprise-grade security controls and audit logging

Security Layers

┌─────────────────────────────────────────────────────────────┐
│                    Organization Layer                        │
│  ┌─────────────────────────────────────────────────────┐    │
│  │                    Bot Layer                         │    │
│  │  ┌─────────────────────────────────────────────┐    │    │
│  │  │              App Layer                       │    │    │
│  │  │  ┌─────────────────────────────────────┐    │    │    │
│  │  │  │        Resource Layer                │    │    │    │
│  │  │  │  (KB folders, files, data)          │    │    │    │
│  │  │  └─────────────────────────────────────┘    │    │    │
│  │  └─────────────────────────────────────────────┘    │    │
│  └─────────────────────────────────────────────────────┘    │
└─────────────────────────────────────────────────────────────┘

Key Concepts

Organizations

Organizations are the top-level tenant in General Bots. Each organization has:

  • Its own subscription and billing
  • Isolated user base and permissions
  • Separate bots and knowledge bases
  • Independent quota management

Users can belong to multiple organizations and switch between them.

Roles and Permissions

General Bots uses a role-based model with predefined roles:

RoleDescription
Global AdminFull access to all resources
Billing AdminManage subscriptions and payments
User AdminManage users, groups, and role assignments
Bot AdminCreate and configure bots
KB ManagerManage knowledge bases and permissions
App DeveloperCreate and publish apps (Forms, Sites, Projects)
EditorEdit content and use apps
ViewerRead-only access

Knowledge Base Security

KB folders can have individual permission settings:

  • Public: Anyone can access
  • Authenticated: Logged-in users only
  • Role-based: Users with specific roles
  • Group-based: Users in specific groups
  • User-based: Named individual users

These permissions are enforced during vector search, ensuring users only see content they’re authorized to access.

In This Chapter

Best Practices

  1. Principle of Least Privilege: Assign the minimum permissions necessary
  2. Use Groups: Manage permissions through groups rather than individual users
  3. Regular Audits: Review permissions and access logs periodically
  4. Secure KB by Default: Set restrictive default permissions on sensitive folders
  5. Enable Audit Logging: Track all permission changes and access attempts