Commit graph

8 commits

Author SHA1 Message Date
9b88a158f1 Fix UI button handlers, implement backend stubs, fix compilation errors
- Add admin-functions.js to main suite/index.html for 40+ button handlers
- Fix slides module gbSlides -> window.slidesApp references
- Add missing IntoResponse import to analytics.rs
- Implement recording database methods (get, list, create, update, delete)
- Implement calendar check_conflicts and get_events_range
- Implement calendar integration methods (fetch contacts, find collaborators)
- Implement tasks integration methods (fetch tasks, find assignees)
- Implement autotask get_pending_decisions, get_pending_approvals, apply_recommendation
- Implement get_trends in insights.rs with actual data
- Implement fetch_new_emails and fetch_folder_changes with mock data
- Remove unused imports (put from workspaces, delete from legal)
- Update TODO.md with completed items
2026-01-13 13:06:28 -03:00
556a27bb7d Update TODO.md with comprehensive module audit 2026-01-13 08:24:07 -03:00
965ece9852 Add security protection module with sudo-based privilege escalation
- Create installer.rs for 'botserver install protection' command
- Requires root to install packages and create sudoers config
- Sudoers uses exact commands (no wildcards) for security
- Update all tool files (lynis, rkhunter, chkrootkit, suricata, lmd) to use sudo
- Update manager.rs service management to use sudo
- Add 'sudo' and 'visudo' to command_guard.rs whitelist
- Update CLI with install/remove/status protection commands
- Create comprehensive botbook documentation
- Update SUMMARY.md with protection-tools entry

Security model:
- Installation requires root (sudo botserver install protection)
- Runtime uses sudoers NOPASSWD for specific commands only
- No wildcards in sudoers - exact command specifications
- Tools run on host system, not in containers
2026-01-10 09:40:52 -03:00
04f8faed81 Update TODO.md - mark all phases complete
- Phase 5 verification complete
- Add ExtractedAuthData to key types
- Update auth.rs changes description
2026-01-10 07:00:05 -03:00
471c1ef58c Mark Phase 5.1 compilation test as complete 2026-01-10 06:49:39 -03:00
dc940de905 Fix auth middleware compilation and complete Phase 5 verification
- Fix JwtKey::from_secret to use &str instead of &[u8]
- Fix auth_middleware_with_providers to avoid holding &Request across await
- Add ExtractedAuthData struct for thread-safe auth data extraction
- Remove duplicate require_permission_middleware export from rbac_middleware
- Fix check_route_access argument order in rbac_middleware
- Remove unused auth_config field from ZitadelAuthProviderAdapter
- Remove unused imports (body::Body, http::Request, AuthError)
- Make check_permission_string public for middleware use
- Add missing jwt_manager, auth_provider_registry, rbac_manager fields to AppState

Phase 5.1 compilation test: PASSED (0 warnings, 0 errors)
2026-01-10 06:49:18 -03:00
ba74a9a6e5 Fix compilation errors: add missing struct fields and fix type mismatches
- LargeOrgOptimizer: add partition_manager field
- DataPartition: add organization_id, partition_key, start_range, end_range, created_at fields
- AuthError::InvalidToken: change to tuple variant with String, fix all call sites
- FallbackAttemptTracker: add first_attempt_at field
- OrganizationRbacService: add user_groups and user_direct_permissions fields
- RekognitionService: add liveness_sessions field and LivenessSession struct
2026-01-08 23:38:21 -03:00
42263bd37e Add TODO.md for video module and update all submodules
Submodule updates:
- botapp: safe_command module, desktop sync improvements
- botbook: RBAC docs, white-label, security, channel setup docs
- botlib: i18n localization support (en, es, pt-BR)
- botserver: video module, RBAC, security, billing, contacts, learn, social
- bottemplates: HR and productivity templates
- botui: admin, dashboards, learn, social, video UI
2026-01-08 13:16:29 -03:00