fetch_ml/configs/worker-docker.yaml
Jeremie Fraeys ea15af1833 Fix multi-user authentication and clean up debug code
- Fix YAML tags in auth config struct (json -> yaml)
- Update CLI configs to use pre-hashed API keys
- Remove double hashing in WebSocket client
- Fix port mapping (9102 -> 9103) in CLI commands
- Update permission keys to use jobs:read, jobs:create, etc.
- Clean up all debug logging from CLI and server
- All user roles now authenticate correctly:
  * Admin: Can queue jobs and see all jobs
  * Researcher: Can queue jobs and see own jobs
  * Analyst: Can see status (read-only access)

Multi-user authentication is now fully functional.
2025-12-06 12:35:32 -05:00

51 lines
1,006 B
YAML

# Worker configuration for Docker production-like testing
worker_id: "docker-test-worker-1"
# Redis configuration
redis:
url: "redis://redis:6379"
max_connections: 10
# Local mode settings
local_mode: false # Use Podman for containerized job execution
# Job paths
base_path: "/tmp/fetchml-jobs"
# Container workspace (not used in local mode)
container_workspace: "/workspace"
container_results: "/results"
# Podman settings (not used in local mode)
podman_image: "python:3.9-slim"
podman_cpus: "2"
podman_memory: "4g"
# Worker configuration
heartbeat_interval: "30s"
lease_duration: "5m"
max_concurrent_tasks: 1
# Data manager settings
data_manager:
enabled: false
base_path: "/data"
# SSH settings for Podman communication
ssh:
enabled: true
host: "localhost"
port: 2222
user: "worker"
password: "SecureWorkerPass2024!"
key_path: "/home/worker/.ssh/id_rsa"
# Logging
logging:
level: "info"
file: "/logs/worker.log"
# Metrics
metrics:
enabled: true
endpoint: ":9100"