Skip to content

Latest commit

 

History

History

gate

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

gate

HTTP gate access control for both requests sent and handled.

The latch is asked to authorize each request, then told the final decision with observe-decision. A denied request fails with the latch's reason and is logged as a warning:

Denied REASON=http-request-denied OPERATION=wasi:http/client#send METHOD=post PATH-WITH-QUERY=some</items>

A latch error, or a failure to observe the decision, fails the request with internal-error and is logged as an error:

Latch error CODE=invalid-config<latch-method> OPERATION=wasi:http/client#send METHOD=get PATH-WITH-QUERY=some</>

A union of gate-client and gate-handler.

Interfaces

Imports:

  • componentized:http/latch@0.1.1-dev: decides whether each request may proceed
  • wasi:logging/logging@0.1.0-draft: logs denials and latch errors
  • wasi:http/types@0.3.0: the requests being gated
  • wasi:http/client@0.3.0: the client the gated client wraps
  • wasi:http/handler@0.3.0: the handler the gated handler wraps

Exports:

  • wasi:http/client@0.3.0: client gated by the latch
  • wasi:http/handler@0.3.0: handler gated by the latch