| | 70 | |
| | 71 | == Upload certificates == |
| | 72 | |
| | 73 | Upload certificates are a mechanism to prevent upload server DoS attacks, |
| | 74 | and also to prevent an attack in which bad guys upload result files |
| | 75 | for other users' jobs. |
| | 76 | Currently no projects that I know of use this mechanism, |
| | 77 | but it is worth keeping available. |
| | 78 | |
| | 79 | Current: the upload certificate is a signature of the rest of |
| | 80 | the <file_info> element. |
| | 81 | |
| | 82 | Problem: this makes <file_info> elements sensitive to white space changes, |
| | 83 | and it makes it difficult to parse <file_info> using XML_PARSER. |
| | 84 | |
| | 85 | Solution: the upload certificate is a signature of |
| | 86 | {{{ |
| | 87 | <name>x</name><max_nbytes>N</max_nbytes> |
| | 88 | }}} |
| | 89 | (no white space). |
| | 90 | |
| | 91 | == Server changes == |
| | 92 | |
| | 93 | * file_upload_handler: parse the request with XML_PARSER, then convert to above form |