---
title: "Security surface"
description: "Everything the package adds to an app that someone outside can reach, by kind: routes, public functions, env names, webhooks and public pages, reviewed as one checkpoint for 0.2.0, with every public function probed the way an attacker would call it."
canonical_url: "https://nuxt-backend.dev/docs/ship/security/surface"
---
# Security surface

> Everything the package adds to an app that someone outside can reach, by kind: routes, public functions, env names, webhooks and public pages, reviewed as one checkpoint for 0.2.0, with every public function probed the way an attacker would call it.

Version: nuxt-backend 0.6.x · Tab: Ship · Kind: reference · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

A security review starts from an inventory: everything an outsider can reach. This page is that inventory for an app built on the package. The [security model](https://nuxt-backend.dev/docs/ship/security) says how each part is guarded. For `0.2.0`, the whole surface was reviewed as one checkpoint once the release's features had landed, and the repository's `SECURITY.md` carries the same list with what each review found.

## What it covers

<table>
<thead>
  <tr>
    <th>
      Kind
    </th>
    
    <th>
      What is listed
    </th>
    
    <th>
      Where each is documented
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Routes
    </td>
    
    <td>
      Every HTTP route on the deployment and on the Nuxt server: the auth routes, the webhooks, the AI stream, the health checks, the unsubscribe and file routes, the push worker
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/backend/http-routes">
        HTTP routes
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Public functions
    </td>
    
    <td>
      Every query, mutation and action of the scaffold and of the setups an app turns on, with who it answers
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/backend/component#functions">
        Component functions
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Env names
    </td>
    
    <td>
      Every name the app and the deployment read, and what its absence does
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/environment-variables">
        Environment variables
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Webhooks
    </td>
    
    <td>
      Every inbound route a provider signs, and its fail-closed outcomes
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/ship/security/webhooks">
        Register webhooks
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Public pages
    </td>
    
    <td>
      Every page the module adds that a visitor reaches signed out
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/ui/pages">
        Pages
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Uploads and links
    </td>
    
    <td>
      What an upload is checked for, and what a share link lets an anonymous visitor read
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/data/files">
        Files
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Services
    </td>
    
    <td>
      Each provider the app sends data to, what it holds and where
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services">
        Service map
      </a>
    </td>
  </tr>
</tbody>
</table>

## What 0.2.0 adds

Everything below is new since `0.1`. Who a function answers is said in the words of the probe suite's policies: *anyone*; *signed in*; a *member* of the active workspace; a *billing manager* (its owner or admin); an *administrator* (the app-wide admin role). Each is read fresh on every call, not from the session token. *In person* means an administrator impersonating the account is refused. *Recent sign-in* means a session signed in more than ten minutes ago is refused until the person signs in again. *Own ids only* means someone else's ids are refused.

### Routes

<table>
<thead>
  <tr>
    <th>
      Route
    </th>
    
    <th>
      Where
    </th>
    
    <th>
      Guarded by
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        /email/unsubscribe
      </code>
    </td>
    
    <td>
      Deployment, <code>
        GET
      </code>
      
       and <code>
        POST
      </code>
    </td>
    
    <td>
      The signed token of the email's <code>
        List-Unsubscribe
      </code>
      
       link (RFC 8058); it can only take mail away
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /backend/health
      </code>
    </td>
    
    <td>
      Deployment, <code>
        GET
      </code>
    </td>
    
    <td>
      Public: each capability's state; the detail only for an administrator's session, or on a deployment named <code>
        development
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /storage/<id>
      </code>
    </td>
    
    <td>
      Deployment, <code>
        GET
      </code>
      
      , with <code>
        setupStorage
      </code>
    </td>
    
    <td>
      A signature under the app's secret that expires; anything but a raster image downloads, under a sandboxing content security policy
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /api/backend/health
      </code>
    </td>
    
    <td>
      App
    </td>
    
    <td>
      The same as the deployment's health
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /api/human-proof
      </code>
    </td>
    
    <td>
      App, <code>
        POST
      </code>
    </td>
    
    <td>
      The bot check: it signs a proof for one call, for one target, that lasts a minute
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /api/backend/visitor-ip
      </code>
    </td>
    
    <td>
      App, <code>
        GET
      </code>
    </td>
    
    <td>
      Public, never cached: the caller's own address, which nothing keeps
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /_backend/push/worker.js
      </code>
    </td>
    
    <td>
      App, <code>
        GET
      </code>
    </td>
    
    <td>
      Public: the push service worker, the same file for everyone
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /manifest.webmanifest
      </code>
    </td>
    
    <td>
      App, <code>
        GET
      </code>
    </td>
    
    <td>
      Public: the web app manifest, once the app has its icons and brand
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /api/backend/_monitoring
      </code>
    </td>
    
    <td>
      App, <code>
        nuxt dev
      </code>
      
       only
    </td>
    
    <td>
      Same site; never in a build
    </td>
  </tr>
</tbody>
</table>

The webhook routes are the same two as in `0.1`, `/billing/events` and `/email/events`. What `/email/events` does with an authentic delivery grew: inbound mail (`email.received`) files contact replies and support threads, and bounces and complaints mirror the provider's suppression list.

### Public functions of the scaffold

The starter's `backend/` exports these beyond what `0.1` had:

<table>
<thead>
  <tr>
    <th>
      Module
    </th>
    
    <th>
      Functions
    </th>
    
    <th>
      Who
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        account
      </code>
    </td>
    
    <td>
      <code>
        exportAccountData
      </code>
      
      , <code>
        getAccountExport
      </code>
      
      , <code>
        getAccountDeletion
      </code>
      
      , <code>
        getConsents
      </code>
      
      , <code>
        grantConsent
      </code>
      
      , <code>
        withdrawConsent
      </code>
      
      , <code>
        chooseStorage
      </code>
      
      , <code>
        completeOnboarding
      </code>
    </td>
    
    <td>
      signed in, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        account
      </code>
    </td>
    
    <td>
      <code>
        getOnboarding
      </code>
    </td>
    
    <td>
      signed in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        account
      </code>
    </td>
    
    <td>
      <code>
        cancelAccountDeletion
      </code>
    </td>
    
    <td>
      anyone holding the emailed link's token, or the signed-in account itself
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        account
      </code>
    </td>
    
    <td>
      <code>
        getConsentTerms
      </code>
    </td>
    
    <td>
      anyone: the terms an app asks people to agree to
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        admin
      </code>
    </td>
    
    <td>
      <code>
        listUsers
      </code>
      
      , <code>
        getUser
      </code>
      
      , <code>
        listWorkspaces
      </code>
      
      , <code>
        getWorkspace
      </code>
      
      , <code>
        getFunnel
      </code>
    </td>
    
    <td>
      administrator, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      <code>
        getCosts
      </code>
    </td>
    
    <td>
      administrator, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        audit
      </code>
    </td>
    
    <td>
      <code>
        listActivity
      </code>
      
      , <code>
        getActivation
      </code>
      
      , <code>
        getSource
      </code>
    </td>
    
    <td>
      signed in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        audit
      </code>
    </td>
    
    <td>
      <code>
        dismissActivation
      </code>
      
      , <code>
        recordSource
      </code>
    </td>
    
    <td>
      signed in, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        audit
      </code>
    </td>
    
    <td>
      <code>
        listWorkspaceActivity
      </code>
    </td>
    
    <td>
      billing manager
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        audit
      </code>
    </td>
    
    <td>
      <code>
        listAllActivity
      </code>
    </td>
    
    <td>
      administrator
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      <code>
        listSignInAlerts
      </code>
    </td>
    
    <td>
      signed in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        getPricing
      </code>
    </td>
    
    <td>
      anyone: the price list the provider's checkout shows anyway
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        getBillingAccess
      </code>
    </td>
    
    <td>
      member
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        getWithdrawal
      </code>
      
      , <code>
        getCancelFlow
      </code>
    </td>
    
    <td>
      billing manager, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        acceptSaveOffer
      </code>
      
      , <code>
        withdraw
      </code>
      
      , <code>
        cancelPendingChange
      </code>
    </td>
    
    <td>
      billing manager, own ids only, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        getSentGifts
      </code>
    </td>
    
    <td>
      signed in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        resendGift
      </code>
      
      , <code>
        changeGiftRecipient
      </code>
      
      , <code>
        rescheduleGift
      </code>
    </td>
    
    <td>
      signed in, own ids only, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        cancelGift
      </code>
    </td>
    
    <td>
      signed in, own ids only, in person, recent sign-in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        getBillingConsole
      </code>
    </td>
    
    <td>
      administrator
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        getRevenue
      </code>
    </td>
    
    <td>
      administrator, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        getEmailPreferences
      </code>
      
      , <code>
        setEmailTopic
      </code>
      
      , <code>
        unsubscribeAllTopics
      </code>
      
      , <code>
        recordTimeZone
      </code>
      
      , <code>
        dismissAnnouncement
      </code>
    </td>
    
    <td>
      signed in, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        getEmailLink
      </code>
      
      , <code>
        unsubscribeByLink
      </code>
      
      , <code>
        confirmEmailTopic
      </code>
    </td>
    
    <td>
      anyone holding the email link's signed token
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        getAnnouncements
      </code>
    </td>
    
    <td>
      anyone: the live notices; a signed-out caller reads none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        getAnnouncementsConsole
      </code>
      
      , <code>
        getSuppressions
      </code>
    </td>
    
    <td>
      administrator, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        publishAnnouncement
      </code>
      
      , <code>
        endAnnouncement
      </code>
      
      , <code>
        previewAnnouncement
      </code>
      
      , <code>
        sendAnnouncement
      </code>
      
      , <code>
        cancelAnnouncement
      </code>
      
      , <code>
        liftSuppression
      </code>
    </td>
    
    <td>
      administrator, in person, recent sign-in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        flags
      </code>
    </td>
    
    <td>
      <code>
        getFlags
      </code>
      
      , <code>
        exposeExperiment
      </code>
    </td>
    
    <td>
      anyone: the flags a page renders by, and the experiment arm it shows
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        flags
      </code>
    </td>
    
    <td>
      <code>
        listFlags
      </code>
      
      , <code>
        getExperiments
      </code>
    </td>
    
    <td>
      administrator, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        flags
      </code>
    </td>
    
    <td>
      <code>
        setFlag
      </code>
    </td>
    
    <td>
      administrator, in person, recent sign-in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        notifications
      </code>
    </td>
    
    <td>
      <code>
        listNotifications
      </code>
      
      , <code>
        getUnreadCount
      </code>
      
      , <code>
        markNotificationsRead
      </code>
      
      , <code>
        getNotificationChannels
      </code>
      
      , <code>
        setNotificationChannel
      </code>
      
      , <code>
        subscribePush
      </code>
      
      , <code>
        unsubscribePush
      </code>
    </td>
    
    <td>
      signed in, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        notifications
      </code>
    </td>
    
    <td>
      <code>
        getPushConfig
      </code>
    </td>
    
    <td>
      anyone: the app's web push public key
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        webhooks
      </code>
    </td>
    
    <td>
      <code>
        getWebhookDeliveries
      </code>
    </td>
    
    <td>
      administrator, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        webhooks
      </code>
    </td>
    
    <td>
      <code>
        replayWebhookDelivery
      </code>
    </td>
    
    <td>
      administrator, in person, recent sign-in
    </td>
  </tr>
</tbody>
</table>

### Public functions of the setups an app turns on

A setup's `api` holds functions the starter doesn't export. An app that turns the feature on re-exports them:

<table>
<thead>
  <tr>
    <th>
      Setup
    </th>
    
    <th>
      Functions
    </th>
    
    <th>
      Who
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        setupAdmin({ reports })
      </code>
    </td>
    
    <td>
      <code>
        reportContent
      </code>
    </td>
    
    <td>
      signed in, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAdmin({ reports })
      </code>
    </td>
    
    <td>
      <code>
        sendNotice
      </code>
    </td>
    
    <td>
      anyone, behind the bot check and the per-mailbox and deployment-wide limits
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAdmin({ reports })
      </code>
    </td>
    
    <td>
      <code>
        getAppeal
      </code>
      
      , <code>
        appealDecision
      </code>
    </td>
    
    <td>
      anyone holding the appeal link's token, emailed to the author
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAdmin({ reports })
      </code>
    </td>
    
    <td>
      <code>
        getReports
      </code>
    </td>
    
    <td>
      administrator, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAdmin({ reports })
      </code>
    </td>
    
    <td>
      <code>
        decideReport
      </code>
      
      , <code>
        flagCrime
      </code>
      
      , <code>
        decideAppeal
      </code>
    </td>
    
    <td>
      administrator, in person, recent sign-in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAccess
      </code>
    </td>
    
    <td>
      <code>
        getAccessPhase
      </code>
      
      , <code>
        checkInvite
      </code>
    </td>
    
    <td>
      anyone; checking a code spends the per-caller and deployment-wide limits
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAccess
      </code>
    </td>
    
    <td>
      <code>
        getAccessConsole
      </code>
    </td>
    
    <td>
      administrator, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAccess
      </code>
    </td>
    
    <td>
      <code>
        setAccessPhase
      </code>
      
      , <code>
        createInvite
      </code>
      
      , <code>
        revokeInvite
      </code>
      
      , <code>
        admitEmails
      </code>
    </td>
    
    <td>
      administrator, in person, recent sign-in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupWaitlist
      </code>
    </td>
    
    <td>
      <code>
        getWaitlistQuestions
      </code>
      
      , <code>
        joinWaitlist
      </code>
    </td>
    
    <td>
      anyone; joining passes the bot check and the per-address and deployment-wide limits
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupWaitlist
      </code>
    </td>
    
    <td>
      <code>
        waitlistStatus
      </code>
      
      , <code>
        leaveWaitlist
      </code>
    </td>
    
    <td>
      anyone holding the entry's signed status link
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupWaitlist
      </code>
    </td>
    
    <td>
      <code>
        getWaitlistConsole
      </code>
      
      , <code>
        getWaitlistCaps
      </code>
    </td>
    
    <td>
      administrator, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupWaitlist
      </code>
    </td>
    
    <td>
      <code>
        admitWaitlist
      </code>
      
      , <code>
        declineWaitlist
      </code>
      
      , <code>
        noteWaitlist
      </code>
    </td>
    
    <td>
      administrator, in person, recent sign-in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupStorage
      </code>
    </td>
    
    <td>
      <code>
        generateUploadUrl
      </code>
    </td>
    
    <td>
      signed in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupStorage
      </code>
    </td>
    
    <td>
      <code>
        getFileUrl
      </code>
      
      , <code>
        getShareLink
      </code>
      
      , <code>
        enableShareLink
      </code>
      
      , <code>
        revokeShareLink
      </code>
    </td>
    
    <td>
      signed in, own files and rows only (<code>
        canShare
      </code>
      
       decides a row)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupReferrals
      </code>
    </td>
    
    <td>
      <code>
        getReferralCode
      </code>
      
      , <code>
        claimReferral
      </code>
      
      , <code>
        setReferralSharing
      </code>
    </td>
    
    <td>
      signed in, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupReferrals
      </code>
    </td>
    
    <td>
      <code>
        getReferrals
      </code>
    </td>
    
    <td>
      signed in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupReferrals
      </code>
    </td>
    
    <td>
      <code>
        previewReferral
      </code>
    </td>
    
    <td>
      anyone holding a code: the inviter's first name and the program's terms
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupReferrals
      </code>
    </td>
    
    <td>
      <code>
        getReferralConsole
      </code>
    </td>
    
    <td>
      administrator
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupReferrals
      </code>
    </td>
    
    <td>
      <code>
        resolveReferral
      </code>
    </td>
    
    <td>
      administrator, in person, recent sign-in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupEmail
      </code>
    </td>
    
    <td>
      <code>
        submitContactMessage
      </code>
    </td>
    
    <td>
      anyone, behind the bot check and the per-address limit; refused to an administrator acting as an account
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupEmail
      </code>
    </td>
    
    <td>
      <code>
        getSandboxInbox
      </code>
    </td>
    
    <td>
      anyone, only with <code>
        EMAIL_DEV_INBOX
      </code>
      
       set and never in production; elsewhere it answers an empty list
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupEmail
      </code>
    </td>
    
    <td>
      <code>
        getInboxConsole
      </code>
    </td>
    
    <td>
      administrator, in person
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupEmail
      </code>
    </td>
    
    <td>
      <code>
        replyToInbox
      </code>
    </td>
    
    <td>
      administrator, in person, recent sign-in
    </td>
  </tr>
</tbody>
</table>

The backend component's own functions, such as `access.rekeyInvite` (an invitation code moved to the current auth secret's hash) and `notifications.channelOpen` (whether a person lets one kind of message through one channel), are no public surface: only the app's own functions can call a component's.

### Env names

New: `BACKEND_ENVIRONMENT`, `EMAIL_MARKETING_FROM`, `EMAIL_REGION`, `EMAIL_DEV_INBOX`, `AI_GATEWAY_API_KEY`, `PROVENANCE_PRIVATE_KEY`, `PROVENANCE_CERTIFICATE`, `PUSH_PUBLIC_KEY`, `PUSH_PRIVATE_KEY`, `PROTECTION_PROOF_SECRET`, `PROTECTION_CHALLENGE_SECRET_KEY`, `MONITORING_DSN` and `NUXT_PUBLIC_BACKEND_CHALLENGE_SITE_KEY`. `AUTH_SECRET` can now hold a versioned list, which [rotating it](https://nuxt-backend.dev/docs/ship/security/secrets) writes.

Gone: `AUTH_TRUST_LOCAL_ORIGINS`, `EMAIL_TEST_MODE`, `BILLING_ENVIRONMENT` and `NUXT_BACKEND_LOG_OTP`, which `BACKEND_ENVIRONMENT` replaced, and `NUXT_PUBLIC_BACKEND_SITE_URL`.

### Public pages

New pages a visitor reaches signed out: `/legal/privacy`, `/legal/terms`, `/legal/subprocessors`, `/legal/accessibility`, `/report`, `/unsubscribe`, `/invite`, `/waitlist`, `/r/:code` and `/account/keep`. The ones a link opens (`/unsubscribe`, `/invite`, `/waitlist`, `/r/:code`, `/account/keep`, and an appeal on `/report`) take the link's token as their only authorization, and all but `/report`, a public form, are kept out of search indexes. New signed-in pages: `/admin`, hidden from anyone without the role, `/gifts` and `/welcome`.

### Tools that change a deployment

`npx nuxt-backend env rotate` writes the deployment and, for the webhook secrets, the provider accounts, with every value on `convex env set`'s stdin. `doctor --fix` applies the provider settings the billing findings recommend and turns a webhook endpoint back on, each change only once it is confirmed. Both run on the developer's machine, with the developer's own credentials.

### Removed since 0.1

The hosted agent endpoint is gone, and with it its whole surface: `/mcp`, `/mcp/exchange`, the OAuth routes (`/mcp/authorize`, `/mcp/token`, `/mcp/register`, `/oauth2/consent`) and the consent page. The starter no longer exports `auth:listWorkspaces`, `auth:listWorkspaceMembers`, `billing:createDiscount`, the email admin actions (`sendAsAdmin`, `addContact`, `createSegment`, `createBroadcast`, `sendBroadcast`), the echo stream or `migrations:run`.

## How it is checked

- **Every public function, probed.** The package's test suite calls each public function of the scaffold, and of every setup an app may turn on, the way an attacker would. It calls signed out, as someone else, as someone who no longer belongs, as another workspace's manager, through an administrator's visit, with an old sign-in, and with inputs only the server may choose. Each must refuse exactly what its policy refuses. A setup that adds a public function fails the suite until the function has a policy. A known gap would sit on a list with the unit that closes it. That list is empty, and the suite fails on any new gap.
- **The repository's own checks.** `pnpm test:security` and fallow's security pass run over the whole repository on every change, as `SECURITY.md` describes. At this checkpoint they report no candidate.
- **A deeper review before the release.** The maintainer runs deepsec, an AI-assisted review, over the release candidate, as a step of the release's last phase.

## Related

- [Security model](https://nuxt-backend.dev/docs/ship/security): how each part of the surface is guarded.
- [Rotate secrets](https://nuxt-backend.dev/docs/ship/security/secrets): replacing a secret without signing anyone out.
- [Privacy and data inventory](https://nuxt-backend.dev/docs/ship/compliance/privacy): the personal data behind the surface.
- [Reporting a vulnerability](https://nuxt-backend.dev/docs/ship/security#reporting-a-vulnerability): privately, through GitHub.


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
