hholzgra / maposmatic

Mirror of maposmatic repository at savannah.nongnu.org
GNU Affero General Public License v3.0
72 stars 13 forks source link

API - add api call to cancel a request #86

Closed hholzgra closed 2 years ago

hholzgra commented 2 years ago

Depends on Issue #6 to prevent malicious users from cancelling other jobs to get further up in the rendering queue

hholzgra commented 2 years ago

Thinking again we can solve the "malicious user" problem by returning the already existing job nonce value as part of the job creation results, and only accept cancel requests that contain both the job id and correct nonce.

hholzgra commented 2 years ago

Thinking again we can solve the "malicious user" problem by returning the already existing job nonce value as part of the job creation results, and only accept cancel requests that contain both the job id and correct nonce.

hholzgra commented 2 years ago

Implemented now as POST endpoint "cancel_job" expecting parameters "id" and "nonce"

Just missing proper documentation now.

hholzgra commented 2 years ago

Documentation added, closing