D3V-Server/backend/migrations
xtcnet 9b5152d81f
Some checks failed
Docker Cloud Build / Build & Publish Image (push) Failing after 10m4s
feat(security): AES-256-GCM encryption for WireGuard private keys in DB
- Add backend/lib/crypto.js: transparent encrypt/decrypt with DB_ENCRYPTION_KEY env var
- Add migration 20260319000000: idempotent data migration encrypts existing plaintext keys
- Patch wireguard.js: encrypt on write (3 points), decrypt on read (4 points)
- install.sh: auto-generate DB_ENCRYPTION_KEY via openssl, save to .env (chmod 600)
- AI_CONTEXT.md: document crypto.js and DB_ENCRYPTION_KEY requirement
2026-03-18 23:21:00 +07:00
..
20180618015850_initial.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20180929054513_websockets.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20181019052346_forward_host.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20181113041458_http2_support.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20181213013211_forward_scheme.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20190104035154_disabled.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20190215115310_customlocations.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20190218060101_hsts.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20190227065017_settings.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20200410143839_access_list_client.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20200410143840_access_list_client_fix.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20201014143841_pass_auth.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20210210154702_redirection_scheme.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20210210154703_redirection_status_code.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20210423103500_stream_domain.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20211108145214_regenerate_default_host.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20240427161436_stream_ssl.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20251111090000_redirect_auto_scheme.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20260131163528_trust_forwarded_proto.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20260307000000_wireguard.js Initial commit for D3V-NPMWG 2026-03-07 20:49:44 +07:00
20260308000000_wireguard_multi_server.js feat: implement wireguard multi-server UI and backend logic 2026-03-08 09:33:24 +07:00
20260310000000_wireguard_owner.js fix(wireguard): isolate user data by owner_user_id 2026-03-10 10:39:46 +07:00
20260310000001_wireguard_quotas.js feat(wireguard): massive scale extensions for Quotas, Web Dashboards, Connection Logs, and Zero-Auth Public VPN file portals 2026-03-10 13:09:51 +07:00
20260319000000_wireguard_encrypt_keys.js feat(security): AES-256-GCM encryption for WireGuard private keys in DB 2026-03-18 23:21:00 +07:00