Skip to content

core: add builtin module for vpn-gate configs - #1

Merged
codewiththiha merged 1 commit into
mainfrom
feature/builtin-module
Aug 4, 2026
Merged

core: add builtin module for vpn-gate configs#1
codewiththiha merged 1 commit into
mainfrom
feature/builtin-module

Conversation

@codewiththiha

Copy link
Copy Markdown
Owner

Adds the builtin module to vmate-core: hardcoded vpn-gate provider data (shared key, header template, 277 deduplicated remotes) plus helpers to build, materialize, detect, and name built-in configs. Also adds paths::builtin_dir().

This is the foundation for scanning built-in VPN configs with no files on disk. Follow-up branches wire it into scan/CLI and recent/export.

Adds the builtin module to vmate-core: hardcodes the VPN Gate header,
shared CA/cert/key, and a deduplicated sorted list of 277 remotes, and
can build, enumerate and materialize a full .ovpn config for any
(provider, remote, proto) combination. Adds paths::builtin_dir() and
registers the module in lib.rs. Foundation for the future built-in
config scan feature; no integration yet.
@codewiththiha
codewiththiha merged commit c7650be into main Aug 4, 2026
@codewiththiha
codewiththiha deleted the feature/builtin-module branch August 4, 2026 03:04
codewiththiha added a commit that referenced this pull request Aug 4, 2026
- #1 builtin identity: BuiltinConfig::from_path + display_name centralize the
  path-layout parse; export_name and recent route through them (3 inline
  file_stem parses deleted)
- #2 scan pipeline: scan::scan_pipeline shared by scan and all; all.rs keeps
  only the connect half; report format unified
- #3 retry budget: pure RetryBudget type drives the retry/drop rules;
  ConnectService::run consults it instead of inline counters
- #4 settings persist: persist_scan/persist_connect live beside the resolvers
  in UserSettings; command-layer apply helpers deleted
- #5 process teardown: OpenVpnHandle owns kill_graceful; kill_handle deleted;
  the kill registry becomes a per-session ProcessRegistry threaded through
  spawn sites (hides the global, fixes cross-test killing)
- #6a/6b: journal_mode moves to db::pool; ScanProgress reports deltas

Flaky custom_retry_count test fixed (per-session registry + 30s handshake
timeout); full suite now stable across repeated runs.
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