osmose.feedback_review¶
Maintainer-facing HTML rendering of the feedback store (pure core — no web/UI imports).
SECURITY: every value rendered here was typed into a PUBLIC form by an anonymous submitter, so
this module is the primary injection surface of the feedback feature. Nothing is interpolated
without _esc (html.escape(..., quote=True)) — message, type, timestamp, version, nav tab
and id alike. Assume a stored message contains <script>, quotes and attribute-breaking
sequences, because eventually one will.
PRIVACY: a record carries has_contact (a boolean) and never the address itself; the address
lives only in the contacts side-store behind osmose.feedback.lookup_contact. This module
renders the flag and never calls that lookup — the page is designed to be safe to screenshot.
Each card also carries a one-click “promote to a GitHub issue” link built by github_issue_url.
That URL is the one place a record’s content leaves this page for a PUBLIC destination, so it is
assembled from an explicit allowlist of fields (message, version, nav tab, id, has_contact flag)
rather than by serialising the record — a legacy v1 line that still carries a literal contact
key therefore cannot leak an address into a filed issue.
Functions
|
Prefilled |
|
Full HTML page listing |