Documentation / Operations

Running it in production.

The integration is small, but it sits in a request path. Treat the scoring call as a dependency: give it a timeout, a fallback, and a log line that explains the decision.

Last updated

Keys

The key boundary is the one rule that never changes.
KeyStore itRotate when
pk_… publicPage code, manifest requestsA project is recreated.
sk_… secretBackend secret environmentA teammate leaves, a leak is suspected, or on a schedule.
  • Rotate issues a new pair and invalidates the old one. Update the backend and the public-key configuration in the same change.
  • Revoke stops backend requests using that key immediately.
  • Reveal requires re-authentication and shows the secret for a short window. Do not paste it into a ticket.

Origins and CSP

  • Allowed origins are complete origins, such as https://example.com. An empty list does not enable browser collection.
  • Browser manifest requests are checked against the list when it is non-empty. Server-to-server calls are not origin-gated.
  • If you set a CSP, allow https://app.volance.com in script-src for the collector.
  • Pin a content-hashed collector URL if you need an exact version; the alias has a short cache.

Timeouts and fallbacks

The scoring call is synchronous. Decide the fallback before you enforce.
SurfaceSuggested fallbackWhy
Low-risk readFail open; serve the pageA vendor slowdown should not become a page outage.
Signup / loginStep up or reviewThe decision matters, but a hard failure is worse than a review.
Checkout / spendFail closed or step upThe cost of a wrong allow is higher.
API writeFail closed or queueDo not write without the decision if the policy requires it.

Use a sub-second timeout. A 4xx or 429 is not billable; a retry is another call, so cap it. A 5xx is a failed call, not a billable score.

Logging

Log the decision, not the evidence: requestId, score, verdict, action, the key or account id, and the rule that fired. Do not log raw requestSignals, the evidence payload, or the secret. The requestId is how you join the route log to the portal session.

Monitoring

Four numbers catch most integration problems.
MetricWhat it tells you
Scoring latencyWhether the dependency is healthy; compare with your timeout.
Error and 429 rateWhether the key, quota, or rate limit is the problem.
Flag and block rateWhether the policy is doing too much or too little.
False-positive reportsThe cost of being wrong in the other direction.

Incident playbook

  1. Scoring is slow or down. Confirm it is Volance, not your relay. Switch the affected routes to the fallback; do not retry-loop.
  2. Key exposed. Revoke it in Setup, rotate the pair, redeploy the backend, and search the client bundle for sk_.
  3. Quota reached. Free pauses scores; Pro and Business turn enforcement off and flag the workspace. Check Usage and decide whether to upgrade or wait.
  4. Unexplained block. Open the session by requestId, read the fired signals and overrides, and check whether a privacy tool or proxy explains the contradiction.

Data retention

Raw scores and sessions are retained for 30 days; aggregates last longer. If your policy requires a shorter window, treat the product retention as an upper bound and avoid storing the evidence payload in your own logs.

Related

Free to start. 10,000 scores a month, one project, no credit card.

Get started free