Perhaps the response should not return raw HTML: # curl https://simplekv.com/path/to/key2 Well, this seems safe...
I guess this argument could also be applied to Pastebin? Should it be returning raw HTML if asked to?
11–18 of 18 posts
Perhaps the response should not return raw HTML: # curl https://simplekv.com/path/to/key2 Well, this seems safe...
I guess this argument could also be applied to Pastebin? Should it be returning raw HTML if asked to?
Perhaps the response should not return raw HTML: # curl https://simplekv.com/path/to/key2 Well, this seems safe...
Thanks for your feedback! I see input sanitation as a double-edged sword: it could potentially prevent some misuse of the service (since it's 100% anonymous), but then ultimately you're the "owner" of your keys (though they're in reality public) and you should be able to write whatever you want in them. I guess this argument could also be applied to Pastebin? Should it be returning raw HTML if asked to?
Would it be possible to require a key within a different url parameter? That way, one would need to know both the name and the api key of the field to edit/delete it? A key would be generated and returned in response to the initial creation request.
Earlier quoted context omitted.
Thanks for your feedback! I see input sanitation as a double-edged sword: it could potentially prevent some misuse of the service (since it's 100% anonymous), but then ultimately you're the "owner" of your keys (though they're in reality public) and you should be able to write whatever you want in them. I guess this argument could also be applied to Pastebin? Should it be returning raw HTML if asked to?
The "Content-Type" HTTP header is "text/html; charset=utf-8", you could make it "text/plain; charset=utf-8" to prevent HTML from being parsed.
I read in one of the comments you're using Flask on the backend, are you storing the key/values in a SQL database? My backend is written in Go and data is serialized to disk in a binary format.
edit: I just saw that you also implemented a delete feature, my bad for not reading all the examples carefully ;-)
Good MVP. I wonder where this will lead.
Thanks! My use case was very specific, but the concept is so simple I was wondering what people would do with it.