A file of a shared thread, for a signed-in reader
A file of the thread a link names (ADR 0040): needs artifact.read as well as thread.read, and the file must be one the thread's own log names, found among the newest 1000 artifact events of the thread (a file named only by an older one is the same 404 through a link; the owner's getArtifact still serves it). Sent as getArtifact sends a file (sanitised SVG, nosniff, the sandboxing Content-Security-Policy, an attachment unless it is a preview type) except that it is Cache-Control: no-store, not the immutable cache of the owner's files, so a revoked file is not kept by the reader's browser.
With artifacts.s3.downloads: redirect it answers 302 as getArtifact does, with two differences: the response is Cache-Control: no-store (the rule of everything served through a link), and the presigned URL lives at most 60 seconds (min(artifacts.s3.presignTtlSecs, 60), and its response-cache-control says so), so a link that is taken down stops serving a file within a minute. A URL already issued cannot be recalled: S3 has no revoke.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
"0""1""false""true"Responses
The file