-
Notifications
You must be signed in to change notification settings - Fork 354
Open
Labels
kind/proposalSomething fundamentally needs to changeSomething fundamentally needs to change
Description
Problem Statement
SpiceDB currently supports expiring relationships ("give access from now until Y"), but not:
- "Give access from X (future time)" (scheduled)
- "Give access from X until Y" (scheduled and expiring)
This forces users to either:
- Use caveats (with the complexity/performance issues that led to native expiration support) by hoisting time management complexity into the application.
- Build external scheduling systems to write the relationships at a specific time
Similar design arguments that justified moving from the caveat-based expiration solution to native expiration times apply to this idea.
Solution Brainstorm
Extend the idea of optional expiring relationships to also support optional scheduled relationships:
- Add
OptionalScheduledAtfield alongsideOptionalExpiresAt - Relationships would be "invisible" until their scheduled time, then activate normally
- They can be used in addition to
OptionalExpiresAtto create active time ranges.
Metadata
Metadata
Assignees
Labels
kind/proposalSomething fundamentally needs to changeSomething fundamentally needs to change