From 002a205c9ce5005d3c39b2842b450d51f1cd941f Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 10 Jun 2019 17:06:32 -0700 Subject: [PATCH] Fix OPA result response handling (#7763) Also update the document with updated rego policy and updated OPA agent REST API. This PR is to fix a regression caused by PR #7637 --- docs/sts/docker-compose.yml | 2 +- docs/sts/opa.md | 13 +++++++------ docs/sts/putobject.rego | 8 +++++--- pkg/iam/policy/opa.go | 37 ++++++++++++++++++++++++++++++------- 4 files changed, 43 insertions(+), 17 deletions(-) diff --git a/docs/sts/docker-compose.yml b/docs/sts/docker-compose.yml index 379e12f14..cac4c24e5 100644 --- a/docs/sts/docker-compose.yml +++ b/docs/sts/docker-compose.yml @@ -1,7 +1,7 @@ version: '2' services: opa: - image: openpolicyagent/opa:0.9.1 + image: openpolicyagent/opa:0.11.0 ports: - 8181:8181 command: diff --git a/docs/sts/opa.md b/docs/sts/opa.md index 6f3d6fbb6..1928f4646 100644 --- a/docs/sts/opa.md +++ b/docs/sts/opa.md @@ -15,7 +15,7 @@ cat >docker-compose.yml <