Skip to content

Commit

Permalink
Prepare v0.7.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
tsandall committed Feb 25, 2018
1 parent c7c8e83 commit 688594c
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 14 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@
All notable changes to this project will be documented in this file. This
project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased
## 0.7.1

### Fixes

- Use rego.ParsedInput to provide input from form ([#571](https://github.com/open-policy-agent/opa/issues/571))

### Miscellaneous

- Add omitempty tag for ad-hoc query result field
- Fix rego package to check capture vars
- Fix root document assignment in REPL
- Update query compiler to deep copy parsed query

## 0.7.0

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by an Apache2
# license that can be found in the LICENSE file.

VERSION := 0.7.1-dev
VERSION := 0.7.1

PACKAGES := $(shell go list ./.../ | grep -v 'vendor')

Expand Down
16 changes: 8 additions & 8 deletions docs/book/deployments.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ recommend you review this section to familiarize yourself with the basics.

OPA releases are available as images on Docker Hub.

* [openpolicyagent/opa:0.7.0](https://hub.docker.com/r/openpolicyagent/opa/)
* [openpolicyagent/opa:0.7.1](https://hub.docker.com/r/openpolicyagent/opa/)

### <a name="running-with-docker"/>Running with Docker

Expand Down Expand Up @@ -51,24 +51,24 @@ curl -i localhost:8181/
OPA logs to stderr and the level can be set with `--log-level/-l`. The default log level is `info` which causes OPA to log request/response headers.

```
time="2017-03-12T03:03:23Z" level=info msg="First line of log stream." addr=":8181"
time="2017-03-12T03:03:30Z" level=debug msg="Received request." client_addr="172.17.0.1:60952" req_body= req_id=1 req_method=GET req_params=map[] req_path="/v1/data"
time="2017-03-12T03:03:30Z" level=debug msg="Sent response." client_addr="172.17.0.1:60952" req_id=1 req_method=GET req_path="/v1/data" resp_bytes=13 resp_duration=0.402793 resp_status=200
time="20.7.13-12T03:03:23Z" level=info msg="First line of log stream." addr=":8181"
time="20.7.13-12T03:03:30Z" level=debug msg="Received request." client_addr="172.17.0.1:60952" req_body= req_id=1 req_method=GET req_params=map[] req_path="/v1/data"
time="20.7.13-12T03:03:30Z" level=debug msg="Sent response." client_addr="172.17.0.1:60952" req_id=1 req_method=GET req_path="/v1/data" resp_bytes=13 resp_duration=0.402793 resp_status=200
```

If the log level is set to `debug` the request and response message bodies will be logged. This is useful for development however it can be expensive in production.

```
time="2017-05-16T00:09:24Z" level=info msg="Received request." client_addr="172.17.0.1:42164" req_body="{"input": "hello"}" req_id=1 req_method=POST req_params=map[] req_path="/v1/data"
time="2017-05-16T00:09:24Z" level=info msg="Sent response." client_addr="172.17.0.1:42164" req_id=1 req_method=POST req_path="/v1/data" resp_body="{"result":{"example":{"message":"world"}}}" resp_bytes=42 resp_duration=0.618689 resp_status=200
time="20.7.15-16T00:09:24Z" level=info msg="Received request." client_addr="172.17.0.1:42164" req_body="{"input": "hello"}" req_id=1 req_method=POST req_params=map[] req_path="/v1/data"
time="20.7.15-16T00:09:24Z" level=info msg="Sent response." client_addr="172.17.0.1:42164" req_id=1 req_method=POST req_path="/v1/data" resp_body="{"result":{"example":{"message":"world"}}}" resp_bytes=42 resp_duration=0.618689 resp_status=200
```

The default log format is text-based and intended for development. For
production, enable JSON formatting with `--log-format json`:

```
{"client_addr":"[::1]:64427","level":"debug","msg":"Received request.","req_body":"","req_id":1,"req_method":"GET","req_params":{},"req_path":"/v1/data","time":"2017-03-11T18:22:18-08:00"}
{"client_addr":"[::1]:64427","level":"debug","msg":"Sent response.","req_id":1,"req_method":"GET","req_path":"/v1/data","resp_bytes":13,"resp_duration":0.392554,"resp_status":200,"time":"2017-03-11T18:22:18-08:00"}
{"client_addr":"[::1]:64427","level":"debug","msg":"Received request.","req_body":"","req_id":1,"req_method":"GET","req_params":{},"req_path":"/v1/data","time":"20.7.13-11T18:22:18-08:00"}
{"client_addr":"[::1]:64427","level":"debug","msg":"Sent response.","req_id":1,"req_method":"GET","req_path":"/v1/data","resp_bytes":13,"resp_duration":0.392554,"resp_status":200,"time":"20.7.13-11T18:22:18-08:00"}
```

#### Volume Mounts
Expand Down
4 changes: 2 additions & 2 deletions docs/book/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ If this is your first time using OPA, download the latest executable for your sy
On macOS (64-bit):

```shell
curl -L -o opa https://github.com/open-policy-agent/opa/releases/download/v0.7.0/opa_darwin_amd64
curl -L -o opa https://github.com/open-policy-agent/opa/releases/download/v0.7.1/opa_darwin_amd64
```

On Linux (64-bit):

```shell
curl -L -o opa https://github.com/open-policy-agent/opa/releases/download/v0.7.0/opa_linux_amd64
curl -L -o opa https://github.com/open-policy-agent/opa/releases/download/v0.7.1/opa_linux_amd64
```

> Windows users can obtain the OPA executable from [GitHub Releases](https://github.com/open-policy-agent/opa/releases). The steps below are the same for Windows users except the executable name will be different.
Expand Down
2 changes: 1 addition & 1 deletion docs/book/http-api-authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cat >docker-compose.yml <<EOF
version: '2'
services:
opa:
image: openpolicyagent/opa:0.7.0
image: openpolicyagent/opa:0.7.1
ports:
- 8181:8181
command:
Expand Down
2 changes: 1 addition & 1 deletion docs/book/ssh-and-sudo-authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ cat > docker-compose.yml <<EOF
version: '2'
services:
opa:
image: openpolicyagent/opa:0.7.0
image: openpolicyagent/opa:0.7.1
ports:
- 8181:8181
command:
Expand Down

0 comments on commit 688594c

Please sign in to comment.