Skip to content

Releases: bird-house/twitcher

v0.10.0

22 Jul 14:07
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.9.0...v0.10.0

v0.9.0

08 Feb 15:09
Compare
Choose a tag to compare

Changes:

  • Add CI workflow tests for Python 3.9, 3.10 and 3.11, and use 3.11 by default for all linting and coverage tests.
  • Use Python 3.11 in Dockerfile for latest performance improvements and security fixes.
  • Convert comment typing definitions into typing annotations.

v0.8.0

08 Feb 15:09
Compare
Choose a tag to compare

Changes:

  • Add /ows/verify/{service_name}[/{extra_path}] endpoint analoguous to /ows/proxy/{service_name}[/{extra_path}]
    to only verify if access is granted to this service, for that specific resource path, and for the authenticated user,
    without performing the proxied request. This can be employed by servers and external entities to validate that
    authorization will be granted for the user without executing potentially heavy computation or large data transfers
    from the targeted resource that would otherwise be performed by requesting the /ows/proxy equivalent location.
    One usage example of this feature is using NGINX Authentication Based on Subrequest Result to verify an alternate resource prior to proxying a service
    request that needs authenticated access to the first resource.
  • Add the OWS proxy send_request operation under the twitcher.adapter interface to allow it applying relevant
    proxying adjustments when using derived implementation. The DefaultAdapater simply calls the original function
    that was previously called directly instead of using the adapter's method.
  • Removed the extra_path and request_params arguments from OWS proxy send_request to better align them with
    arguments from other adapter methods. These parameters are directly retrieved from the request argument, which was
    also provided as input to send_request.

v0.7.0

17 May 18:53
Compare
Choose a tag to compare

Changes:

  • Add request and response hooks operations to adapter allowing derived implementations to modify OWS proxied requests
    and returned responses from the service. The default adapter applies no modifications to the original definitions.

v0.6.2

10 Dec 12:04
Compare
Choose a tag to compare

Changes:

  • Enforce regeneration of the OWSRegistry object on each request to avoid incorrect handling by adapters that
    require the new transaction or refreshed database session state each time.

v0.6.1

10 Dec 12:03
Compare
Choose a tag to compare

Changes:

  • Integrate functionality changes of 0.5.x branch back into 0.6.x.
  • Align twitcher.adapter features of 0.6.x branch to support 0.5.x behaviour.
  • Revert removal of ServiceStoreInterface to provide relevant implementation details to external adapters.
  • Apply missing interface classes as bases to default implementations.
  • Add owsproxy_uri in frontpage response.
  • Use hybrid_property to provide direct twitcher.models.Service.verify setter instead of protected _verify.
  • Add more logging and handling of errors to catch cases where adapter doesn't return a valid Service instance.
  • Add scoped_session to session_factory object to ensure distinct connections and transactions are created for
    concurrent requests.

v0.6.0

01 Apr 09:49
Compare
Choose a tag to compare

Changes:

  • Added Keycloak support (#91).
  • Added Keycloak demo notebook (#92, #93, #94).

v0.5.3

01 Apr 09:20
Compare
Choose a tag to compare

Changes:

  • Reduce log level of "failed security check" from exception to warning as it corresponds to the expected code behavior (unauthorised access) when OWSException is raised, instead of dumping an unhandled error traceback.

v0.5.2

12 Jul 16:03
Compare
Choose a tag to compare

New Features:

  • Adds route /info which returns contents of twitcher.__version__.
  • Adds route /versions which returns version details such as Twitcher app version and employed adapter version.

Changes:

  • Updated README.rst to match recent development, reference and docker image link.
  • Adds URI of /info and /versions routes in the frontpage response.
  • Corresponding HTTP status codes are returned for raised OWSException.

v0.5.1

24 May 15:43
Compare
Choose a tag to compare

New Features:

  • Add postgres extra requirements for when it is used as database driver with sqlalchemy.

Changes:

  • Use container instead of config for AdapterInterface.owsproxy_config to match real use cases.

Fixes:

  • Improve the adapter import methodology to work with more use cases (Ouranosinc/Magpie#182).
  • Fix incorrect setup for bump version within Makefile.
  • Fix Twitcher main including twitcher.<module> instead of .<module>.