-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add endpoint to allow for blocking without authentication by using a pow #10
Conversation
5cd2da3
to
3135822
Compare
F/U we should probably verify the tags in the endpoint. To prevent people from providing tags which we might have reserved internally. |
err := api.staticDB.Ping(r.Context()) | ||
|
||
// Apply a timeout. | ||
ctx, cancel := context.WithTimeout(r.Context(), 5*time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
could've been a constant
I didn't thoroughly review the updated structure but it seemed like an improvement for sure. |
Merging and deploying this must go together with redeploying the abuse skapp frontend. |
PULL REQUEST
Overview
This MR adds a new /block endpoint similar to the existing one. The only difference is, that it requires some proof-of-work as spam protection.
Checklist
Review and complete the checklist to ensure that the PR is complete before assigned to an approver.
Issues Closed