Skip to content

Provide configuration annotations #15

@lukasz-kaminski

Description

@lukasz-kaminski

There should be a way to easily say what should be sent to OPA in a request.
The idea is to have annotations that could look like this:

@OpaRequest(document = "http/authz")
public class MyOpaInput {
    @HttpMethod
    private String myMethodFieldName;
    @HttpHeader("Authorization")
    private String whatev;
}

Applying it to a class would enable OpaFilter and would make it use this class as a template to send stuff to OPA.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions