Second Desk API — Security
This document describes how the Second Desk filings API protects licensees and their keys. It states what is live and verified today, and names what is planned as planned. Verified statements rest on the live audit of November 29, 2026. Nothing in this document is a certification, and we claim none.
How keys work
- Every data route requires an API key in the X-API-Key header. There are no cookie sessions and no browser login for API traffic.
- Keys are scoped. A key carries one plan and one scope: all data, one state, or one city. Scope is enforced on the server on every request. Records outside a key's scope are excluded from search results and counts, and a single record lookup outside scope answers 404, so a scoped key cannot even confirm that an out of scope record exists.
- Keys are issued per licensee. One licensee, one key set, so usage, quota, and revocation never mix between customers.
- A key is shown once, in the issuance response only, and is stored hashed on our side.
- Plans set daily quotas. The OpenAPI spec documents the X-RateLimit-Limit and X-RateLimit-Remaining headers and the daily_quota_exceeded error, so a licensee's program can read its own remaining quota instead of guessing.
The fail closed rule
- The live service reads its real keys from a private store. Sample and demo keys exist only in local test files and never open production. This was proven live on November 29, 2026: the repo sample key, a garbage key, and no key all received the same clean 401.
- If the private key store is ever unreachable, the service refuses keyed traffic rather than falling back to any sample list. A refused request is a visible problem. A silent fallback would be a breach wearing a working mask.
- After every deploy, the three checks are rerun and logged: a real key returns data, no key is refused, a sample key is refused. A deploy that fails any of the three does not stay up.
Rotate and revoke
- A licensee who believes a key has leaked writes to seconddesks@proton.me from the address on the account and asks for a rotation. We issue a new key, confirm the licensee has it working, then revoke the old one.
- A key can be revoked on request at any time, and revocation is per key, so rotating one key never disturbs the licensee's other keys.
- We may revoke a key that is being used to attack the service or to pull data outside the license terms. Where the situation allows, we write first and explain. Where an attack is in progress, we revoke first and explain in the same message cycle.
- Planned, not yet live: a self serve rotation button in the licensee account page. Until it ships, rotation is handled by email with a target of one business day.
What we log, and what we never log
- We log: timestamp, endpoint, key identifier (never the key itself), scope, response status, and quota consumption. This is what makes usage reporting to the licensee possible.
- We never log: full key values, payment details, or the contents of a licensee's own systems. The API serves public record data; a licensee's queries tell us which states and categories they work in, and we treat query patterns as the licensee's business, not ours to sell or share.
- Logs are operational records. They are not a product and are never added to the catalog.
Data provenance
- The filings data comes from government released records only: Secretary of State new business filings, published by the states themselves.
- Every data family in the wider catalog passes a legality check before it is listed: source terms read, resale basis confirmed, family paused rather than sold when the terms are ambiguous.
- Records are organization level. The API does not append contact details from private sources. Where a column exists, it is a field the filer themselves published in the government record, and it is named as filed.
- Industry tags and likely need segments are inferred from the business name and are documented as inferred, never presented as verified facts about a business. That honesty is in the published OpenAPI spec itself.
Transport and platform
- HTTPS only. Plain HTTP requests redirect to HTTPS, and the certificate is valid (verified November 29, 2026).
- Error responses are clean JSON with machine readable error codes. They carry no stack traces and no internal file paths.
- Known gap, stated openly: the API responses do not yet send the standard browser security header set (HSTS and its companions), and the platform banner names the app and runtime versions. Both are on the deploy list. Neither affects key enforcement, and we would rather print the gap than hide it.
Vulnerability disclosure
- Report a suspected vulnerability to seconddesks@proton.me with the word Security in the subject line. Include what you sent, what you received, and when, in UTC.
- We aim to acknowledge a security report within two business days and to give a first assessment within five business days. These are targets we hold ourselves to and report against in the proof register, not a purchased certification.
- Good faith research that stays within reading your own responses and reporting them is welcome. We will not treat a good faith report as abuse.
- Please do not run load tests, credential stuffing, or attempts against other licensees' keys. A report that needs one of those to make its point can make the point to us in words first.
Incident communication
- If we confirm an incident that affects licensee keys or licensee data, we write to every affected licensee at the address on their account. The message says what happened, what was affected, what we have done, and what the licensee should do, in plain words.
- A short public entry goes into the proof register once affected licensees have been written to. The entry is dated and stays in the register permanently. We do not quietly edit history.
- If we confirm that no licensee data was affected by an incident, the register entry says that too.