Skip to main content
Documentation
Docs
Esc

    Loading the search index…

    Security overview

    How Pagebread keeps each organization's data separate, protects credentials and documents, and records who did what.

    This page describes how Pagebread protects your workspace's data, as the product is built today. It covers how workspaces are kept apart, how credentials and documents are handled, and the records you can review.

    Keeping workspaces apart

    Every console request goes through one access check on the server. It works like this:

    1. Identity. The request carries the signed-in person's access token. The server verifies it with the identity provider on every request, and refuses with 401 UNAUTHORIZED when it is missing, expired, revoked or can't be checked. There is no fallback: if the provider can't be reached, the request is refused.
    2. Workspace. The server looks up the workspace this person is a member of. The workspace and the person's role always come from the membership record, never from anything in the request. No header or parameter can name a different workspace or role.
    3. Permission. Each route declares the permission it needs, and the role is checked against a fixed matrix. See Members and roles.
    4. Ownership. Every record a route reads or changes is looked up within that workspace.

    When a record belongs to another workspace, does not exist, or your role does not allow the action, the answer is the same 404 NOT_FOUND. A refusal never confirms that another organization's record exists.

    The database

    The API is the only way to the data. Browsers use Pagebread's identity provider only to sign in; they never query the database directly. In the database, the public roles have no access to any table, sequence or function, row level security is switched on for every table with no policies that would let those roles in, and functions created later get no default access either.

    Applicants and members

    People who fill in your forms don't have Pagebread accounts, so they use narrower credentials:

    • Applicant drafts. Starting an application creates a draft and returns a secret once. Only a hash of it is stored. Every later change to that draft must present the secret in the X-Applicant-Secret header; without it, the draft answers as if it did not exist. Once the application is submitted, the applicant can no longer change it, except to answer an open request for changes.
    • Members. A member signs in to the member portal with a one-time link sent to their email, which starts a session held in an HTTP-only cookie. Links and sessions are stored only as hashes. A change carrying the member cookie from a page that isn't Pagebread's is refused.
    • Tracking. Knowing a submission's id gives an applicant its status, not its contents.

    See Authentication for the details.

    Secrets and logs

    • Payment, email and storage provider keys live only on Pagebread's servers, never in the console's code.
    • Access tokens are never written to logs. Request logs record the shape of a request body (field names and types), never its values, so applicant answers don't end up in logs. Text read from documents is not logged either.
    • Server logs identify people by id, or by a short one-way hash of their email address, never the address itself. Notification emails are not copied into the logs. As a second safeguard, fields that carry email addresses, names, phone numbers, answers, tokens or credentials are masked before a log line is written.
    • Applicant draft secrets, member sign-in links and member sessions are stored as hashes, so a copy of the database can't be used to sign in or change a draft.

    Documents

    Uploaded documents are kept in private storage. Nothing serves them directly. To view one, a reviewer's request passes the same workspace and permission checks as any other record, and gets back a signed link that expires after 5 minutes. A new link is made for each view; links are not stored.

    Approvals

    Changes to what your organization enforces go through approval. A new policy version is proposed with a reason and published only when someone with the approval grant approves it. Approving your own proposal is refused with 409 SELF_APPROVAL_REFUSED, unless you are the only approver in the workspace, in which case the self-approval is recorded as such. Approval by a separate approver depends on your plan; see Editions and limits. Flow versions follow the same pattern: you can't approve your own flow change while another approver can.

    For how this works in the console, see Versions and approvals and Publishing and versions.

    Important

    Granting the approval role is itself controlled: it needs permission to manage members, nobody below owner can grant it to themselves, and anything involving an owner needs an owner.

    Activity log and oversight

    Pagebread keeps an activity log of what people do in your workspace: policy and flow changes and their versions, invitations, role changes, decisions, messages, document uploads, marketplace changes and more. The log is append-only: nothing in the product edits or deletes its entries. Each entry keeps the person's email address as it was at the time, so their history stays readable after they leave.

    The owner can read it on Oversight, which shows what everyone in the organization has been doing and the totals across all of them. Only owners see Oversight; every other role gets 404 NOT_FOUND. Oversight depends on your plan, and so does how far back it shows: the log is kept regardless, and the plan decides how many days of it are visible.

    Note

    Actions taken by Pagebread support on your workspace, such as a suspension, also appear in the log, with "Pagebread support" as the actor.