feat: add profile auto-heal watchdog example#40
Open
khang-dogo wants to merge 7 commits into
Open
Conversation
* feat: add fingerprint rotation option with auto-restart - Add fingerprint_rotation_interval field (minutes, 0 = disabled) - Auto-generate new random seed and restart browser at interval - Background rotation tasks managed per-profile, cancelled on stop - DB migration: ALTER TABLE profiles ADD COLUMN fingerprint_rotation_interval * feat: add fingerprint rotation UI to frontend form - Add fingerprint_rotation_interval to Profile & ProfileCreateData types - Add rotation interval input (minutes) in Behavior section of form - Show "Rotate every X min" as subtitle on running profiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
auto_launch=trueonly applies at manager startup and does not continuously self-heal afterwardops/watchdog/examples and runbook guidance without changing the upstream core runtimeRoot cause → fix
/api/profilesand callsPOST /api/profiles/<id>/launchfor profiles withauto_launch=truebutstatus != runningsystemdunit plus install/verification/smoke-test documentationFlow
flowchart TD A[cloakbrowser-manager healthy] --> B[profile or browser crashes] B --> C[profile status becomes stopped] C --> D[host watchdog polls /api/profiles every 15s] D --> E{auto_launch = true?} E -- no --> F[leave profile stopped] E -- yes --> G[POST /api/profiles/<id>/launch] G --> H[profile returns to running]Before / After
stoppedstoppedprofileauto_launch=trueis relaunched automatically within about 15 secondsFiles changed
README.mdops/watchdog/cloakbrowser_watchdog.pyops/watchdog/cloakbrowser-watchdog.servicesystemdservice for durable host-side executionops/watchdog/README.mdScope
auto_launch=falsecaveat for intentionally keeping a profile downEvidence
it-workstation-2with a smoke test:auto_launch=truerunningrunningrelaunching profile ... status=stopped auto_launch=Truerelaunched profile ... status=runningNotes
auto_launch=falsefirst