Commit graph

65 commits

Author SHA1 Message Date
53822731f8 Update submodules with security protection module 2026-01-10 09:41:39 -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
497d42258e Fix dropdown menu duplicates and reorder items
- Fix CSS breakpoints to sync header tabs with dropdown menu visibility
- Add missing apps (docs, sheet, slides, social) to hide/show logic
- Remove incorrect paper breakpoint (not in header tabs)
- Reorder dropdown: dynamic items first (header tab apps), then static items
- Move People after dynamic items (after social)
- Remove duplicate Social entry from dropdown menu
- All 26 suite app folders have menu entries (no orphans)
2026-01-09 21:19:43 -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
0c58e30d93 chore: Update botserver submodule with compilation fixes 2026-01-08 15:35:21 -03:00
79656c1b72 chore: Update botserver submodule with video module implementation 2026-01-08 13:45:05 -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
b2b5bf01bb Remove completed TODO and cleanup 2026-01-08 12:11:26 -03:00
37dae7d724 feat: double-click .bas files in drive opens designer automatically
- Add isBasicFile() and openInDesigner() functions in drive.js
- Remove .bas from inline editor, redirect to designer with bucket/path params
- Update designer FileQuery to include bucket parameter
- Add load_from_drive() function to fetch .bas content from MinIO
- Fix designer initialization for HTMX dynamic loading
- Parse URL params from both query string and hash fragment
- Add parseBasicCodeToNodes() to convert BASIC code to visual nodes
- Support TALK, HEAR, SET, IF, FOR, CALL, WAIT, GET, PARAM commands
- Add saveToDrive() to save changes back to original location
- Fix createNode() to return the created node
- Add generateBasCode() for converting nodes back to BASIC
2026-01-05 11:06:38 -03:00
3493018a76 Update submodule references 2026-01-03 23:00:54 -03:00
334ec3ccfe Fix apps dropdown menu positioning near the grid button
- Changed apps-dropdown right position from 60px to 0 in app.css
- Wrapped apps button and dropdown in a container with position:relative
- Moved dropdown to be a sibling of the button inside the container
- Removed duplicate dropdown from header-right section
2026-01-03 17:18:58 -03:00
2ba67c982e Update botserver: add migration for bot database_name 2026-01-02 19:56:52 -03:00
9f851a5783 Update botserver: per-bot database creation 2026-01-02 19:35:12 -03:00
1a27c28b2c Update botserver: dynamic table check in all db_api handlers 2026-01-02 19:19:07 -03:00
4143653f10 Update botserver: clean LLM output for generated files 2026-01-02 19:15:23 -03:00
267b237091 Update botserver: serve vendor files from MinIO 2026-01-02 18:26:42 -03:00
9891c4ab7e Update botserver: dynamic table support for app_generator 2026-01-02 18:20:12 -03:00
576f38eadd Update botserver: rewrite CDN URLs to local paths 2026-01-02 18:12:38 -03:00
9436a52e58 Add local HTMX vendor file and update botserver submodule
- Added botserver-stack/static/js/vendor/htmx.min.js (v1.9.10)
- All JS dependencies served locally, no CDN
2026-01-02 17:54:46 -03:00
bea8529acd Update botserver submodule: designer file writing and CSP fixes 2026-01-02 17:49:08 -03:00
e75049d5fb Fix designer file writing and CSP for CDN assets
- Designer now uses state.bucket_name (like app_generator) instead of DB lookup
- Fixed local file path to match app_server fallback: {site_path}/{bot}.gbai/{bot}.gbapp/{app}/{file}
- Fixed S3 path to match app_server: {bot}.gbapp/{app}/{file} in bucket {bot}.gbai
- Added S3 bucket creation retry logic (like app_generator)
- Updated CSP to allow unpkg.com, cdnjs.cloudflare.com, cdn.jsdelivr.net for scripts/styles
- Added fonts.googleapis.com and fonts.gstatic.com for web fonts
- Updated APP_GENERATOR_PROMPT to use HTMX CDN instead of non-existent /js/vendor path
- Added designer prompt guidelines for relative asset paths
2026-01-02 17:48:15 -03:00
3fef4ac09d Update botui - splitter and uniform scrollbars 2026-01-02 15:26:16 -03:00
be289601da Update botui - double task card height 2026-01-02 15:15:51 -03:00
74bf718453 Update botserver and botui - child completion fix, larger task cards 2026-01-02 14:45:25 -03:00
fd294cf21b Update botserver and botui - fix button visibility and duplicate title 2026-01-02 14:24:03 -03:00
262e3ab9eb Update botui - larger task cards 2026-01-02 14:16:41 -03:00
0a35ebcf4f Update botui - notifications bell infrastructure 2026-01-02 14:09:01 -03:00
61bdeb2804 Update botserver and botui - compact task cards, expanded tree 2026-01-02 14:00:26 -03:00
d40db53c8c Update botui - fixed scroll containment 2026-01-02 13:48:07 -03:00
c1214475d7 Update botui - Design System standards for all themes 2026-01-02 13:40:39 -03:00
1db19067c9 Update botui - visible scrollbars on task list and progress log 2026-01-02 13:33:17 -03:00
0044dd0910 Update botui submodule - fixed scroll layout 2026-01-02 13:29:21 -03:00
c0de93736d Update botserver and botui submodules - improved task UI layout 2026-01-02 13:23:36 -03:00
82408bd21f Update botui 2026-01-01 10:49:38 -03:00
afa99a8050 Update botui 2026-01-01 10:47:08 -03:00
e3390b8dd5 Update botui submodule 2026-01-01 10:42:43 -03:00
0e12e7a326 Update submodules 2026-01-01 10:36:58 -03:00
399b873017 Update submodules: progress UI fixes 2026-01-01 10:13:46 -03:00
13cb2fe521 Update submodules: task progress UI improvements 2025-12-31 23:45:46 -03:00
05a74d48d8 Fix designer file updates, cancel button visibility, and LLM stream display
- Fix apply_file_change to always write locally first, handle S3 errors gracefully
- Hide Cancel button when task is completed/done/failed/error
- Add LLM stream updates to detail terminal panel
- Add CSS styling for llm-stream terminal lines
- Remove unused get_bot_name and store_app_metadata methods
- Fix designer LLM call to use state.llm_provider.generate()
2025-12-31 15:36:59 -03:00
fd98fdad28 Update submodules: tasks UI, WebSocket proxy, memory monitoring 2025-12-30 22:43:07 -03:00
38211bec59 Fix tasks UI: WebSocket proxy, task detail, stats, and progress panel
- Add WebSocket proxy for /ws/task-progress in botui (was missing, blocking progress events)
- Fix task detail endpoint to use UUID binding for auto_tasks query
- Fix task list to query auto_tasks table instead of tasks table
- Add proper CSS for task cards with status-based colors
- Add task detail panel CSS for header, progress, sections
- Add count-all to stats HTML response
- Skip 0-byte files in drive monitor and document processor
- Add detailed logging for LLM calls in intent classifier and app generator
- Remove unused variables and fake demo activity simulation
- Change DRIVE_MONITOR checking logs from info to trace
2025-12-30 22:41:13 -03:00
e437ce2234 Fix LLM model config, add vector_db as required, cleanup logs
- Fix hardcoded 'gpt-4' model in auto_task modules (intent_classifier, app_generator, designer_ai, intent_compiler) to use configured llm-model from bot config
- Add vector_db (Qdrant) to required bootstrap components for KB indexing
- Add Qdrant health check with clear error messages when unavailable
- Change verbose [START] debug messages from info to trace level
- Fix episodic memory role handling in Claude client (convert 'episodic' to system context)
- Disable auth for /api routes during development
2025-12-29 11:18:28 -03:00
011f8698a8 Fix LLM provider dynamic updates and DriveMonitor startup
- Add DynamicLLMProvider wrapper for runtime LLM provider updates
- Start DriveMonitor for default.gbai bucket on server startup
- Fix DriveMonitor to detect config.csv changes and update LLM provider
- Fix path matching to detect config.csv in root and .gbot folders
- Add /api/auth to anonymous paths to fix 401 on auth endpoint
- Fix foreign key references in 6.1.0 migration (users.id not users.user_id)
- Use correct bucket name 'default.gbai' for DriveMonitor
2025-12-28 23:20:56 -03:00
79c4918df2 Update PROMPT.md with security directives for new code compliance 2025-12-28 21:26:33 -03:00
0c82d690f0 Update botserver with security tasks and deduplicated utils 2025-12-28 15:33:00 -03:00
d18d1b6ff4 Update botserver submodule with PROMPT.md changes 2025-12-28 14:29:54 -03:00