What should the default link lifetime be: 7, 30 or 90 days?
The design lists this as an open question.
Album owners can revoke and expire invite links and remove any photo, replacing today's permanent links.
🎧 Listen instead · Roasting the change that finally locks the front door Roast
Intro
Maya Welcome back to the spec roast. Today's change has a noble mission: stop family photo albums from being open to the whole internet.
Leo Noble. Overdue. Today, an album link never expires and can't be revoked. Forward it to the wrong group chat and your cousin's coworkers are uploading memes into grandma's birthday album.
What it is
Maya Which is exactly what this fixes. Owners can revoke the link, and a new one is issued straight away.
Leo I'll give it that. One click and the leak is closed. Applause, genuinely.
Key decisions
Maya And the clever bit: revoking doesn't keep a list of banned links. It just swaps the album's token for a new random one.
Leo Clever, and also a nuclear option. Rotate the token and every link dies, including the one aunt Carmen printed and stuck on her fridge.
Maya The design calls that acceptable, because rotating is a deliberate owner action.
Leo Deliberate, sure. Until the owner realises the whole family is now locked out and the group chat lights up.
Maya Fair. Next: links also expire. Each token gets an expiry date, and the lifetime comes from configuration.
Leo Lovely. And what is that lifetime?
Maya That's… an open question. Seven, thirty or ninety days.
Leo Undecided. And yet the migration already decided: existing links expire thirty days after release. The task list picked a number the design is still debating.
Maya Okay, that one lands. Pick the default first, or derive the migration from it.
Leo Now my favourite line. Owners get an email three days before a link expires, with a button to extend it.
Maya That's thoughtful.
Leo It is a button to nowhere. No requirement says links can be extended, and no task builds it. We are emailing people a promise.
Maya Point taken. Either add the requirement and the task, or drop the button.
Leo Then there's the breaking change. Permanent links are removed outright.
Maya With a migration: old links expire thirty days after release, and owners can issue new ones any time.
Leo Right. Thirty days for every family to notice, in an app whose main channel to them is… an email we haven't built the button for.
Maya Moderation, then. Owners can now delete any photo, whoever uploaded it.
Leo Good. Also permanent. No undo, no record of who deleted what. One tired thumb at midnight and the wedding photos are gone for everyone.
Maya And one more open question: should people who joined through a revoked link stay in the album?
Leo Because if they stay, revoking the link closes the door after the burglar is already on the sofa.
Maya Last roast, I promise. Rotation, expiry and a data migration all touch who can see what…
Leo And the task list has zero tests. Not one. Access control on vibes.
What you must decide
Maya Alright, serious minute. If you're reviewing this change, here's what's on you.
Maya One: pick the default link lifetime, and make the migration use it.
Maya Two: decide whether members who came in through a revoked link keep their access.
Maya Three: build the extend button, or stop promising it. And add tests while you're at it.
Wrap-up
Leo And say nice things too. Revoking a leaked link in one click is a real improvement. It just needs the rest of the house finished.
Maya Thanks for listening. Go lock your front doors.
The calls this spec leaves to you:
The design lists this as an open question.
The design lists this as an open question.
Owner moderation is irreversible as written, across every member's view.
Breaking change: permanent invite links go away; links created before release expire 30 days after it.
Why: Permanent links cannot be revoked and are the product's main privacy risk.
Instead of: Keep permanent links but allow revocation
Risk: Families relying on an old link lose access without noticing; the 30-day grace period is fixed before the default lifetime is decided.
Revoking replaces the album's token with a new random one instead of keeping a denylist.
Why: A denylist grows forever and must be checked on every join.
Instead of: Denylist of revoked tokens
Risk: Rotation also kills legitimate links already shared with relatives.
The owner can delete any photo; members can delete only their own.
Why: Closes the abuse path of open upload links.
Risk: Deleted photos disappear for everyone, with no undo or audit trail specified.
Each token has an expires_at; the default lifetime is a configuration value.
Why: The lifetime can change without a migration.
Impact: If the team picks 7 or 90 days, existing and new links follow different rules.
Mitigation: Derive the migration expiry from the configured default, or decide the default first.
Impact: The notification offers a button to extend the link, but no requirement or task covers extending.
Mitigation: Add an 'Extend invite link' requirement and task, or drop the button from the scenario.
Impact: Rotation, expiry and the migration change access control with no planned verification.
Mitigation: Add contract tests for rotate and expired join, and a migration test.
flowchart LR
owner([Album owner])
relative([Relative with a link])
subgraph change["This change"]
settings[Album settings<br/>revoke button]
join[Join page<br/>expired-link message]
api[Album API<br/>/albums/id/invite]
job[Daily job<br/>expiry emails]
end
token[(Invite token<br/>+ expires_at)]
mail[[Email]]
owner --> settings --> api
relative --> join --> api
api -->|rotate, check expiry| token
job -->|3 days before expiry| mail --> owner
sequenceDiagram actor O as Owner participant W as Web app participant A as Album API participant T as Token store actor R as Relative (old link) O->>W: Revoke invite link W->>A: POST /albums/id/invite/rotate A->>T: Replace token with a new random one A-->>W: New link W-->>O: Show the new link R->>A: Open the old link A->>T: Look up token T-->>A: Not found A-->>R: Link expired, ask the owner for a new one
flowchart TB
subgraph g0["Data model"]
direction LR
t_1_1["1.1 Add `expires_at` to the album invite token"]
class t_1_1 ub_done
t_1_2["1.2 Migration: set existing tokens to expire…"]
t_1_1 --> t_1_2
end
subgraph g1["API"]
direction LR
t_2_1["2.1 POST /albums/{id}/invite/rotate rotates t…"]
t_2_2["2.2 Reject expired tokens on join with a dedi…"]
t_2_1 --> t_2_2
t_2_3["2.3 Allow owners to delete any photo"]
t_2_2 --> t_2_3
end
subgraph g2["Web"]
direction LR
t_3_1["3.1 Revoke button and confirmation on the alb…"]
t_3_2["3.2 Expired-link message on the join page"]
t_3_1 --> t_3_2
end
subgraph g3["Notifications"]
direction LR
t_4_1["4.1 Daily job that emails owners 3 days befor…"]
end
g0 --> g1
g1 --> g2
g2 --> g3
classDef ub_done opacity:0.55
classDef ub_parallel stroke-dasharray:4 3