[GH-ISSUE #21] M001/S02/T01: Create byokConfig.js — config persistence with safeStorage encryption #19

Open
opened 2026-06-04 14:29:27 -04:00 by yindo · 0 comments
Owner

Originally created by @BillyOutlast on GitHub (May 17, 2026).
Original GitHub issue: https://github.com/Heretek-AI/GDevelop-BYOK/issues/21

T01: Create byokConfig.js — config persistence with safeStorage encryption

Why S02 must persist BYOK LLM provider configuration (provider, endpoint, apiKey, model) across app restarts. The module uses a tiered approach: try electron-store (lazy require), fall back to fs JSON if unavailable. API key is encrypted via Electron's safeStorage API (macOS Keychain, Windows DPAPI, Linux libsecret). Non-sensitive fields stored in plain text.

Files

  • src/proxy/byokConfig.js
  • test/unit/byok-config.test.js
  • proxy/package.json

Verification

  • node --test test/unit/byok-config.test.js
Originally created by @BillyOutlast on GitHub (May 17, 2026). Original GitHub issue: https://github.com/Heretek-AI/GDevelop-BYOK/issues/21 ## T01: Create byokConfig.js — config persistence with safeStorage encryption ## Why S02 must persist BYOK LLM provider configuration (provider, endpoint, apiKey, model) across app restarts. The module uses a tiered approach: try electron-store (lazy require), fall back to fs JSON if unavailable. API key is encrypted via Electron's safeStorage API (macOS Keychain, Windows DPAPI, Linux libsecret). Non-sensitive fields stored in plain text. ### Files - `src/proxy/byokConfig.js` - `test/unit/byok-config.test.js` - `proxy/package.json` ### Verification - [ ] node --test test/unit/byok-config.test.js
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Heretek-AI/GDevelop-BYOK#19