Skip to content

feat: opa plugins, add the ability to set headers  #9704

Description

@chusov

Description

opa plugin can set headers if the policy response is false - https://apisix.apache.org/docs/apisix/plugins/opa/#using-custom-response
I would like to be able to set headers for a request if the policy response is true.
Use cases - to send to the backend the status of the policy, the policy name, fields from the JWT token.
The changes are not so big, so I can prepare a MR

Metadata

Metadata

Assignees

Labels

discusswait for updatewait for the author's response in this issue/PR

Type

No type

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions