Skip to content

Delete .env-example#16

Open
Yaimsputnik5 wants to merge 1 commit into
0x6rss:mainfrom
Yaimsputnik5:patch-4
Open

Delete .env-example#16
Yaimsputnik5 wants to merge 1 commit into
0x6rss:mainfrom
Yaimsputnik5:patch-4

Conversation

@Yaimsputnik5

Copy link
Copy Markdown

Deleted the .env-example as the UI Rewrite update switches to a config.json model.

Deleted the .env-example as the UI Rewrite update switches to a config.json model.
bryanseah234 added a commit to bryanseah234/telegramhunter that referenced this pull request May 30, 2026
DB / Schema
- #1: CREATE audit_logs + keepalive_log tables via Supabase API (were missing in prod)
- 0x6rss#9: Promote 158 stuck pending creds w/ chat_id+topic_id to active

Infrastructure
- #2: Beat schedule moved from /tmp (ephemeral) to named volume beat_schedule
- #10: Redis maxmemory=256mb + allkeys-lru (live config + persisted in compose command)
- 0x6rss#20: Healthchecks added to worker-scrape, worker-scanners, worker-validators, beat

Business Logic / Correctness
- 0x6rss#3: broadcast_pending batch 100→500, rate sleep 5s→1.5s (23k backlog drains in ~48min)
- 0x6rss#4: _get_monitor_group_ids() sync httpx.get → asyncio.to_thread; scrape guard uses await
- #5: permanent_errors operator precedence — explicit parens on OR/AND mix
- #8: self_heal decontamination uses _resolve_monitor_group_ids_async() not raw string
  - Also fixes NameError: ids_to_reset → contaminated_ids in re-enrich loop
- 0x6rss#13: self_heal cursor pagination (batch 500→200, Redis cursor key self_heal:cursor)
- 0x6rss#12: audit_active_topics cursor pagination (Redis cursor key audit:topics:cursor)
- 0x6rss#14: Matkap Strategy 4 now kicks victim bot after forwarding (OPSEC cleanup)
  - Added UserAgentService.kick_bot_from_group() via Telethon EditBannedRequest

Reliability
- 0x6rss#15: broadcast_pending lock TTL renew via background thread (RENEW_EVERY=90s)
       Replaces fixed 240s TTL that expired on 500-msg batches (750s > 240s)

Observability
- #7: MetricsCollector.flush_to_redis() + get_all_metrics() merges Redis+memory
  - Wired into system_heartbeat task so counters survive restarts

Security / OPSEC
- 0x6rss#16: bot_listener log_update() skips hub group messages (noise + content leak)
- 0x6rss#17: CORS never wildcard — explicit allowlist always; EXTRA_CORS_ORIGINS env escape hatch
- 0x6rss#18: token dedup Redis key uses full 64-char SHA-256 (was truncated to 16 chars)
- 0x6rss#19: broadcaster rotation pool is bot-only; MTProto reserved for admin ops
  - Real phone numbers no longer visible in group member list as message senders

Skipped
- 0x6rss#6: circuit breakers per-process → out of scope (Redis redesign required)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant