mirror of
https://github.com/Heretek-AI/GDevelop-BYOK.git
synced 2026-07-01 18:48:04 -04:00
[GH-ISSUE #21] M001/S02/T01: Create byokConfig.js — config persistence with safeStorage encryption #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.jstest/unit/byok-config.test.jsproxy/package.jsonVerification