Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Clarification on error handling #152

@dippynark

Description

@dippynark

The example auth module dispatches a HTTP request to determine whether to allow the request: https://github.com/tetratelabs/proxy-wasm-go-sdk/blob/main/examples/http_auth_random/main.go#L61-L65

This logs a critical error and returns a continue action. Does this mean that if the auth service is down all requests will be allowed through? i.e. does this code fail open?

If so, how would you fail closed? You could use something like proxywasm.SendHttpResponse(403... but then how do you handle any error returned by that function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions