Repository navigation
Apargon 0.5.0
Security
- Apargon now keeps one promise: a
.pappfile can't send anything off your computer unless you said yes. Each tag is that yes, one line in the popup. - A
.pappfile with no tags now reads every local disk. Before, it saw only its own folder. It writes only its own folder,~/.apargon/<id>, has no network, and opens with no popup, downloaded or not. - All network goes through Apargon's proxy,
localhosttoo. The proxy checks that a site is allowed before it looks up its name. papp-nettakes exact sites only, no*. Links open only to a site inpapp-net. Any other link is dropped, with no dialog.- A yes belongs to the file's exact bytes. Any change, even a comment, asks again. So does a tag that now leads to another folder or program.
- The popup no longer asks you to tick "I trust this page".
- Programs from
papp-runget the same limits as the.pappfile: they read everything, write only its folders, reach only its sites, through the proxy, and get only itspapp-envvariables. - macOS: files a
.pappfile or its programs write are marked as downloaded, so the Mac asks before one runs. - Windows: files Apargon writes for a pick or
papp.saveare marked as downloaded. - Approvals, picks, window places and secrets are kept in Apargon's own data, where no
.pappfile writes. - A
.pappfile quits if Apargon's own process dies. - A
.pappfile whose name or folder has a line break is refused. - macOS: network drives and cloud folders (iCloud Drive, Dropbox and the like) can't be read without
papp-use cloud. - macOS: no mounting, no opening other apps, no Apple Events, and only the basic devices. Programs get no system services.
- Linux: Apargon runs on GNOME with Wayland. On X11 it asks first, as there any app can type into and read other windows. Other desktops are refused until tested.
- Linux: a
.pappfile and its programs can't reach D-Bus or any socket file. Network drives, and drives plugged in after it opens, stay hidden. - Linux: sound passes through a filter that allows only playing and recording on the default device.
- Windows: a
.pappfile reads the folders at the root of each local drive and your user folder. Network drives are skipped, and OneDrive unlesspapp-use cloud. - Windows:
papp-runno longer needs "I trust this page". A program can still make Windows look up a name, as in\\<data>.example.com\x. That's Microsoft's to fix, and it has been reported. - Apargon tells you, but doesn't block: an allowed site can receive any file you have. Code written with
papp-writecan run later, outside Apargon. Dropbox and iCloud upload what's written in their folders. - A hard link already inside a
papp-writefolder reaches the file it links to. - Linux:
papp-socketturns the socket block off. The popup says "Control any program on this computer". - Linux: with
papp-use sound, a.pappfile plays to your default speakers, even when they are on the network. ~in a path can no longer lead elsewhere when the home folder's name has a$.- Linux and Windows: Apargon no longer decodes an image a
.pappfile sends with a notification. The icon arrives as plain pixels. - minimatch updated to 11.0.3 (GHSA-g3hv-75wg-m249).
New
papp.folder: its own folder, the one place it writes without a tag.papp.pickneeds no tag and restarts nothing. Picks are kept after a restart. Withwrite: true, Apargon writes the picked file, or plain file names in the picked folder.papp.picks()lists them.papp.savesaves one file where you pick. It can replace a file, after the OS asks.papp.getSecret,papp.setSecretandpapp.deleteSecretkeep keys sealed with your computer's own store.papp-write all: change any file but Apargon's own.papp-run unfenced: one program with no limits.papp-run ./bin/toolruns a program the.pappfile ships.papp-listen, orpapp-listen network: Apargon answers requests for the.pappfile, from this computer or your network.papp.listengets each one.papp.connect: a TCP connection, with or without TLS, to a site inpapp-net. For database, mail or chat clients.papp-window: size, minimum size, resizable, title bar, frame, see-through, on top, every Space, click-through, hidden from screen sharing, no dock icon, blur and no Apargon mark.papp.windowmoves, resizes, minimizes, maximizes, fades and shows the window.papp.displayslists the screens.window.openon its own file takespapp-windowsettings for that window.- Windows reopen where you left them.
- New
papp-usefeatures:background,login,usb,serial,hid,midi,cursor,cloud, and on macOSbroadcasts,shareandbluetooth. papp.print()andwindow.print()open the system print panel, with no tag.papp.pdf()makes a PDF of the window.papp.menu,papp.contextMenuandpapp.onMenu: menus of its own.papp.traytakes items, a checkbox or radio button, an icon, and clicks for a tray popover.papp.progress,papp.badgeandpapp.attentionon the dock or taskbar icon.papp.onSystem,papp.powerandpapp.keepAwake: sleep, wake, lock, battery, idle time, and keeping the computer awake.papp.trashmoves a file to the Trash.papp.quitandpapp.closeWindowend it or close its window.papp-global-shortcut anyletspapp.shortcutspick keys while it runs. Media keys work alone, likeMediaPlayPause.- Notifications show the
.pappfile's icon and up to three buttons. - The favicon can come from a site in
papp-net. - Linux and Windows: each
.pappfile has its own taskbar icon and title. - Windows: camera, microphone and location work.
papp-nettolocalhostworks, through the proxy.
Changed
Every .papp file needs an edit:
- Add
<meta name="papp-id" content="<uuid>">. A file without one doesn't open. Its folder and secrets follow the id through renames and new versions. - Each
.pappfile asks again once, and starts with emptylocalStorageand IndexedDB, kept now in its own folder. papp-readis gone: every.pappfile reads the local disks. Remove the tag.papp-openis gone: put its sites inpapp-net.papp-nodeis nowpapp-system, with nocontent. It can't be combined withpapp-write,papp-run,papp-net,papp-socket,papp-listenorpapp-env.@electron/remoteis gone.papp-shortcutis nowpapp-global-shortcut.papp-writetakes one folder, no*. Not your home folder, or one that holds it.papp-nettakes a host and an optional port, 443 if none. No scheme, no*.papp-usetakes one feature per tag.papp.saveAsis nowpapp.saveAll.papp.readFiletakes its options in one object:{ encoding: null }for bytes,{ offset, length }for part of a file.papp.rmremoves a folder only with{ recursive: true }.papp.watchgives a handle:close()stops it,closedresolves once it has stopped.papp.spawn:kill()is nowclose(), anddoneis nowclosed.papp.runkeeps up to 64 MB of a program's output. Past that, it stops the program and fails. Usepapp.spawnfor more.papp-listen: with 32 requests waiting for an answer, the next one gets 503.papp.opentakes only anhttp(s)link to a site inpapp-net. It no longer opens files or folders.- Permissions → This Page's Permissions… is now What This File Can Do…, and Approved Pages is now Files You Said Yes To.
- Linux: KDE, sway and other desktops on Wayland are refused for now. Ubuntu 24.04 or newer is needed.
- Windows:
papp-socketandpapp-use bluetoothrefuse the file, for now.
Fixed
- A local video can seek.
- Live reload follows only the
.papp,.cssand.jsfiles it loaded. A file it saves itself no longer reloads it. papp.copyFileno longer loads the whole file into memory.- Saving, and writing to a file or folder you picked, streams the file. It no longer freezes the
.pappfile or fails past about 380 MB. papp.readFilewith{ encoding: null },papp.writeFileandpapp.appendFilestream their bytes too.- A program or connection that sends faster than the
.pappfile takes it now waits, instead of filling memory.write()onpapp.spawnandpapp.connectresolves once the data is taken. papp.spawn: a character split between two chunks of output no longer arrives broken.- Linux: one slow connection through Apargon no longer holds up the others.
- A bad request from a
.pappfile is logged, not shown as an error box. - Windows: a
papp-systemoutput line that starts with{is shown as output, not taken for a request. - Windows: a
.pappfile draws with the GPU.
Apargon checks for a new version once a day when a page opens, unless you turned that off under Permissions. If you did, watch this repository to hear about security fixes: Watch → Custom → Releases.