mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
fd1fc5469e
When OPA activates a delta bundle, the path of a policy is used as the ID when UpsertPolicy is called in the disk and in-memory storage Truncate methods. This will cause the storage to be updated with IDs that are prefixed with a /, while the policy that was already in storage will not. This causes bundle activation to fail if any policy contains a default rule, as the modules will be duplicated. This commit changes the policy ID that UpsertPolicy is called with from disk and in-memory storage's Truncate methods Fixes #4958 Signed-off-by: Martin Johansen <martinjohansen1705@gmail.com>