symion5464
07/13/2026, 10:22 PMsymion5464
07/14/2026, 7:28 PMresource to be
definition resource {
relation reader: user#member | access_token | role#member | service_account#member
relation writer: user#member | access_token | role#member | service_account#member
relation manager: user#member | access_token | role#member | service_account#member
--- CHANGE ---
permission manage = manager
permission write = writer + manager
permission read = reader + writer + manager
}Tess
07/21/2026, 3:01 PMJoey
07/21/2026, 3:52 PMTess
07/21/2026, 3:54 PMTess
07/21/2026, 3:54 PMTess
07/21/2026, 3:56 PMTess
07/21/2026, 3:56 PMJoey
07/21/2026, 3:57 PMJoey
07/21/2026, 3:57 PMTess
07/21/2026, 3:58 PMmor
07/28/2026, 6:50 AMrelation_tuple rows were logically deleted (their deleted_xid was set). We're not sure what caused it, but we found that the following query was executed six times:
UPDATE relation_tuple
SET deleted_xid = $1
WHERE deleted_xid = $2
AND namespace = $3;
Are you familiar with this query? Could you explain exactly what it is supposed to do and under what circumstances SpiceDB executes it?
2. I noticed entries in the alembic_version table such as create-relationship-counters-table and add-index-for-transaction-gc.
What exactly do these values represent? Are they migration identifiers, and what changes do they indicate were applied to the database?maschnelevant
07/29/2026, 9:52 AMStanFyr
07/30/2026, 8:13 AMUNIMPLEMENTED : concrete limit is not yet supported
so.... obviously, that doesn't work...
I checked the issues on github, and did not find a ticket for that. Am I the first one to have this issue ?
to move forward, I set up the readRelationship (the not optimised, not cached, very flexible lookup) but I'd like to avoid that.
So is there an alternative ?
and in the meantime, is there a way to check the amount of entities with a relation on an item to use lookup when small enough, and falling back to the readRelationships ?Joey
07/30/2026, 4:00 PMStanFyr
07/30/2026, 4:01 PMJoey
07/30/2026, 4:07 PMStanFyr
07/30/2026, 4:10 PMStanFyr
07/30/2026, 4:10 PMJoey
07/30/2026, 4:32 PMyetitwo
07/30/2026, 5:07 PMuser:* would be a top-level subject? what's the semantic when you have user:* together with negation (e.g. it's public minus a banlist)?
the likely answer in the long run (and this is how the new query planner will handle it) is that you only return concrete subjects, i.e. the concrete IDs that you can definitely say are a part of the result set, ignoring wildcards.
that's different enough from the behavior of the current iteration of the endpoint that we haven't gone and made the change yet.StanFyr
07/30/2026, 5:08 PMStanFyr
07/30/2026, 5:09 PMJoey
07/30/2026, 5:13 PMJoey
07/30/2026, 5:13 PMJoey
07/30/2026, 5:13 PMToi
08/03/2026, 2:47 PMkorzhik
08/04/2026, 1:48 PMzedtoken in a microservice architecture when permissions are granted/revoked by admins?
For granting permissions, there is no big problem. You can grant the permission in one service and eventually send the zedtoken to another service or store it in a DB. It is acceptable if the user gets access a couple of seconds later.
But what happens when we remove/revoke a permission? Revoking a permission should ideally take effect immediately.
Imagine an admin revokes a user's permission in one service/pod. We then need to propagate the corresponding zedtoken to the service handling the user's queries as quickly as possible.
If everything is handled within one microservice, we have the problem of storing the zedtoken in two databases (SpiceDB and our DB). Potentially, we could lose the latest zedtoken if our DB transactions fail.
If the permission management and user queries are handled by different microservices, we have the same persistence problem, plus eventual consistency. We need to somehow transfer the zedtoken to another microservice, which could take some time depending on the implementation (Kafka, etc.).
So, in this case, understanding whether a relation was deleted by an admin is not immediately possible unless we use fully_consistent for such queries.
Am I missing something here? Is there a recommended pattern for handling zedtoken propagation in this kind of architecture, especially when permission revocation needs to take effect immediately?
Thanks in advance.illest_eel
08/06/2026, 8:34 AMpg_dump/restore is not recommended and instead we should be using zed backup for backups.
For the same reasons, should RDS automated backups be avoided, or are they fine as those are physical snapshots of storage rather than logical backups produced by pg_dump?pxdr
08/11/2026, 10:37 AM