Dashboard
API keys and security
Public keys, allowed origins, rotating a key and pausing a project.
The public key
Each project has one or more public keys that look like pk_ followed by 24 letters, digits, - or _. A public key is not a secret: it sits in your page’s HTML for anyone to read. What protects it is the list of allowed origins, checked by the Showbug server on every request.
The project page lists each key with its label, status, when it was created and when it last started a report.
Allowed origins
A request is accepted only when the browser’s Origin header is on the key’s project list. Origins are compared in one normal form:
httporhttps, then the host and an optional port. No path, query or trailing characters.- Case does not matter. The default port is dropped, so
https://app.example.com:443is the same ashttps://app.example.com. - No wildcards. List every subdomain you use, including
www. - Internationalised domain names are stored in their
xn--form, as browsers send them. The dashboard converts them for you. - Up to 50 origins per project.
What an origin check can and cannot do
It stops other websites from using your key in their visitors’ browsers. A script outside a browser can fake any origin, so your per-project limits are what cap the cost of a copied key, and revoking the key stops it.
Rotating a key
A project can hold up to 10 active keys, so you can rotate without downtime:
- On the project page, create a new key. Give it a label, such as the date.
- Deploy your site with the new key in the snippet.
- When the old key’s “last used” time stops moving, revoke it.
A revoked key stops working within 30 seconds and cannot be restored. Widgets still using it tell people that reporting is turned off.
Pausing a project
Pause project stops new reports on every site that uses the project’s keys, without changing your site. Sessions already recorded stay. Resume project turns it back on. Both take effect within 30 seconds.
While paused, the widget answers a click on Start with:
Reporting is turned off on this site right now.To stop new reports without pausing, you can also set the hourly or monthly limit to 0.
How your data is protected
- All traffic uses HTTPS.
- Recordings and replays are stored in a private Amazon S3 bucket, encrypted at rest, under a separate prefix per organisation.
- They are served only to signed-in members of the organisation that owns the project, through the Showbug API.
- Upload links are valid for 5 minutes, for one video chunk of the session that asked for them. A session cannot upload after its time limit.
- Dashboard sign-ins last 7 days.