docs: add POC specs, handoffs, and research notes
This commit is contained in:
@@ -32,9 +32,9 @@ headers = {
|
||||
}
|
||||
|
||||
resp = requests.post(
|
||||
SERVER_URL,
|
||||
files=files,
|
||||
data=data,
|
||||
SERVER_URL,
|
||||
files=files,
|
||||
data=data,
|
||||
headers=headers,
|
||||
timeout=timeout
|
||||
)
|
||||
@@ -75,8 +75,8 @@ if os.getenv("RPA_TOKEN_READONLY"):
|
||||
Added environment variables directly to service:
|
||||
|
||||
```ini
|
||||
Environment="RPA_TOKEN_ADMIN=73cf0db73f9a5064e79afebba96c85338be65cc2060b9c1d42c3ea5dd7d4e490"
|
||||
Environment="RPA_TOKEN_READONLY=7eea1de415cc69c02381ce09ff63aeebf3e1d9b476d54aa6730ba9de849e3dc6"
|
||||
Environment="RPA_TOKEN_ADMIN=REDACTED"
|
||||
Environment="RPA_TOKEN_READONLY=REDACTED"
|
||||
```
|
||||
|
||||
## Current Status
|
||||
@@ -105,7 +105,7 @@ Expected result: HTTP 200 or 400 (not 401 Unauthorized)
|
||||
|
||||
## Production Tokens
|
||||
|
||||
- **Admin Token**: `73cf0db73f9a5064e79afebba96c85338be65cc2060b9c1d42c3ea5dd7d4e490`
|
||||
- **Read-Only Token**: `7eea1de415cc69c02381ce09ff63aeebf3e1d9b476d54aa6730ba9de849e3dc6`
|
||||
- **Admin Token**: `REDACTED`
|
||||
- **Read-Only Token**: `REDACTED`
|
||||
|
||||
These tokens are configured in `/etc/rpa_vision_v3/rpa_vision_v3.env` and the systemd service.
|
||||
@@ -15,7 +15,7 @@ The issue was an **encryption key mismatch** between the agent and server:
|
||||
## Key Issues Identified
|
||||
|
||||
### 1. Agent Configuration
|
||||
- Agent config had `encryption_password: None`
|
||||
- Agent config had `encryption_password: None`
|
||||
- When `None`, it defaulted to session-based password instead of environment password
|
||||
- Each session used a different encryption key
|
||||
|
||||
@@ -55,7 +55,7 @@ def load_env_file(env_path):
|
||||
"""Charge un fichier .env dans les variables d'environnement"""
|
||||
if not env_path.exists():
|
||||
return False
|
||||
|
||||
|
||||
with open(env_path, 'r') as f:
|
||||
for line in f:
|
||||
line = line.strip()
|
||||
@@ -121,7 +121,7 @@ Server status: "encryption_enabled": true
|
||||
Both agent and server now use the shared password from `.env.local`:
|
||||
|
||||
```bash
|
||||
ENCRYPTION_PASSWORD=2c8129fa522ae8b6bbea1dbf1cadbddd46d760121a49c1ded076dfd6da756805
|
||||
ENCRYPTION_PASSWORD=REDACTED
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
@@ -11,7 +11,7 @@ The Agent V0 authentication issue has been **partially fixed**. Here's the curre
|
||||
- Dashboard: `http://localhost:5001` ✅
|
||||
- Worker, healthcheck, and retention services ✅
|
||||
|
||||
2. **Agent V0 Configuration**:
|
||||
2. **Agent V0 Configuration**:
|
||||
- Agent uploader now includes authentication headers ✅
|
||||
- Run script exports environment variables to agent ✅
|
||||
- Agent can access production tokens ✅
|
||||
@@ -75,8 +75,8 @@ The agent can now be tested with:
|
||||
|
||||
## 🔑 Production Tokens
|
||||
|
||||
- **Admin**: `73cf0db73f9a5064e79afebba96c85338be65cc2060b9c1d42c3ea5dd7d4e490`
|
||||
- **Read-Only**: `7eea1de415cc69c02381ce09ff63aeebf3e1d9b476d54aa6730ba9de849e3dc6`
|
||||
- **Admin**: `REDACTED`
|
||||
- **Read-Only**: `REDACTED`
|
||||
|
||||
## 📊 Progress Summary
|
||||
|
||||
|
||||
Reference in New Issue
Block a user