Docs / Secrets

Secrets

Secrets stores API keys and other sensitive values for a Project, encrypted, in SarpiVault. You save a value once, link it to a Component environment, and your running app fetches it over HTTPS when it needs it. The value is write-only: the console and the API never show it back. Secrets is in closed beta: it is only available to Project owners that staff have given access.

Closed beta

Attention

Secrets is off by default. If the owner of the Project does not have access, the Secrets section says so and every action is refused with 403 feature_unavailable. Access is checked against the Project owner, not against whoever is clicking: an editor who creates a secret creates it in the owner's vault. Ask in a support ticket if you want to join the beta.

Create and replace a secret

  • Name: letters, digits and underscores, starting with a letter or underscore, at most 128 characters. A name that is already taken answers 409 name_taken. The console checks the shape before sending; names have to match what the fetch API accepts.
  • Value: non-empty, at most 64 KiB. It is only ever received and forwarded to SarpiVault, which encrypts it. No response, log line or error message carries it, and the value field in the console is cleared after saving.
  • Replace: save a new value under the same name. The version number goes up by one. Apps that fetch the secret get the new version on their next fetch; the Secrets list shows which version each link last issued. Old versions are destroyed once a newer one has existed for 30 days.
  • Scopes: secrets:read lists secrets (names, versions, links, never values) and reads the read log; secrets:write creates and replaces. Creating and replacing are in the public API (POST and PUT projects/{id}/secrets).
Attention

Anyone who can change code, build commands or environment variables in the Project can make a linked app read this value. The console says so next to the form. Secrets keeps a value away from people who only look at the Project; it does not hide it from code that you let run with it.

Reading a secret at runtime

Your app calls the public fetch API with its token as a bearer credential. The address is the one in SARPIVAULT_URL; the service itself is vault.sarpius.dev.

bash
curl -sS -H "Authorization: Bearer $SARPIVAULT_TOKEN" "$SARPIVAULT_URL/v1/secrets/STRIPE_KEY"
# {"name":"STRIPE_KEY","value":"...","version":3}

curl -sS -H "Authorization: Bearer $SARPIVAULT_TOKEN" "$SARPIVAULT_URL/v1/secrets"
# {"secrets":[{"name":"...","value":"...","version":1}, ...]}
  • Only GET is accepted. A name that is not linked to this app environment is 404 not_found.
  • Errors: 401 invalid_token, 403 feature_unavailable (the owner's access was withdrawn; this takes effect within about ten seconds), 409 owner_locked, 413 response_too_large (the response ceiling is 4 MiB), 429 rate_limited (per token, per account, and for invalid tokens), 503 unavailable.
  • Every read is written to the read log in the same transaction, before the value is returned. A read that cannot be logged does not happen.
  • Fetch when you need the value rather than keeping your own copy for long: that way a replaced or unlinked secret takes effect without redeploying code.

What is never shown back

  • The value, after you save it. Lists, links and the read log carry names, versions and metadata only.
  • The read token SARPIVAULT_TOKEN, to anyone through the console or the API.
  • The value in logs: the service logs error classes and codes, never a value or a token.

The read log (last 90 days) shows when, which secret and version, who read it (an app or a platform deploy), the source IP and the outcome.

What it does not do yet

  • No read token for use outside the platform that you can create yourself. The only credential is the per-app token the platform injects on deploy.
  • No version history you can browse or roll back to.
  • No delete of a secret in the console yet; you can unlink it from every app.
  • No price is stated here; the console shows any charge where it applies.
  • No general availability: closed beta.

Sarpius est un nom commercial de Synthwave-technologies.nl · KvK 73239038 · n° TVA NL002410192B67 · Apeldoorn, Pays-Bas

(c) 2026 Sarpius. Tous droits réservés.

Hébergé dans l'UE