3kd1000
12/01/2026, 7:52 AMAsk Inkeep
12/01/2026, 7:52 AMAsk Inkeep
12/01/2026, 7:52 AMOPAL_POLICY_STORE_LIVENESS_PROBE_ENABLED (default True)
• OPAL_POLICY_STORE_LIVENESS_PROBE_INTERVAL_SECONDS (default 10)
• OPAL_POLICY_STORE_LIVENESS_PROBE_TIMEOUT_SECONDS (default 2)
The probe factors its result into the /healthy response and recovers automatically once the policy store returns. (1) (2) The documentation doesn't say whether this probe can distinguish "OPA restarted with an empty store" from "OPA briefly unreachable", or whether it exposes any hook to trigger a reload.
​*Marker document (your second option)*​
OPAL can load a healthcheck policy into OPA as the system.opal package when this is set:
OPAL_OPA_HEALTH_CHECK_POLICY_ENABLED=True
(2)
This document holds ready, healthy, and the last policy and data transaction details. (2) Querying it works like this:
curl --request GET http://localhost:8181/v1/data/system/opal
(2)
Since OPAL persists this state into OPA, an OPA restart with an empty store would lose it, which is the same idea as your marker approach. The documentation doesn't describe using it to detect restarts, though.
​*Offline mode and backup*​
Separately, OPAL_OFFLINE_MODE_ENABLED and OPAL_STORE_BACKUP_PATH restore the policy store from a backup file. These are documented as ignored when OPAL_INLINE_OPA_ENABLED=False, so they don't cover the external OPA case. (1)
​*Related gap*​
Discussion #887 shows another case where OPAL's readiness signals don't cover externally managed OPA state. A maintainer there said that OPAL has no way of tracking externally loaded policy. (3)
For a decision on which approach to take, I'd suggest asking in the issue thread itself so the maintainers can respond directly. If you'd like, I can give a general answer from my own knowledge of the tradeoffs, but it wouldn't be grounded in the documentation.Ask Inkeep
12/01/2026, 7:52 AMdavid
12/01/2026, 2:52 PM