Skip to content

OPA input format for Http API requests #60

@gituserjava

Description

@gituserjava

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?

From postman I am calling my endpoint by passing the header x-custom-header: foo. It is first routed to envoy sidecar which in turn calls OPA and forwards the request headers to OPA. What is the format/pattern in which OPA receives the Http request? Please advise.

Request example:

GET /api/v1/employees/departments
Accept: */*
x-custom-header : foo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions