Dynamic opa configuration without restart
Author: grigoriilazari001Created Jul 1, 2021Updated Sep 9, 2026
Hi, I was wondering if there is a way to dynamically configure opa while running without a restart. Perhaps to enhance the /config endpoint or something similar. The specific use case that I am dealing with is to set the logging level to debug. As you are aware the debug level logs the entire request (including the input) and the full response. Currently to achieve this one needs to restart opa with the "--log-level debug" and in a Kubernetes environment this will restart the entire pod. And in production this is not a good approach since it causes service disruption. Thank you
Source: open-policy-agent/opa