Ruthless.

Novice · Understand your app · 6 min read

Understand login and permissions

Separate signing in from access rules, and use your notes app to learn what makes a private note private.

← All guidesNovice guidesBy Ruthless AI team

Beginner course · Lesson 4 of 6

Keep this guide beside your Ruthless chat. Copy one prompt, add the example it asks for and paste it into “Message Ruthless”. Nothing is sent until you choose to send it.

Open Ruthless in another tab ↗See all six lessons

The short answer

Login establishes an account identity. Permissions decide which actions that identity may take. Ask GetRuthless to trace both from supplied code and rules, then check the expected behaviour using accounts and data you control in a test version.

What you will learn

Our notes app promises private notes. A sign-in screen is part of that promise, but not its whole implementation. Signing in answers “Who is this person?” Access rules answer “May this person read or change this particular note?” An app can correctly recognise a person and still make the wrong access decision.

Imagine a building reception desk. Showing identification establishes your identity. It does not give you a key to every room. In the notes app, the account identity and a note’s owner field help the backend make an access decision. Hiding another person’s notes on the screen is useful presentation, but private data also needs appropriate checks where it is read or changed.

Gather the identity and access evidence

Bring your checked field list from lesson three. Ask your building tool to locate, without editing, the code that handles sign-in, obtains the current user, reads notes and updates notes. Also ask where storage permissions are defined. Depending on the project, those checks may live in backend code, database rules or a managed service configuration.

You do not need to provide passwords, session cookies, access tokens or actual account identifiers. Share the code that uses them with their values removed. Include a plain statement of the intended rule: “Each signed-in person can read and edit only their own notes.” If your product has sharing or administrators, describe those exceptions explicitly so GetRuthless does not mistake them for bugs.

Ask two separate questions in GetRuthless

Open chat, paste the prompt and supply the reviewed excerpts. First ask how the app identifies a signed-in user. Then ask where it checks the requested note belongs to that user. This separation makes gaps easier to see than a broad request to “check my authentication”. Ask it to cover reading and changing data, because an app may protect one path differently from another.

An explanation is not a security certification. GetRuthless may miss a path, misunderstand a rule or lack important configuration. Treat “I cannot see the rule” as a request for evidence, not proof that the rule does not exist. Use the answer to find the responsible files and improve your understanding.

Try this prompt
Explain identity and permissions in this app for a beginner. Do not edit files. Intended rule: [describe who may read/change what]. Here is my redacted sign-in, current-user, note read/update code and access configuration: [paste]. Explain how the app knows who is signed in, then where it decides whether that person may read or change one note. Name supplied evidence, mark unknown paths and distinguish screen filtering from enforced access rules. Suggest expected outcomes for two test accounts I own, without using real customer data or accessing anyone else’s information.

Example: identity is not permission

Example output: “The sign-in service supplies the current account identity. Each note has an owner_id. The supplied database rule allows reads only when owner_id matches that identity. The update rule was not included, so I cannot explain whether edits receive the same protection.” This is a useful partial answer, with a clearly named remaining question.

In a test version, create an invented note using test account A. Sign out, then sign in using test account B, both controlled by you. Check that the normal notes screen does not show A’s note. Return to A and confirm its note remains available. This checks a visible journey; it does not prove all direct data requests are protected. Have a qualified independent check cover deeper access paths before relying on a privacy claim.

State the rule before judging the code

Small task: finish these sentences: “Login tells the app…” and “The note-read permission allows…” Use your actual intended behaviour. Quiz: if a person knows a note’s identifier, should that alone let them read it? For our private notes app, no. An identifier selects a record; the access rule still needs to permit the action.

Save the checked explanation, unresolved paths and the exact test outcomes. In lesson five we will use an error message to investigate a failed Save without exposing credentials or treating every failure as a login problem.

Common questions

Does hiding a button protect the operation?

It helps guide the interface, but a hidden button alone does not demonstrate that the underlying operation rejects unauthorised requests. Locate the enforced check as well.

Can GetRuthless guarantee my notes are private?

No. It can explain the evidence you supply and identify questions to investigate. A privacy assurance requires checks across the actual deployed paths and configuration, not just a chat answer or one successful screen test.

Sources & further reading

  1. GetRuthless chat

The example prompts and workflows are GetRuthless guidance. Source references support the concepts explained; they are not an endorsement of GetRuthless.

Put the guide into practice.

Open Ruthless and choose an available standard or abliterated model suited to your task. Copy a prompt above, add the context it asks for and check the result. You can compare models in the same workspace; see current pricing before sending requests.