Slackbot
11/29/2022, 11:24 AMAsaf Cohen
11/29/2022, 11:30 AMOPAL_INLINE_OPA_CONFIG
config var:
https://github.com/permitio/opal/blob/master/packages/opal-client/opal_client/config.py#L53
You need to pass a json that is an instance of this class:
https://github.dev/permitio/opal/blob/master/packages/opal-client/opal_client/opa/options.py#L24
class OpaServerOptions(BaseModel):
"""Options to configure OPA server (apply when choosing to run OPA inline).
Security options are explained here in detail: <https://www.openpolicyagent.org/docs/latest/security/>
these include:
- addr (use https:// to apply TLS on OPA server)
- authentication (affects how clients are authenticating to OPA server)
- authorization (toggles the data.system.authz.allow document as the authz policy applied on each request)
- tls_ca_cert_file (CA cert for the CA signing on *client* tokens, when authentication=tls is on)
- tls_cert_file (TLS cert for the OPA server HTTPS)
- tls_private_key_file (TLS private key for the OPA server HTTPS)
"""
addr: str = Field(
":8181",
description="listening address of the opa server (e.g., [ip]:<port> for TCP)",
)
...
Asaf Cohen
11/29/2022, 11:31 AMAsaf Cohen
11/29/2022, 11:31 AMprithvi shankar
11/29/2022, 11:33 AMprithvi shankar
11/30/2022, 5:19 AMprithvi shankar
11/30/2022, 5:21 AMprithvi shankar
11/30/2022, 5:21 AM