Skip to main content

Parameters

See plugin common configurations for configuration options available to all plugins.

  • host

    string


    required


    Address of the OPA server.

  • policy

    string


    required


    Policy to evaluate.

    For example, if you would like to evaluate all rules in a package called rbac, configure the policy to be rbac.

    If you would like to evaluate specific rule(s) in a package, you can specify the rule name behind the package, such as rbac/allow.

  • ssl_verify

    boolean


    default: true


    If true, verify the OPA server's SSL certificate.

  • timeout

    integer


    default: 3000


    vaild vaule:

    between 1 and 60000 inclusive


    Timeout for the HTTP call in milliseconds.

  • keepalive

    boolean


    default: true


    If true, keep the connection alive for multiple requests.

  • keepalive_timeout

    integer


    default: 60000


    vaild vaule:

    greater than or equal to 1000


    Idle time in milliseconds after which the connection is closed.

  • keepalive_pool

    integer


    default: 5


    vaild vaule:

    greater than or equal to 1


    The number of idle connections.

  • with_route

    boolean


    If true, send information of the current route.

  • with_service

    boolean


    If true, send information of the current service.

  • with_consumer

    boolean


    If true, send information of the current consumer.

    Note that the consumer information may include sensitive information such as the API key. Only set this option to true if you are sure it is safe to do so.


API7.ai Logo

API Management for Modern Architectures with Edge, API Gateway, Kubernetes, and Service Mesh.

Product

API7 Cloud

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN Ltd. 2019 – 2024. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the

Apache Software Foundation