tools/report-relay is a dependency-free Python service. It takes the JSON the app's Bug report button sends, validates it (type, text, context and log sizes), scrubs the log a second time, rate-limits (5 per client IP and 60 in all per hour, 4 in flight), neutralises @mentions, and files one issue in blueflare/alkane-toolkit with the labels bug/ui/feature and from-app. It stores nothing and logs one line per report without its text. It runs on the Gitea host behind the shared nginx at https://gitea.bluefla.re/alkane-report/ as the scoped alkane-reporter bot (team alkane-reporters: issues write, code read, alkane-toolkit only). See tools/report-relay/README.md. Its tests run in verify's unit-test step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BdKQBRg6YCM1XXQCTnD5GF
8 lines
229 B
Docker
8 lines
229 B
Docker
# Report relay for the Alkane Toolkit's Bug report button (see README.md).
|
|
FROM python:3.13-alpine
|
|
RUN adduser -D -H -u 10001 relay
|
|
COPY relay.py /app/relay.py
|
|
USER relay
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["python3", "-u", "/app/relay.py"]
|