Juan Fernando CastroandDaniel Salazar d51fc36563 fix(user): account deletion marks memberships first, and a deleted issuer's grants count nowhere (#4655)
* fix(user): account deletion marks the account's group memberships before the row goes

The account's group reads go to the primary while its memberships cascade
away with the row, and its permission cache generation is bumped after the
delete. Both are best effort and never stop the deletion.

* test(user): format the account deletion tests

* fix(user): account deletion refreshes the readings of those it granted to

Before the row goes, members of the groups the account granted to are
read from the primary and marked; after it, they and the holders of its
user-to-user grants have their permission cache generations bumped.
Both reads are bounded and best effort.

* test(user): clear a mark a reused account id may carry before the issuer delete

* fix(user): account deletion bumps cache generations after the flat purges

* fix(permissions): a deleted issuer's user-to-user grants are listed from the primary

* refactor(permissions): keep the held-purge constants under their comment

* fix(permissions): a flat entry whose issuer account is gone grants nothing

* fix(permissions): flat entries whose issuer account is gone count nowhere and are deleted when found

Manage inheritance and share listings skip them as the flat check does,
through one store helper that also deletes them off the request path.

* docs(permissions): one-line note on the orphaned flat entry helper

* fix(permissions): an issuer missing from a replica batch is re-read from the primary before its entry is dropped

Only ids absent on the primary count as gone. Entries naming no usable
issuer are kept, and an orphaned entry is deleted only while it still
names the gone issuer. The helper hands back the issuers it read, and
the flat readers use the ref-keyed read.

* fix(permissions): missing issuers are re-read in one primary query; flat-entry tests wait on the background work

* fix(permissions): share listings pass the users they already read to the orphaned-entry check, so it reads no issuer twice

* fix(permissions): account deletion drops the cached grant rows of the holders it issued to, so a manage grant from it stops passing down

---------

Co-authored-by: Daniel Salazar <daniel.salazar@puter.com>
2026-11-16 09:09:12 -07:00
…
2026-11-15 21:30:34 -05:00
…

Puter.com, The Personal Cloud Computer: All your files, apps, and games in one place accessible from anywhere at any time.

The Open-Source Internet Computer!

« LIVE DEMO »

Puter.com · App Store · AI Builder · Developers · X

screenshot


Puter

Puter is an advanced, open-source, self-hostable internet computer designed to be feature-rich, fast, and highly extensible.

For Users

Puter's goal is to provide you with every app and feature you need to work, create, and play under one roof. From a simple Notepad and Voice Recorder to Spreadsheet and Camera, Puter wants to be the all-in-one solution for your digital life.

For Developers

Puter provides everything you need to build and publish web apps and games. From AI to Cloud Storage and Database to Serverless Workers, Puter has you covered. Puter also helps you get users! Once you build your app, you can publish it on our App Store to reach and monetize users.


Getting Started

💻 Local Development

git clone https://github.com/HeyPuter/puter
cd puter
npm install
npm start

→ This should launch Puter at http://puter.localhost:4100

To run this checkout with Docker, follow Building from source. Create a local docker-compose.override.yml to select the local build; keeping these settings out of docker-compose.yml avoids conflicts when pulling updates and keeps local configuration out of pull requests.


🚀 Self-Hosting

Linux/macOS

curl -fsSL https://puter.com/selfhost | sh

Windows

irm https://puter.com/selfhost?os=windows | iex

→ For more details, see Self-Hosting Puter.


☁️ Puter.com

Puter is available as a hosted service at puter.com.


Support

Connect with the maintainers and community through these channels:

We are always happy to help you with any questions you may have. Don't hesitate to ask!


License

This repository, including all its contents, sub-projects, modules, and components, is licensed under AGPL-3.0 unless explicitly stated otherwise. Third-party libraries included in this repository may be subject to their own licenses.


Translations

Languages
TypeScript 62.3%
JavaScript 34.9%
CSS 1.6%
HTML 1.1%