Privacy Pass
Privacy Pass (RFC 9576 to 9578) is a way for a browser to present a token saying that somebody vouched for it, built so that the token cannot say who the browser is. Goust takes two kinds. A verification that carried one records it as its attestation, and its score is lowered if something had raised it.
An attestation is optional evidence in the visitor’s favour. Most browsers never present one, and a visitor without one is treated exactly as before.
Private Access Tokens
Section titled “Private Access Tokens”A Private Access Token is issued to a device by an issuer its maker works with, after the maker has attested that the device is a real one in good standing. Safari on current Apple devices answers a request for one by itself, with no prompt and no script involved.
Goust asks for one while the widget loads. A verification that came with a
valid token shows “Private Access Token” as its attestation (pat in a policy),
and a raised score is lowered substantially: a real device vouched for by its
maker is strong evidence that the visitor is not a script on a server.
The first-party requirement
Section titled “The first-party requirement”A browser only answers a token request that comes from the page’s own site. Goust’s challenge service is on another domain, so the request has to go through yours: you expose one path on your own domain that forwards to Goust, and tell the widget where it is.
On the container:
<div class="goust-captcha" data-sitekey="gk_7Qa1XvN3mZ0pR8LdKt2Yb4c9WfHs0EjTqA" data-attest-url="/goust-attest"></div>
Or through the JavaScript API:
goust.render({
element: "#signup-captcha",
sitekey: "gk_7Qa1XvN3mZ0pR8LdKt2Yb4c9WfHs0EjTqA",
attestUrl: "/goust-attest",
});
The path is yours to choose. It must be on the same site as the page, and it
must forward to https://challenge.goust.io/attest with the query string, the
Authorization request header and the WWW-Authenticate response header
intact. With nginx:
location = /goust-attest {
proxy_pass https://challenge.goust.io/attest;
proxy_set_header Host challenge.goust.io;
proxy_ssl_server_name on;
}
The proxy adds nothing and needs no secret. Do not cache the path: every answer is for one challenge.
Without attestUrl the browser has no first-party request to answer, and no
Private Access Token is exchanged. Everything else works the same.
The exchange
Section titled “The exchange”- The loader requests
<attestUrl>?c=<challenge>. - Goust answers
401with aWWW-Authenticate: PrivateTokenchallenge for each issuer it trusts. - A browser that supports Private Access Tokens fetches a token from the
issuer and repeats the request with
Authorization: PrivateToken token=…. This happens inside the browser; your page and the widget never see the token. - Goust verifies the token and answers
200with a replacement challenge, which the widget uses from then on.
A browser without support stops at step 2, and the widget carries on with the challenge it had. A token is bound to the one challenge it was requested for and is accepted once.
Goust passes
Section titled “Goust passes”A Goust pass is a token Goust issues itself. When a visitor’s browser has
proved its work on your site, Goust signs a pass for it blind, and the widget
keeps it. On a later visit the widget redeems one, and that verification shows
“Goust pass” as its attestation (pass in a policy).
Three things follow from how they are issued:
- A pass says little. It is issued to every browser that proved its work, whatever was decided about the visit, because the browser is never told its verdict. It attests that this browser completed a proven-work exchange on your site before, and lowers a raised score modestly.
- A pass is yours. It is issued for your site and redeemed only there.
- A pass needs storage. The widget keeps passes in its own storage, so they exist only on a site that turned on Remember returning visitors in their browser. A pass is spent when it is redeemed.
Neither identifies a visitor
Section titled “Neither identifies a visitor”Both kinds of token are blind-signed. The issuer signs a value it cannot see, and the browser unblinds the signature before presenting it, so a token that is redeemed cannot be matched to the moment it was issued — not by the issuer, and not by Goust.
- From a Private Access Token Goust learns that an issuer it trusts vouched for the device. It does not learn which device, whose it is, or anything the maker knows about it. The issuer does not learn which site asked.
- From a Goust pass Goust learns that some browser earned a pass on your site. It cannot tell which earlier visit that was.
An attestation is therefore not an identity. It has no id, it carries no reputation, and two verifications that presented one cannot be linked through it. Identity and reputation covers how a returning visitor is recognised; an attestation only says that this answer came with a voucher.
In policies
Section titled “In policies”The attestation condition takes pat and pass. “Is one of” matches a
visitor who presented one of the kinds listed; “is none of” matches a visitor
who presented neither. Use it to go easier on attested visitors — an Allow for
pat at a moderate score, say — rather than to demand an attestation, which
most real visitors cannot give.