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
| Key | Store it | Rotate when |
|---|---|---|
pk_… public | Page code, manifest requests | A project is recreated. |
sk_… secret | Backend secret environment | A 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.cominscript-srcfor the collector. - Pin a content-hashed collector URL if you need an exact version; the alias has a short cache.
Timeouts and fallbacks
| Surface | Suggested fallback | Why |
|---|---|---|
| Low-risk read | Fail open; serve the page | A vendor slowdown should not become a page outage. |
| Signup / login | Step up or review | The decision matters, but a hard failure is worse than a review. |
| Checkout / spend | Fail closed or step up | The cost of a wrong allow is higher. |
| API write | Fail closed or queue | Do 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
| Metric | What it tells you |
|---|---|
| Scoring latency | Whether the dependency is healthy; compare with your timeout. |
| Error and 429 rate | Whether the key, quota, or rate limit is the problem. |
| Flag and block rate | Whether the policy is doing too much or too little. |
| False-positive reports | The cost of being wrong in the other direction. |
Incident playbook
- Scoring is slow or down. Confirm it is Volance, not your relay. Switch the affected routes to the fallback; do not retry-loop.
- Key exposed. Revoke it in Setup, rotate the pair, redeploy the backend, and search the client bundle for
sk_. - Quota reached. Free pauses scores; Pro and Business turn enforcement off and flag the workspace. Check Usage and decide whether to upgrade or wait.
- 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
- Errors & limits — status codes and retries
- Portal · Setup — keys and origins
- Troubleshooting — symptom to fix
- Data & privacy — retention