You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When OPA downloads a bundle which owns everything (ie. no manifest roots defined) and a bundle is already activated, OPA should delete all the existing data in the store and then write the new data to the store. If the existing bundle also has no manifest roots defined, the cleanup is not happening as expected. For example, if OPA has the following bundle loaded:
If OPA has an activated bundle that owns all roots
and a new bundle with empty roots is to be activated, the
old bundle's data should first be erased from the store.
Currently both the old and new data is kept in the store.
This commit attempts to fix this by providing an indication to
the truncate call about the scenario in which the root is to be
overwritten.
Fixes: open-policy-agent#4940
Signed-off-by: Ashutosh Narkar <[email protected]>
If OPA has an activated bundle that owns all roots
and a new bundle with empty roots is to be activated, the
old bundle's data should first be erased from the store.
Currently both the old and new data is kept in the store.
This commit attempts to fix this by providing an indication to
the truncate call about the scenario in which the root is to be
overwritten.
Fixes: #4940
Signed-off-by: Ashutosh Narkar <[email protected]>
When OPA downloads a bundle which owns everything (ie. no manifest roots defined) and a bundle is already activated, OPA should delete all the existing data in the store and then write the new data to the store. If the existing bundle also has no manifest roots defined, the cleanup is not happening as expected. For example, if OPA has the following bundle loaded:
Now if OPA downloads a new bundle as follows:
The expected data in the store should be
{"x": "y"}
but currently the store has{"x": "y", "a": "b"}
.The text was updated successfully, but these errors were encountered: