Skip to content

Commit 52bd08d

Browse files
williamdesDeepSeek
andcommitted
docs: Describe the access model and the limits of a report submission
The README has described the setup of the application since ff61643, and never said who can read a report once signed in, nor what the ingestion endpoint accepts, which matters now that a report carries the full context of a crash and is open to anybody. Signed-off-by: William Desportes <williamdes@wdes.fr> Co-Authored-By: DeepSeek <noreply@deepseek.com>
1 parent 595f600 commit 52bd08d

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,29 @@ CakePHP, the migrations plugin and, for the development environment, the
1010
debug kit plugin. The GitHub login is implemented in
1111
`src/Controller/DevelopersController.php`, there is no OAuth plugin.
1212

13-
# How to deploy
13+
## Access model
14+
15+
Signing in is done with GitHub, see [OAuth configuration setup](#oauth-configuration-setup).
16+
The account does not have to belong to the phpMyAdmin organization:
17+
18+
- Any GitHub account that signs in can view every report and incident, including the raw `full_report` of an incident.
19+
- Only the developers with write access to the repository configured in the `GithubRepoPath` key of ``config/oauth.php`` can act on the reports: forward them to GitHub, change their status, look at the statistics, and use the other actions of the reports, incidents and notifications pages.
20+
21+
A developer without that write access is read-only, the action is refused with a "You need to have commit access on phpmyadmin/phpmyadmin repository on Github.com to do this action" message.
22+
Without signing in, only the report submission endpoint, the pages and the GitHub webhook are reachable.
23+
24+
## Report submission
25+
26+
Reports are posted to `/incidents/create` as a JSON body, without authentication, and each stored report sends a notification email.
27+
The server therefore bounds a single submission:
28+
29+
- a body larger than 1 MiB (1 048 576 bytes) is refused with the HTTP status `413` and the `{"success": false}` JSON answer, before the body is decoded;
30+
- the string fields of the stored incident and report are cut to the length of their database column, the browser is kept to 40 characters and the error message to 200 in the incident and 150 in the report;
31+
- a report carrying more than 40 errors or more than 40 stack frames keeps the first 40 only;
32+
- a report whose `full_report` or `stacktrace` is larger than a `TEXT` column (65 535 characters) is refused and logged;
33+
- a PHP report without a list of `errors`, or a report of an unmaintained phpMyAdmin version, is ignored.
34+
35+
## How to deploy
1436

1537
In order to deploy the app in this repo you need to follow these steps:
1638

0 commit comments

Comments
 (0)