# Spiderfootplus Cloud: results in your account

Spiderfootplus runs on your machine and keeps its results there. If you want
them somewhere you can reach from any browser, push them to your account on
[spiderfootplus.com](https://spiderfootplus.com/account). There you can browse
each scan's grade, findings (with the rule and the evidence behind each),
every event, and what changed since the previous scan of the same target.

Nothing is uploaded unless you push it.

## Set up once

1. Go to [spiderfootplus.com/account](https://spiderfootplus.com/account) and
   **Sign in with OSINTverse** (a verified email is required).
2. Under **CLI tokens**, create a token and copy it. It is shown once.
3. Store it:

   ```sh
   spiderfootplus cloud login      # paste the token at the prompt
   spiderfootplus cloud whoami     # checks it and shows your quota
   ```

The token is kept in the same encrypted key store as `spiderfootplus keys set`.
`SPIDERFOOTPLUS_CLOUD_TOKEN` overrides it (handy in CI). Make one token per
machine, so you can revoke one without touching the others.

## Push scans

```sh
spiderfootplus scan example.com --push          # scan, then upload
spiderfootplus cloud push last                  # upload a scan you already ran
spiderfootplus cloud push example.com b565f370  # several: target or short id
spiderfootplus watch example.com --every 1d --push
spiderfootplus cloud list                       # what is stored
```

Pushing a scan again replaces the stored copy. In the web UI
(`spiderfootplus serve`), **Save to account** on a scan does the same, using
the server's stored token.

## What is stored, and how

- **The upload:** the scan record, its grade, the count of each event type,
  the findings with their rules' descriptions, and every event. It is
  compressed (gzip) before upload; uploads over 25 MB compressed are refused.
- **At rest:** each scan is encrypted with AES-256-GCM under a key derived
  for your account, and bound to its record so it cannot be moved to another.
  The database holds only what the account page lists (target, dates, grade,
  counts).
- **Who can read it:** only your signed-in account. Tokens can upload, list
  and delete your scans; they cannot sign in to the site or read scans in a
  browser.
- **Limits:** 50 stored scans per account. When you push the 51st, the oldest
  upload is removed. You can delete any scan, or revoke any token, on the
  account page.
- **Deleting:** deleting a scan removes it from the database and from storage
  at once.

The site's operators run the service that decrypts scans to show them to you,
so this is private storage, not end-to-end encryption. If a scan must never
leave your machine, do not push it.

## Self-hosting

`SPIDERFOOTPLUS_CLOUD_URL` points the CLI at another deployment of the site
(for example a staging copy). The upload format is `spiderfootplus.scan.v1`:
gzip'd JSON as produced by `spiderfootplus_core::cloud::bundle`.
