Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

The documents say in one place how Peel keeps crypto wallets

Țugui Dragoș3808dda9564b
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 7407c0df..0266ccb7 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -80,8 +80,9 @@ Tests enforce these. If your change makes one of them fail, the rule is right an
- **`RemovalGuard` refuses what nothing can bring back**, in every account on the Mac:
- iCloud Drive and other cloud storage folders, and the Trash itself;
- - keychains, `~/.ssh`, `~/.gnupg`, `~/.aws`, `~/.password-store`, and the signing keys, credentials, and
- wallets that `ProtectedData.homeKeys` names one by one;
+ - keychains, `~/.ssh`, `~/.gnupg`, `~/.aws`, `~/.password-store`, the signing keys and credentials that
+ `ProtectedData.homeKeys` names one by one, and the wallet keys that `ProtectedData.walletKeys` names, each
+ read from the wallet's own documentation or source;
- Mail, Messages, Safari, Contacts, Calendars, Reminders, Shortcuts, HomeKit, Accounts, Finance,
IdentityServices, FaceTime and call history, Freeform, Journal, Stickies, the passes in Wallet, and every
group container of Apple's own, where macOS keeps notes and other data;
@@ -102,6 +103,9 @@ Tests enforce these. If your change makes one of them fail, the rule is right an
sits in. Every "is this inside that folder" question goes through `PathComponents`.
- **Only `certain` and `likely` matches that no other installed app claims are selected for the user.**
Anything shared is shown and left unselected, and nothing is selected for an app that would stay.
+- **What may exist nowhere else is never selected for the user.** A folder with a wallet, a signing key, or a
+ repository inside, or one Peel could not finish reading, is shown with its reason and moves only when the user
+ selects it: Select All, `peel uninstall`, and `peel orphans --remove` pass it by.
- **The user's exclusions reach every scanner**, so an excluded item never appears in the first place.
- **Resetting an app clears its settings, never the app.** It takes the app's own data only when the user
selects it, needs the app to be quit, and inside a sandboxed app's container never touches `Documents`,
diff --git a/README.md b/README.md
index 53786a8d..d2bef877 100644
--- a/README.md
+++ b/README.md
@@ -63,9 +63,10 @@ Peel is free and open source, and it speaks English and 17 other languages.
containers and group containers, preferences, saved state, logs, launch agents and daemons, plug-in folders, and
more. Each file comes with the reason it matched, such as the app's bundle identifier, its signing team, or a
Homebrew cask that names it.
-- **Only the sure things are selected.** Files that certainly belong to the app are selected for you. A file
- another installed app also uses is shown but never selected, and anything Peel is less sure of waits under
- Review Before Removing.
+- **Only the sure things are selected.** Files that certainly belong to the app are selected for you, unless
+ Peel sees something inside that may exist nowhere else, such as a crypto wallet, a signing key, or a
+ repository. A file another installed app also uses is shown but never selected, and anything Peel is less sure
+ of waits under Review Before Removing.
- **Several ways in.** Choose an app in the list, drop one on Peel's Dock icon, select several apps at once, or
Control-click an app in Finder and choose Uninstall with Peel. With Watch the Trash on, Peel notices when you
drag an app to the Trash yourself and offers to clear what it left behind.
@@ -151,6 +152,9 @@ A cleaner should never cost you something you wanted. Peel is built around that.
- **Protected places stay protected.** Peel refuses to move iCloud Drive, keychains, your SSH and signing keys, the
keys of crypto wallets, Mail, Messages, Safari, Contacts, Calendars, Notes, photo and music libraries, iPhone and
iPad backups, and the Desktop, Documents, and Downloads folders themselves. No selection can override it.
+- **Crypto wallets are never selected for you.** Beyond the places wallets keep their keys, a folder an uninstall
+ or Orphaned Files finds a wallet or a signing key in is shown with that reason and moves only if you select it
+ yourself. [SAFETY.md](SAFETY.md#crypto-wallets) says how Peel knows one.
- **Checked again at the last moment.** Peel looks at each item once more right before it moves, so something
swapped in the meantime stays where it is.
- **Nothing shared, nothing unknown.** A file another app also uses is never selected for you. A folder Peel
diff --git a/SAFETY.md b/SAFETY.md
index ef69ff2a..60233c03 100644
--- a/SAFETY.md
+++ b/SAFETY.md
@@ -2,8 +2,8 @@
Peel removes files. So the question that matters most isn't whether someone can break in. It is **whether Peel can
take something you can't get back**, and this page answers it: what Peel never removes, what it never deletes, what
-it selects for you and what it leaves to you, how a reset stays within an app's settings, and what its helper,
-which runs as root, may do.
+it selects for you and what it leaves to you, how it keeps crypto wallets, how a reset stays within an app's
+settings, and what its helper, which runs as root, may do.
To report a way around any of this, see [SECURITY.md](SECURITY.md).
@@ -153,6 +153,23 @@ In Duplicates, one copy of every group always stays, and a file that changed sin
Some things are shown and never removed at all, because the removal cannot be undone: local Time Machine
snapshots are explained, never deleted.
+## Crypto wallets
+
+A wallet's keys can be the only way to what they hold, so Peel keeps them in three ways.
+
+- **Where wallets keep their keys is never removed.** The 58 places in the table at the top of this page, each
+ read from the wallet's own documentation or source, are refused outright by the app, the `peel` tool, and the
+ helper, and so is any folder that holds one. What comes back on its own beside a key, such as a downloaded
+ blockchain, can still go.
+- **A wallet found anywhere else is never selected for you.** When an uninstall or Orphaned Files measures a
+ folder, it also looks inside for the names wallets and key tools give their files: anything called
+ `wallet.dat`, `wallets`, `keystore`, `seed.dat`, `hsm_secret`, or `channel.backup`, anything ending in `.wallet`
+ or `.keys`, and the others `FileSize.isWallet` lists. A folder with one inside is shown with that reason and
+ never selected for you, not even by Select All in Orphaned Files, `peel uninstall`, or `peel orphans --remove`.
+ You can still select it yourself, because a name can mislead: a Java project keeps a `keystore` too.
+- **A folder Peel could not finish reading is treated the same way.** A coin's data folder, with its blockchain,
+ is the one most likely to be too big to read in time, and its wallet may be inside.
+
## What you can exclude
Anything you add to Exclusions is passed to every scanner, so it never appears in the first place: it is