diff --git a/example/cacheGet/1.0/data.json b/example/cacheGet/1.0/data.json index 03f9954e6d3eb839a70767bb0fcc6e5dc1523eee..ea8c0c65ca5ffee394bd7e6608d58da8ff0f219c 100644 --- a/example/cacheGet/1.0/data.json +++ b/example/cacheGet/1.0/data.json @@ -1,4 +1,4 @@ { - "namespace": "namespace", + "namespace": "mynamespace", "scope": "scope" } diff --git a/example/cacheGet/1.0/policy.rego b/example/cacheGet/1.0/policy.rego index 136dda6119226f90f0cad66894aedc63a4b55008..c5e03e950199f2ddaad1f3b66d9b94704c937a1c 100644 --- a/example/cacheGet/1.0/policy.rego +++ b/example/cacheGet/1.0/policy.rego @@ -2,4 +2,4 @@ package example.cacheGet default allow = false -result := cache.get("mykey", "mynamespace", "myscope") +result := cache.get(input.key, data.namespace, data.scope)