Give the landing page somewhere to send people
CI / test (push) Successful in 56s

The page explained the API, said keys come from an operator, and left the
reader there. Someone who reaches the address without a key had no route to
getting one, which is where onboarding stopped.

`landing.contact` is that route, because the gateway cannot guess who to ask.
An address becomes a mailto link, an http(s) URL stays a link, and anything
else — a channel, a queue, a person — is shown as text. Other schemes are
never linked: this string comes from configuration, configuration is not
always written by whoever runs the gateway, and a javascript: href on a page
served to every visitor is a short path to a stored XSS. Escaping the text
does not make a scheme safe.

Unconfigured, it now says something rather than nothing, and the page explains
that a key arrives as a one-time link so the reader knows what to expect
before it lands.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5 committed 2026-09-16 09:22:42 +02:00
1 parent 3ed211b2f4
commit 8d35faf6f8
10 files changed
+210 -14

No files matched your search

+18 -2
View File
@@ -105,7 +105,23 @@ llmgw keys limits --store … --scope project --id default \
--budget 50000000 --period month # 50 units a month
```
## 4. What the user does
## 4. Point people at the right place
Someone who reaches the gateway without a key sees the landing page. Tell it who
to send them to, or it can only shrug:
```yaml
landing:
contact: "platform@example.com" # or an https:// URL, or "#platform on Slack"
notice: "Internal use only."
```
An address becomes a mailto link, an `http(s)` URL stays a link, anything else is
shown as text. Other schemes are never linked — configuration is not always
written by whoever runs the gateway, and a `javascript:` href on a page served to
every visitor is a short path to a stored XSS.
## 5. What the user does
They open the link, press the button, and get the key once. The page shows them
the base URL and a working `curl`, and points at two endpoints:
@@ -116,7 +132,7 @@ the base URL and a working `curl`, and points at two endpoints:
`/me` is there so nobody has to ask you "why was I rate limited" or "how much
have I used". It is outside `/v1` because it is not part of the OpenAI API.
## 5. Afterwards
## 6. Afterwards
```
llmgw keys list --store … --project default