Skip to content

OPA input format for Http API requests #61

Answered by srenatus
gituserjava asked this question in Envoy
Discussion options

You must be logged in to vote

In a use-case where OPA is being used as authorization provider from Envoy, what is the format with which OPA receives input from Envoy?

The input format depends on the configured transport_api_version in Envoy 👇

          http_filters:
          - name: envoy.ext_authz
            typed_config:
              '@type': type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz
              transport_api_version: V3

📚 See the documentation of the Input Document

For multiple headers, Envoy will include them in the AttributeContext separated by commas (source):

    // The HTTP request headers. If multiple headers share the same key, they
    // must be merged according to the …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gituserjava
Comment options

Answer selected by ashutosh-narkar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #60 on November 08, 2021 06:20.