From 4ea2b2739f997eb54c7a29e072126a265f9ae6d7 Mon Sep 17 00:00:00 2001 From: Torin Sandall Date: Wed, 25 Jan 2017 10:29:58 -0800 Subject: [PATCH] Prepare v0.4.0 release --- CHANGELOG.md | 47 ++++++++++++++++++++- Makefile | 2 +- site/examples/docker-authorization/index.md | 2 +- site/get-opa/index.md | 12 +++--- 4 files changed, 54 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12bed6a9f8..9e83fed089 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,52 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -## Unreleased +## 0.4.0 + +### REST API changes + +This release contains a few non-backwards compatible changes to the REST API: + +- The `request` document has been renamed to `input`. If you were calling the + GET /data[/path]?request=value you should update to use [POST + requests](http://www.openpolicyagent.org/documentation/references/rest#get-a-document-with-input) + (see below). + +- The API responses have been updated to return results embedded inside a + wrapper object: `{"result": value}`. This will allow OPA to return unambiguous + metadata in future (e.g., pagination, analysis, etc.) If you were previously + consuming Data API GET responses, you should update your code to access the + value under the `"result"` key of the response object. + +- The API models have been updated to use snake_case + ([#222](https://github.com/open-policy-agent/opa/issues/222)). This would only + affect you if you were previously consuming error responses or policy ASTs. + +The Data API has been updated to support the [POST +requests](http://www.openpolicyagent.org/documentation/references/rest#get-a-document-with-input). +This is the recommended way of supplying query inputs. + +### Built-in Function changes + +The built-in framework has been extended to support simplified built-in +implementations: + +- Refactor topdown built-in functions + ([#205](https://github.com/open-policy-agent/opa/issues/205)) + +### Fixes + +- Add cURL note to REST API docs ([#211](https://github.com/open-policy-agent/opa/issues/211)) +- Fix empty request parameter parsing ([#212](https://github.com/open-policy-agent/opa/issues/212)) +- Fix handling of missing input document ([#227](https://github.com/open-policy-agent/opa/issues/227)) +- Improve floating point literal support ([#215](https://github.com/open-policy-agent/opa/issues/215)) +- Improve module parsing errors ([#213](https://github.com/open-policy-agent/opa/issues/213)) +- Fix ast.Number hash and equality +- Fix parsing of escaped strings + +### Miscellaneous + +- Improve evaluation error messages ## 0.3.1 diff --git a/Makefile b/Makefile index 60bb941699..74429c3737 100644 --- a/Makefile +++ b/Makefile @@ -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.3.2-dev +VERSION := 0.4.0 PACKAGES := \ github.com/open-policy-agent/opa/ast/.../ \ diff --git a/site/examples/docker-authorization/index.md b/site/examples/docker-authorization/index.md index f9a8903e55..73d86024d7 100644 --- a/site/examples/docker-authorization/index.md +++ b/site/examples/docker-authorization/index.md @@ -66,7 +66,7 @@ $ mkdir -p policies ### 2. Download the latest version of OPA. ```shell -$ curl -L https://github.com/open-policy-agent/opa/releases/download/v0.3.1/opa_linux_amd64 > opa +$ curl -L https://github.com/open-policy-agent/opa/releases/download/v0.4.0/opa_linux_amd64 > opa $ chmod u+x opa ``` diff --git a/site/get-opa/index.md b/site/get-opa/index.md index 02b28cb183..dc7587a7e7 100644 --- a/site/get-opa/index.md +++ b/site/get-opa/index.md @@ -13,9 +13,9 @@ title: Get Open Policy Agent The binary releases for 64-bit Linux and Mac are available for download here. For other releases of OPA see the [GitHub Releases](https://github.com/open-policy-agent/opa/releases) page. {: .opa-header--text} - * [64-bit Linux](https://github.com/open-policy-agent/opa/releases/download/v0.3.1/opa_linux_amd64){: .opa-header--download-list--link} - * [64-bit Mac OS X](https://github.com/open-policy-agent/opa/releases/download/v0.3.1/opa_darwin_amd64){: .opa-header--download-list--link} - * [Go Source](https://github.com/open-policy-agent/opa/archive/v0.3.1.tar.gz){: .opa-header--download-list--link} + * [64-bit Linux](https://github.com/open-policy-agent/opa/releases/download/v0.4.0/opa_linux_amd64){: .opa-header--download-list--link} + * [64-bit Mac OS X](https://github.com/open-policy-agent/opa/releases/download/v0.4.0/opa_darwin_amd64){: .opa-header--download-list--link} + * [Go Source](https://github.com/open-policy-agent/opa/archive/v0.4.0.tar.gz){: .opa-header--download-list--link} {: .opa-header--download-list} {% endcontentfor %} @@ -25,7 +25,7 @@ The binary releases for 64-bit Linux and Mac are available for download here. Fo ## 64-bit Linux ```shell -$ curl -L https://github.com/open-policy-agent/opa/releases/download/v0.3.1/opa_linux_amd64 > opa +$ curl -L https://github.com/open-policy-agent/opa/releases/download/v0.4.0/opa_linux_amd64 > opa $ chmod u+x opa $ ./opa version ``` @@ -33,14 +33,14 @@ $ ./opa version ## 64-bit Mac OS X ```shell -$ curl -L https://github.com/open-policy-agent/opa/releases/download/v0.3.1/opa_darwin_amd64 > opa +$ curl -L https://github.com/open-policy-agent/opa/releases/download/v0.4.0/opa_darwin_amd64 > opa $ chmod u+x opa $ ./opa version ``` ## Docker Image (64-bit Linux) ```shell -$ docker run openpolicyagent/opa:0.3.1 version +$ docker run openpolicyagent/opa:0.4.0 version ``` {% endcontentfor %}