From 7c508bfad1c2e7a084ae3ee4175481ef05b246c7 Mon Sep 17 00:00:00 2001 From: ziti-ci Date: Thu, 7 May 2020 09:57:20 -0400 Subject: [PATCH] Release 0.14.1 --- doc/release-notes.md | 33 +++++++++++++++++++++++++++++++++ go.mod | 8 ++++---- go.sum | 18 ++++++++---------- 3 files changed, 45 insertions(+), 14 deletions(-) diff --git a/doc/release-notes.md b/doc/release-notes.md index 50fd4a97d..2327f8db3 100644 --- a/doc/release-notes.md +++ b/doc/release-notes.md @@ -1,3 +1,36 @@ +# Release 0.14.1 +## Theme +Ziti 0.14.1 includes the following: + +### Features +Ability to set precedence/cost after Listen. This enables graceful shutdown or client side adaptive costing + +### Fixes + * Fixed race condition in end-to-end encryption setup + * Xt fixes + * Fixed strategies missing session ended events + * Fixed costed terminator sorting + * Fixed race condition where terminators could be selected right after delete because they would have default cost. + * Expanded space between precedence levels to ensure terminator static cost doesn't allow total costs to jump precedence boundary + * Fixed type error in failure cost tracker + * Logging cleanup - many log statements that were error or info have been dropped to debug + +## Graceful SDK Hosted Application Shutdown +The Golang SDK now returns an edge.Listener instead of a net.Listener from Listen + +```go +type Listener interface { + net.Listener + UpdateCost(cost uint16) error + UpdatePrecedence(precedence Precedence) error + UpdateCostAndPrecedence(cost uint16, precedence Precedence) error +} +``` + +This allows clients to set their precedence to `failed` when shutting down. This will allow them to gracefully finishing any outstanding requests while ensuring that no new requests will be routed to this application. This should allow for applications to do round-robin upgrades without service interruption to clients. It also allows clients to influence costs on the fly based on knowledge available to the application. + +Support is currently limited to the Golang SDK, support in other SDKs will be forthcoming as it is prioritized. + # Release 0.14.0 ## Theme Ziti 0.14.0 includes the following: diff --git a/go.mod b/go.mod index ca34452a8..107a702d7 100644 --- a/go.mod +++ b/go.mod @@ -25,10 +25,10 @@ require ( github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 github.com/keybase/go-ps v0.0.0-20190827175125-91aafc93ba19 github.com/michaelquigley/pfxlog v0.0.0-20190813191113-2be43bd0dccc - github.com/netfoundry/ziti-edge v0.14.0 - github.com/netfoundry/ziti-fabric v0.11.27-0.20200504224129-499f480fc09b - github.com/netfoundry/ziti-foundation v0.9.14 - github.com/netfoundry/ziti-sdk-golang v0.11.27 + github.com/netfoundry/ziti-edge v0.14.7-0.20200507135106-633fe1313c68 + github.com/netfoundry/ziti-fabric v0.11.29 + github.com/netfoundry/ziti-foundation v0.9.15 + github.com/netfoundry/ziti-sdk-golang v0.11.30 github.com/pborman/uuid v1.2.0 github.com/pkg/errors v0.9.1 github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 diff --git a/go.sum b/go.sum index 654602936..48d2b4991 100644 --- a/go.sum +++ b/go.sum @@ -226,16 +226,14 @@ github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/netfoundry/secretstream v0.1.1 h1:z6T7B5DuOtr9O+SmKaS9DzwOoGLYtgvyTzuPuR5FO7I= github.com/netfoundry/secretstream v0.1.1/go.mod h1:uasYkYSp0MmNSlKOWJ2sVzxPms8e58TS4ENq4yro86k= -github.com/netfoundry/ziti-edge v0.14.0 h1:bIByEJP4leWgqEeazsXYwKBvQOXC+3TjJLQYuOotgwU= -github.com/netfoundry/ziti-edge v0.14.0/go.mod h1:bNZMPFHvm/wdXRHIGmbqUR6vRcdRLBANpSY/cQOYcis= -github.com/netfoundry/ziti-fabric v0.11.26 h1:G5eTWxo8EGvdzCHUMKBWV81t0V3OgUZU+6L6T8X9xBQ= -github.com/netfoundry/ziti-fabric v0.11.26/go.mod h1:4+OZb9z3JrIDyG7vgSk3XGGdJvC5v8Fkvo5K4nAIQ/Y= -github.com/netfoundry/ziti-fabric v0.11.27-0.20200504224129-499f480fc09b h1:JXhXsCv/4/DYV9UxUvrlTT3MLVDiY96/75JO5jIj+IU= -github.com/netfoundry/ziti-fabric v0.11.27-0.20200504224129-499f480fc09b/go.mod h1:4+OZb9z3JrIDyG7vgSk3XGGdJvC5v8Fkvo5K4nAIQ/Y= -github.com/netfoundry/ziti-foundation v0.9.14 h1:Cy48xmW768vQ+wVfBVO9Sy4YXwpN/FSgYhunNrx18kQ= -github.com/netfoundry/ziti-foundation v0.9.14/go.mod h1:s4O2kYpHcFzeMpS2hkNfD6W7Ce3RhsLw30Ruj4kBRu4= -github.com/netfoundry/ziti-sdk-golang v0.11.27 h1:1LoQw/gI8q/8TFk7Pc5LH81enJZRQu8/w3x5GpDNdAE= -github.com/netfoundry/ziti-sdk-golang v0.11.27/go.mod h1:qwIxZ9uUXLlY7aKgEYngDTCm3JO6r+uVBGf9N4AjeCk= +github.com/netfoundry/ziti-edge v0.14.7-0.20200507135106-633fe1313c68 h1:Hm1JqFHndasx9b7DEA7/FNqwj9pj6NcDHhPBf428Rdg= +github.com/netfoundry/ziti-edge v0.14.7-0.20200507135106-633fe1313c68/go.mod h1:KUPJljPUWx0OAXSJzZU+0RS6jTG/R+5McxSRO0+/Sak= +github.com/netfoundry/ziti-fabric v0.11.29 h1:cB53VvdL06gyGxs3qOEWV+ATMY3ThSaMSyn2xalXdhs= +github.com/netfoundry/ziti-fabric v0.11.29/go.mod h1:SQil5oz1SQgawDm3B4RpJdYQEVc7j8ddLoaocP2Z6gA= +github.com/netfoundry/ziti-foundation v0.9.15 h1:ouP2kJrft+b60JPzoFapWjZJVGdJhkzKOCdxKjmPhDU= +github.com/netfoundry/ziti-foundation v0.9.15/go.mod h1:s4O2kYpHcFzeMpS2hkNfD6W7Ce3RhsLw30Ruj4kBRu4= +github.com/netfoundry/ziti-sdk-golang v0.11.30 h1:FCg9i1O6GPt7vwOu0fMm0ySV8dicN/s8ITy3ZXwJx9k= +github.com/netfoundry/ziti-sdk-golang v0.11.30/go.mod h1:MLXmTe6ldP1S3EL/kA3E3ZLOANIWHHE1sn0mMHcoRzQ= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/oleiade/reflections v1.0.0 h1:0ir4pc6v8/PJ0yw5AEtMddfXpWBXg9cnG7SgSoJuCgY= github.com/oleiade/reflections v1.0.0/go.mod h1:RbATFBbKYkVdqmSFtx13Bb/tVhR0lgOBXunWTZKeL4w=