From 74063c56f48d46a9322432c1a905746c719c169c Mon Sep 17 00:00:00 2001 From: index-git <66255344+index-git@users.noreply.github.com> Date: Wed, 30 Sep 2020 14:11:08 +0200 Subject: [PATCH] Release 1.7.0 last changes (#107) * Test client updated to 1.2.0 * Release changes. * Improve reset-data-dicrectories * Pylint fail under 6.8 --- .env.demo | 2 +- .env.dev | 2 +- .env.test | 2 +- .travis.yml | 2 +- CHANGELOG.md | 12 +++++++----- Makefile | 1 + doc/env-settings.md | 2 +- 7 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.env.demo b/.env.demo index 681089a0f..38fc3d2b4 100644 --- a/.env.demo +++ b/.env.demo @@ -48,7 +48,7 @@ LAYMAN_CLIENT_URL=http://layman_client:3000/client/ # client LAYMAN_CLIENT_PUBLIC_URL=http://localhost/client/ -LAYMAN_CLIENT_VERSION=v1.1.2 +LAYMAN_CLIENT_VERSION=v1.2.0 # extra hosts to be added to /etc/hosts EXTRA_HOST1=1.2.3.4:1.2.3.4 diff --git a/.env.dev b/.env.dev index a148188f2..b921ebf7c 100644 --- a/.env.dev +++ b/.env.dev @@ -50,7 +50,7 @@ LAYMAN_CLIENT_URL=http://layman_client:3000/client/ # client LAYMAN_CLIENT_PUBLIC_URL=http://localhost:3000/client/ -LAYMAN_CLIENT_VERSION=v1.1.2 +LAYMAN_CLIENT_VERSION=v1.2.0 ############################################################################## diff --git a/.env.test b/.env.test index 321160770..71be448a8 100644 --- a/.env.test +++ b/.env.test @@ -50,7 +50,7 @@ LAYMAN_CLIENT_URL=http://layman_client_test:3000/client/ # client LAYMAN_CLIENT_PUBLIC_URL=http://layman_test_run_1:8000/client/ -LAYMAN_CLIENT_VERSION=v1.1.2 +LAYMAN_CLIENT_VERSION=v1.2.0 ############################################################################## diff --git a/.travis.yml b/.travis.yml index fc12c3321..54b9c3e3a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -145,7 +145,7 @@ matrix: # command to run tests script: - - pylint -f colorized -r y --fail-under 6.7 --disable=missing-docstring ./src ./test + - pylint -f colorized -r y --fail-under 6.8 --disable=missing-docstring ./src ./test - name: "AutoPEP8" language: python diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cc98b60b..1f6bd2fba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,17 @@ # Changelog ## v1.7.0 -2020-09-?? +2020-09-30 ### Upgrade requirements -- [#65](https://github.com/jirik/layman/issues/65) Set environment variable [LAYMAN_GS_AUTHN_HTTP_HEADER_ATTRIBUTE](doc/env-settings.md#LAYMAN_GS_AUTHN_HTTP_HEADER_ATTRIBUTE). +- [#65](https://github.com/jirik/layman/issues/65) Set environment variable [LAYMAN_GS_AUTHN_HTTP_HEADER_ATTRIBUTE](doc/env-settings.md#LAYMAN_GS_AUTHN_HTTP_HEADER_ATTRIBUTE). Only combination of lowercase characters and numbers must be used for the value. +- [#101](https://github.com/jirik/layman/issues/101) Change [LAYMAN_CLIENT_VERSION](doc/env-settings.md#LAYMAN_CLIENT_VERSION) from `v1.1.2` to `v1.2.0` ### Changes - [#65](https://github.com/jirik/layman/issues/65) [WFS endpoint](doc/rest.md#get-layer) accepts same [authentication](doc/security.md#authentication) credentials (e.g. [OAuth2 headers](doc/oauth2/index.md#request-layman-rest-api)) as Layman REST API endpoints. It's implemented using Layman's WFS proxy. This proxy authenticates the user and send user identification to GeoServer. In combination with changes in v1.6.0, Layman's [`read-everyone-write-owner` authorization](doc/security.md#authorization) (when active) is propagated to GeoServer and user can change only hers layers. -- [#65](https://github.com/jirik/layman/issues/65) Layman automatically setup [HTTP authentication attribute](https://docs.geoserver.org/stable/en/user/security/tutorials/httpheaderproxy/index.html) and chain filter at startup. Secret value of this attribute can be changed in [LAYMAN_GS_AUTHN_HTTP_HEADER_ATTRIBUTE](doc/env-settings.md#LAYMAN_GS_AUTHN_HTTP_HEADER_ATTRIBUTE) and is used by Layman's WFS proxy. -- [#95](https://github.com/jirik/layman/issues/95) When calling WFS Transaction, Layman will automatically create missing attributes in DB before redirecting request to GeoServer. Each missing attribute is created as `VARCHAR(1024)`. Works for WFS-T 1.0, 1.1 and 2.0, actions Insert, Update and Replace. If creating attribute fails for any reason, warning is logged and request is redirected nevertheless. -- [#96](https://github.com/jirik/layman/issues/96) New REST API endpoint [Layer Style](doc/rest.md#get-layer-style) is created, which returns Layer default SLD. New attribute ```sld.url``` is added to [GET Layer endpoint](doc/rest.md#get-layer), where URL of Layer default SLD can be obtained. It uses above mentioned [Layer Style](doc/rest.md#get-layer-style). - [#88](https://github.com/jirik/layman/issues/88) Attribute **title** was added to REST endpoints [GET Layers](doc/rest.md#get-layers) and [GET Maps](doc/rest.md#get-maps). +- [#95](https://github.com/jirik/layman/issues/95) When calling WFS Transaction, Layman will automatically create missing attributes in DB before redirecting request to GeoServer. Each missing attribute is created as `VARCHAR(1024)`. Works for WFS-T 1.0, 1.1 and 2.0, actions Insert, Update and Replace. If creating attribute fails for any reason, warning is logged and request is redirected nevertheless. +- [#96](https://github.com/jirik/layman/issues/96) New REST API endpoint [Layer Style](doc/rest.md#get-layer-style) is created, which returns Layer default SLD. New attribute ```sld.url``` is added to [GET Layer endpoint](doc/rest.md#get-layer), where URL of Layer default SLD can be obtained. It points to above mentioned [Layer Style](doc/rest.md#get-layer-style). +- [#101](https://github.com/jirik/layman/issues/101) Test Client has new page for WFS proxy and is capable to send authenticated queries. +- [#65](https://github.com/jirik/layman/issues/65) Layman automatically setup [HTTP authentication attribute](https://docs.geoserver.org/stable/en/user/security/tutorials/httpheaderproxy/index.html) and chain filter at startup. Secret value of this attribute can be changed in [LAYMAN_GS_AUTHN_HTTP_HEADER_ATTRIBUTE](doc/env-settings.md#LAYMAN_GS_AUTHN_HTTP_HEADER_ATTRIBUTE) and is used by Layman's WFS proxy. ## v1.6.1 2020-08-19 diff --git a/Makefile b/Makefile index c0221da87..76b677be2 100644 --- a/Makefile +++ b/Makefile @@ -102,6 +102,7 @@ clear-data-dev: reset-data-directories: docker-compose -f docker-compose.deps.yml rm -fsv + docker volume rm layman_redis-data sudo rm -rf layman_data layman_data_test deps/*/data mkdir -p layman_data layman_data_test tmp diff --git a/doc/env-settings.md b/doc/env-settings.md index b9ad2ee4e..498804085 100644 --- a/doc/env-settings.md +++ b/doc/env-settings.md @@ -145,7 +145,7 @@ Name of [user/group service](https://docs.geoserver.org/stable/en/user/security/ Name of [role service](https://docs.geoserver.org/stable/en/user/security/usergrouprole/roleservices.html) used for managing roles and user-role associations at GeoServer. If not set (default), the service named `default` is chosen. Usually it's [XML user/group service](https://docs.geoserver.org/stable/en/user/security/usergrouprole/roleservices.html#xml-role-service). ### LAYMAN_GS_AUTHN_HTTP_HEADER_ATTRIBUTE -Secret value of [GeoServer HTTP authentication request header attribute](https://docs.geoserver.org/stable/en/user/security/tutorials/httpheaderproxy/index.html) used for WFS proxy. Only lowercase characters and numbers should be used. +Secret value of [GeoServer HTTP authentication request header attribute](https://docs.geoserver.org/stable/en/user/security/tutorials/httpheaderproxy/index.html) used for WFS proxy. Only combination of lowercase characters and numbers must be used for the value. If you change an existing value, you have to change it also in GeoServer GUI manually. ## Connection to Micka