Commit graph

307 commits

Author SHA1 Message Date
bf9063b1f8 Refactor of Ticket flow. Stable to get confirmed Result via CLI. Not yet GUI 2026-10-23 19:32:12 -04:00
8dca35d5c9 New payment flow confirms paid status and updates. Solved the previous issue with repeat invoices attempting to get a new invoice but being told its paid without an invoice. 2026-10-23 16:05:59 -04:00
00ef301baf Relying on end_singbox now, instead of a dedicated helper for mini-takedown 2026-10-22 21:50:43 -04:00
8a72ae76fd Fixed a bug in teardown of failed attempt, to properly kill firewall 2026-10-22 21:49:24 -04:00
f54ed5686a Use of a pre-existing billing code, to then connect 2026-10-22 21:20:59 -04:00
b68d1ea6bd removal of unused importS 2026-10-22 16:00:44 -04:00
19e8a34730 Move singbox launch to isolated module. And refactor the runner to use smaller helper functions. 2026-10-22 15:27:38 -04:00
587c72f4c3 async ip address calls 2026-10-22 13:37:27 -04:00
af368db8b7 Ticket Refactor to accept ServerReply objects, and keep the internal flow returning Result objects 2026-10-22 03:31:33 -04:00
2208cedb7e Introduced Location & MTU testing on systemwide Wireguard. As well as IP address testing instead of the previous method. Additionally, 400 status APIs now pass through the APIResponse layer as True to be evaluated by the SeverReply Layer. Finally notifications are better integrated to convey the testing rounds to the end user. 2026-10-21 13:37:21 -04:00
d2e75ca0e1 Notifications for Payment Related actions 2026-10-20 18:29:56 -04:00
6162d000c6 Improved error handling for billing conflicts of individual profiles at the same time 2026-10-20 15:42:13 -04:00
5c3be8803a Improved file format error handling 2026-10-20 13:56:40 -04:00
ed517f4568 Direct httpx2 IP address checking, instead of subprocess for connection tests. 2026-10-19 21:36:22 -04:00
a7b733db0d Functions added for wiping tickets when expired (the entire ticket cycle). Also general error fixing for the payments flow 2026-10-19 19:44:23 -04:00
840c2ccb58 Improved State Management integrated with the UI upgrades, to evaluate failed zombie systemwide connections. And then prompt the user if they'd like to evaluate them for re-use, or close it. 2026-10-19 16:32:43 -04:00
fcace28890 Introduced a Global State Management system, with a repo cache and notifications to the UI. 2026-10-18 21:16:52 -04:00
06e5470c4d Don't show a popup if there's nothing to say 2026-10-17 17:26:53 -04:00
f59c39be6e Minor Import fixes 2026-10-17 17:17:23 -04:00
5023b09928 Isolated error translation to it's own module. Finality to ticket payments and the ticket prep changing the Config 2026-10-17 17:13:42 -04:00
9ca0809ceb Stable repeat Ticketing flow 2026-10-17 14:24:06 -04:00
1f4b37dbe9 Improved Multi-payment-cycle management. Moved check_paid and mark_paid to isolated service. Setup primary configuration to track ticket setup 2026-10-17 11:33:39 -04:00
e296e212db edit legacy comments 2026-10-16 18:07:26 -04:00
e8373cf0ab State is cached via a repo 2026-10-16 17:59:14 -04:00
469268651b Subscription expiration check tools 2026-10-16 15:12:25 -04:00
5dee318aa4 Wireguard now checks if it needs to disable singbox based on systemstate. Also eliminated content from profilecontroller that was no longer being used for subscriptions, and causing circular import issues 2026-10-15 19:30:34 -04:00
0931200c79 Fixing wireguard breaking due to changes in systemwide state from singbox kill checking wireguard first 2026-10-15 19:13:57 -04:00
6107a355f9 Improved singbox cleanup process. And added support for killing wireguard profiles inside end_singbox. 2026-10-15 19:02:47 -04:00
ba3ce97e34 moving commented out imports that were shifted when the profile_connections got it's own module 2026-10-15 16:26:18 -04:00
5dc1463862 Singbox on disable, checks if wireguard is active, and kills it 2026-10-15 16:20:44 -04:00
732b17fb4a Introduced new ProfileRepo to cache profiles. All profile access is now coordinated through the ProfileController. And the ProfileController's previous bloat mission-creep of connections, is now moved to it's own service repo 2026-10-15 12:10:49 -04:00
81002cd76d The Plumbing now allows for the service to provide it's own function_choice when it returns a result. Separetly, a new type_checker wrapper is now available for use. And finally, the config model now passes around the same instance as a singleton to avoid new file operations to just read 2026-10-14 18:16:13 -04:00
7ba8e1e6d3 Plumbing stable for GUI to call upon via inserted ENUM DICT 2026-10-13 21:19:49 -04:00
69f4e7114f Refactored billing to have core doing more, and GUI doing less. Also heavily relying upon the singleton pattern to transfer data between UI pages and core functions 2026-10-12 20:24:04 -04:00
9e4fd54eb6 Introduced MTU tools. MTU set for session configs automatically, for systemwide the testing is setup but not yet implemented. Also introduced server reply objects and a new v2 wg endpoint that doesn't require location codes. 2026-10-11 20:18:52 -04:00
10e46cd8ea New refactored Use of tickets and payment of tickets loops/state, integrated with existing system 2026-10-11 12:33:21 -04:00
6a445eba41 Ticket Inovices Stable with Big Bang Refactor. Still need to resolve issues with ticket billing invoice config already existing 2026-10-10 18:27:02 -04:00
f9698ced68 Support for multiple invoices being managed through a global payment cycle 2026-10-10 15:25:36 -04:00
4aa6e2fb8b Instance checks and wipe on complete 2026-10-09 14:33:19 -04:00
430696b480 Resume Payments for individual profiles stable. Also fixed a bug with errors in filtering invalid replies to getting new wireguard conifgs 2026-10-07 18:33:16 -04:00
52b3e1ba94 Big Bang Refactor of Payments. Introduced a new paymentdata singleton that stores data across pages and on disk. Also introduced a suite of functions for handling payments 2026-10-07 13:29:19 -04:00
57774ae697 Infrastructure for payments overhaul. With state storage for billing, type checking, enums, and serialization. Also plan sql further refined 2026-10-04 20:07:56 -04:00
90dd9b309f Confirm Location's protocol support on edit 2026-10-03 17:27:34 -04:00
b132265a04 Location model shifts to boolean types. This will force a migration via Constants DB version. 2026-10-03 16:55:22 -04:00
9627b1861d Introduced new model: Plan. This differs from the legacy subscriptions because its based on time in months and supports multiple protocols at once in a list enum format 2026-10-03 14:47:38 -04:00
f2922b02a0 Enabled support for editing systemwide profile protocols including vless/hysteria2 2026-10-03 11:39:57 -04:00
dba8d79db8 vless client-server model match format 2026-10-01 18:44:33 -04:00
80415e2b28 client-side models to match server-side output 2026-10-01 18:24:39 -04:00
6982f46c37 ServerReply model initiated client-side, and used for wireguard config replies. 2026-09-30 18:50:19 -04:00
77c7123d73 Prepartion of univerisal cross-platform plumbing. And introduction of v2 billing/invoices 2026-09-28 17:30:08 -04:00
a34121d3c6 Miller loop loaded on appimage via an .so C module. 2026-09-22 17:43:21 -04:00
d35fc0db4b Bug fixes and tweaks for transitions 2026-09-21 12:35:37 -04:00
b29a44cf95 Phasing out legacy dict for Result Objects 2026-08-27 11:47:01 -04:00
ced69bfa4f Use Ticket Controller returns Return objects 2026-08-26 09:56:38 -04:00
f038f7a8da Error type handling 2026-08-24 16:06:03 -04:00
44558fb514 Large changes to the flow for using tickets. More formalized updating of JSON with explicit tools, instead of generic JSON functions. Orchestration returns Return objects, which are then formatted to dict for the GUI. 2026-08-24 15:57:42 -04:00
fcf469bd03 Manual Explicit Wireguard enable via nmcli for Improved Cross-Linux distro support. 2026-08-24 11:50:34 -04:00
0983d1a68d Changed bash generic commands to no longer use blocking methods to search through the terminal output to help with broken pipe errors, and instead select. But kept it non-blocking for the entire terminal itself. Also refactored Use Ticket Controller to reduce nesting if statements. 2026-08-24 11:24:23 -04:00
39efcaa174 Cython for Miller's Loop Cryptography first introduced, which dramatically reduces verification times. Includes a setup.py option for manual builds if desired. README for manual compile if desired. And a fallback import using the legacy python-only system. 2026-08-22 20:48:22 -04:00
a69b87817c Improved Connection Observer Feedback for all systemwide protocols 2026-08-21 15:31:52 -04:00
8968d89c5c Fallback for AppImage to preloaded YAMLs via pathlib 2026-08-21 12:38:32 -04:00
7fa65f80ba Database error types 2026-08-21 11:48:46 -04:00
90e7ee8da5 Sync Insert for unknown fields now drops the unknown fields, and proceeds. 2026-08-21 11:46:58 -04:00
6d8b457593 Improved error handling and consolidation on ticket purchase flow 2026-08-20 18:00:58 -04:00
e1221d4c45 Renamed do_we_have_billing_id to ticket_config_tools 2026-08-20 17:25:28 -04:00
e18fec84f2 Fixed Repeat 'already have ticket, do you want to wipe?' errors, by actually wiping it before starting over. Not just starting over directly, like before 2026-08-20 17:20:37 -04:00
07f0cf8007 Cleanup of Legacy code and commented sections 2026-08-20 14:06:28 -04:00
fe19044928 Singbox enable now reads the output file to confirm it's up 2026-08-20 14:00:17 -04:00
bdfb933548 Sudo config management. Properly delete the config for protocol changes, and install it using the generic commands module 2026-08-20 12:23:37 -04:00
5923cc8a7f Vless is now working. Config Parsing and setup is stable, and increased the wait time for connection testing. But this is a temporary solution. The real answer is not a static time check, but a dynamic result reading for when to test. Which then has it's own timeout time 2026-08-20 10:18:16 -04:00
c8811c93bb Linter undefined or missing import bugs 2026-08-19 21:40:36 -04:00
bdb4a285de Delete commented out legacy functions from before the move months ago to an isolated wireguard key module 2026-08-18 14:58:30 -04:00
24c4648054 Bug-Typo Fix: interface_name changed to interface to match the other singbox module 2026-08-18 13:27:05 -04:00
ff54373b0f Failed Assassin disable raises error 2026-08-18 13:03:16 -04:00
6dac98835f Assassin mode Introduced! The assassin_tools allows for creation/use of a session profile with random attributes, ephemeral wireguard config, and coordinates using a ticket for it. This tools module also allows for wiping the assassin's ticket & wireguard config on disable. Additionally, this git commit sees ProfileController using these assassin_tools functions for a working implementation if the profile is marked assassin=True. Also the associated eco-system of ApplicationController starting apps, the existing non-ticket legacy subscription handlers, and even GUI needed to be adjusted to allow for this new assassin flow. Finally, the generic JSON utilities have been improved to make this feature more robust and reliable. 2026-08-18 12:54:54 -04:00
a78747e8e5 Bug fix in subscriptions missing re import after the prior isolation transition to the new module 2026-08-15 17:45:06 -04:00
5ab57ab287 When a profile is deleted, it now automatically respawns the ticket if it's a ticket profile. Also fixed some bugs with fetching the server's public key with the APIResponse object being used, when it expected a regular dictionary. This is a left-over from the prior transition to API objects. 2026-08-15 17:34:08 -04:00
829feb5939 The profile object now has a ticket field. It's now none by default. Also the profile object is passed in, for the use of tickets, both for GUI and core. 2026-08-15 14:09:34 -04:00
31488f790e Introduced Ticket/Billing-Code Respawn, with dual paths on the ticket prep orchestration, it's helper functions, and the main prep controller. This introduced the functions, which were tested with a demo CLI client and local server, and appears to be stable. Server-side endpoints will be pushed as well. Note: This update couples profile slot ids more closely with which ticket slot id is being used for it, but they are not yet officially tied. In the future, they should be. 2026-08-14 19:36:22 -04:00
1695e0314e Download of file deletes the temp folder from setup 2026-08-13 08:24:33 -04:00
73c74d339f Improved use of connection observers & fixed a bug in compare versions if it was the same version 2026-08-13 08:09:38 -04:00
1d8c508c52 Isolate connect's bootstrap, so non-connect users can bootstrap when making clients outside connect 2026-08-13 07:59:27 -04:00
d9bee758a8 Isolated download file modules to their own module, then had both the install application versions (browsers), and install dependencies both use that same module. 2026-08-13 07:33:16 -04:00
b5e72ae7f6 More clear variable names and docs on Make HTTPx Client. But it always returned boolean 2026-08-13 06:11:14 -04:00
951802fe5c Improved Singbox Setup Error handling for edge cases 2026-08-12 15:57:51 -04:00
01bd5f8d3f ApplicationController transitioned to the HTTPx Client system, instead of using requests library proxy for Tor. Also the GUI's observers now do strings to be more neutral to what object type is being downloaded (application_version objects vs dependency). 2026-08-12 14:19:55 -04:00
b84bb2eefa Singbox setup modules, which includes installation, download, move to sudo folder, and sudo setup scripts. Added a model, endpoint, and the ability to sync that model. (Related note: Server-side prepared the endpoint, and stocked with real data.) And also the sync service modules were adjusted to handle new data types more smoothly, before they had errors. As part of that sync flow change, the CachedSync metadata model was transitioned to ints instead of strings, with default 0 values. This should in theory migrate all clients without further changes needed. 2026-08-12 13:11:12 -04:00
c291517b7f Singbox Protocols can be enabled via the main ProfileController 2026-08-10 18:55:23 -04:00
c3b50460cd IP address checking for singbox enforced in singbox runner 2026-08-10 17:58:31 -04:00
2a6b1eacd5 Support for auto-retry on Singbox enable 2026-08-10 16:25:45 -04:00
9d0d140467 Singbox Orchestration! Significant progress made on singbox flow, we now have a working: 1) Configure via singbox_configure. 2) Enable/disable directly via singbox module. 3) Enable/disable with full orchestration via singbox_runner. 4) process id utils isolated. 5) Singbox takedown uses JSON & process id, but not yet coordinating a mismatch. Also in this update: Transition traditional wireguard subscription post/get requests to the new HTTPx system. 2026-08-10 15:49:47 -04:00
061df01a0d Wireguard renegotiation now flows through the new HTTPx modules 2026-08-07 15:05:17 -04:00
320037a2b1 EncryptedProxy configuration path setup, but not yet functional. Pydantic models for each protocol are being setup. 2026-08-06 20:58:36 -04:00
94c4155d60 Get configs from controller's state, instead of reading the disk 2026-08-06 15:57:37 -04:00
983924303d importlib for assets such as yaml 2026-08-06 15:29:26 -04:00
c4802d3c7d Transition ticket prep from old requests-based GET/POST system to the new httpx one 2026-08-06 12:22:57 -04:00
83857a0dcd Minor bootstrap log tweaks 2026-08-06 11:41:26 -04:00
e981a748e5 Tor Bootstrap Uses a new fresh config file. 2026-08-06 11:27:50 -04:00
1b609a9e5e Fixed application_versions insert on sync 2026-08-06 10:58:44 -04:00
8f184272b4 Integrated connect.singleendpoint() with the start of bulk sync getting metadata sync. Also improved observer feedback 2026-08-05 13:16:02 -04:00