mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 14:42:02 +03:00
eyre: only allow authenticated GET scry requests
Lacking any other permissioning mechanism, we must simply reject unauthenticated HTTP-scry requests for now.
This commit is contained in:
parent
d20877e414
commit
b870466977
@ -870,6 +870,10 @@
|
||||
++ handle-scry
|
||||
|= [authenticated=? =address =request:http]
|
||||
|^ ^- (quip move server-state)
|
||||
?. authenticated
|
||||
(error-response 403 ~)
|
||||
?. =(%'GET' method.request)
|
||||
(error-response 405 "may only GET scries")
|
||||
:: make sure the path contains an app to scry into
|
||||
::
|
||||
=+ req=(parse-request-line url.request)
|
||||
|
Loading…
Reference in New Issue
Block a user