Skip to content

Atom 35.0.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 09:27

Upgrade (projects must change):

  • config_api keys are "METHOD /path" ("GET /info", "DELETE /admin/object-delete"; "WS /path" for a websocket, "WS /my/message-socket"). Startup refuses a plain "/path" and names its new key. After python3 sync.py, run venv/bin/python -m script.config_api_method (rewrites config_extend.py's keys from the routes' methods, keeps formatting, prints each change), then venv/bin/python -m script.check.
  • API key scopes are "METHOD /path" keys: /my/api-key-create refuses a plain path, and a key created with plain-path scopes gets 403; create it again with the new scopes (or update api_key.scopes in the database).
  • Permission labels (/info int_mapping.master.users.permissions), log_api.api_id names, Monitor and /my/api-usage-read show the key with its method. Rate limits and the response cache count per entry (its id), so each method of a path has its own.
  • script.check's routes step also fails when a page's fetch(path, { method: "X" }) names a method the route doesn't answer.

Features:

  • One path may answer several methods, one entry each with its own id and checks (a provider's webhook: a GET handshake and POST events on one URL); "one path, one action" stays a default.
  • Webhook scheme meta (WhatsApp Cloud API, Messenger, Instagram: X-Hub-Signature-256 with the Meta app secret), with a WhatsApp example in docs/webhook.md.