You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -4,33 +4,43 @@ This document describes the organizational data-based authorization system integ
4
4
5
5
## Overview
6
6
7
-
The authorization system provides fine-grained access control for bot commands based on organizational data. It integrates with hierarchical organizational structures and supports multiple authorization levels including user-specific, team-based, and organization-based permissions.
7
+
The authorization system provides fine-grained access control for bot commands based on organizational data. It now uses a modern, indexed data structure that provides fast lookups and comprehensive organizational hierarchy information. The system supports multiple authorization levels including user-specific, team-based, and organization-based permissions.
8
8
9
9
## Key Features
10
10
11
-
-**Hierarchical Organization Data**: Processes nested organizational structures with teams and employees
11
+
-**Indexed Organization Data**: Uses pre-computed indexes for O(1) lookups and fast authorization checks
12
+
-**Complete Organizational Hierarchy**: Shows full ancestry chain including teams, organizations, pillars, and team groups
12
13
-**Multiple Authorization Levels**: Support for user UID, team membership, and organization-based permissions
13
14
-**Hot Reload**: Automatic updates when organizational data or authorization config changes
14
-
-**Enhanced Troubleshooting**: Comprehensive `whoami` command showing user permissions and available commands
-**`pkg/orgdata-core/`**: Reusable core package for organizational data access
41
+
-**`pkg/orgdata/`**: Slack-specific wrapper around core package
42
+
-**`pkg/slack/`**: Slack command handlers with authorization middleware
43
+
34
44
## Setup
35
45
36
46
### 1. Command Line Flags
@@ -46,36 +56,74 @@ Add these flags when running the CI Chat Bot:
46
56
47
57
### 2. Organizational Data Format
48
58
49
-
The system expects hierarchical JSON data with this structure:
59
+
The system now uses indexed JSON data generated by the Python `orglib` indexing system. The data structure includes pre-computed indexes for fast lookups:
0 commit comments