DEV Community

Emily Woods
Emily Woods

Posted on Originally published at Medium Fully Autonomous

Your Side Project Needs a Second User Before It Needs Another Feature

Before adding another dashboard, try opening your private data from someone else’s account.

Two account windows ask whether an app works for its owner and correctly denies another user.

Your side project looks lovely when you are the only person using it. You created the account, uploaded the files, wrote the notes and remembered exactly which buttons to press during the demo.

Now create a second account and open a link from the first one.

That tiny change can turn a very convincing project into a very uncomfortable afternoon. Honestly, it is an afternoon worth having before the project reaches your resume.

I like this test because it asks something a polished homepage cannot answer. Does your app understand who owns the work inside it, or does it just understand that somebody has logged in?

You can try it with a job tracker, an AI study tool, a document app or that little dashboard you keep promising to finish. Pick one private object, two accounts and a clear rule about who should be allowed to use it.

Two account windows show that a private document should be available to its owner but not another user.

Give your project someone it cannot automatically trust

Let’s use a tiny interview-notes app. Maya creates a note about an upcoming interview. Zoe signs up separately. Both accounts belong to you for this exercise, and you are testing your own local or development app with made-up data.

Maya can open her note at /notes/42. Copy that address into Zoe’s session.

Use separate browser profiles, or one regular and one private window. Two ordinary tabs usually share the same login cookies, which can quietly turn your two-person experiment back into a one-person demo. Check the signed-in identity in each window before continuing.

Zoe should not see Maya’s private note. She should not see its title in search, download its attachment or change its contents either.

Before touching the code, write the expected result down. For this little app, Maya owns the note and can read, edit and delete it. Zoe has no access unless Maya explicitly shares it.

Already, you have a more useful task than adding another settings page. You have a rule that can be wrong, and a way to find out.

Decide what sharing means before adding the Share button

Suppose Maya invites Zoe as a viewer. Now reading should work, while editing and deleting should still fail. If Maya removes the invitation, Zoe’s next request for that note should be denied.

Write those states in a small table. Keep it beside the code so you are checking the product you intended to build, rather than explaining whatever the current implementation happens to do.

Permission table for an owner, stranger, viewer and revoked viewer, with separate read, edit and delete outcomes.

For a bigger version of the same reasoning, try the ownership and revocation parts of this OpenAI-tagged game-store design exercise. Start by writing when someone may download or launch a purchased game, then decide what changes after access is revoked. It is a reported interview exercise, not an official OpenAI question bank, and you can leave the massive download architecture for another day.

Notice how quickly a simple permission becomes a product decision. Your app has to know what being a viewer means, when that status changes and which actions depend on it.

That is much more interesting to discuss than the number of libraries in your README.

Hiding a button does not protect the note

Maybe Zoe cannot see the Edit button. Lovely, the interface is communicating the right thing. But the request behind that button still needs its own permission check.

On your development app, test the underlying read and update operations using Zoe’s authenticated session and Maya’s note ID. Do not substitute Maya’s login credentials along with the ID, because that would test a different situation entirely.

Check both the response and the stored note. An error message is not much comfort if the update happened anyway.

OWASP’s authorization guidance recommends denying access by default and validating permissions on every request. In our example, the server needs to decide whether this signed-in user may perform this action on this particular note.

A hidden edit button is contrasted with a server permission check that either allows an operation or denies it without changing data.

For an owner-only note, the lookup can be scoped to the authenticated owner. Once sharing exists, the rule also needs the relevant membership and permission. A client-supplied owner ID is not proof of ownership.

Replacing 42 with a long random ID does not settle the issue. Someone might receive or retain the link, and the permission must still hold. OWASP explains that distinction in its object-reference guidance.

You do not need a new permissions platform to learn from this exercise. Start with the smallest rule your app actually needs, and make every protected route obey it.

Keep Zoe’s tab open when you remove access

This is my favorite part of the exercise because the neat little table suddenly has to survive time passing.

Let Zoe open the shared note. Then remove her access from Maya’s account without closing Zoe’s tab. Ask Zoe’s session to fetch the note again and attempt an edit.

In our proposed policy, both new requests must fail. The old page being open does not grant future permission.

There is a practical limit, though. Your app cannot make Zoe forget text she already saw or retrieve a file she already downloaded. Updating the screen and preventing new access are different promises, so describe them separately.

If your project issues download links, write down how long an already-issued link remains valid. If immediate revocation matters, the delivery path has to enforce that requirement. Do not promise instant revocation while handing out access that lasts independently for an hour.

Finally, sign out of Maya’s account and sign in as Zoe in that same browser profile. Look for Maya’s old note in the interface while fresh data loads. Server authorization and cleaning up account-specific screen state are separate jobs, and both deserve attention.

You have now tested a transition, which is where a tidy demo often stops being tidy.

Save the evidence, not just the fix

Once you find a gap, give it a regression test with a boringly specific name. Something like viewer_cannot_edit_private_note tells future you what broke without requiring a detective board.

Keep a positive test beside the negative one. Maya should still be able to edit her own note after Zoe is blocked. An app that denies everybody can look impressively secure while being completely unusable, which is a rather expensive way to implement privacy.

A private-note leak becomes a server ownership check and two regression tests showing that the owner can read while the other account is denied.

Your next practice session can stay small enough to finish.

  • Create two isolated sessions and one private note with fictional content.
  • Write the expected read, edit and delete permissions before running the checks.
  • Try those operations from both identities, then repeat after sharing and revoking access.
  • Fix one mismatch and keep tests showing both the intended success and the intended denial.
  • Add a short README example explaining the rule, the failing case and the evidence that the change works.

Treat this as a focused engineering exercise, not a certificate that the whole app is secure. Its value is that you can explain one real boundary clearly.

Give yourself a better project story

Imagine discussing this project in an interview. Instead of listing your stack, you can explain how a private note stays private, what a viewer can do and what happens when that permission disappears.

If you found and fixed a bug, describe the actual bug. If everything passed, describe the checks you added. Either version is stronger than inventing a dramatic failure for the story.

I prefer a small project with an honest boundary over an ambitious demo whose rules nobody has challenged yet. There is room for the prettier dashboard later.

For your next session, invite that second account in and see what it can reach. You might discover that the most useful feature your project needed was a well-tested refusal.

~ Emily

Top comments (0)