Pull in events changes and update release notes

This commit is contained in:
Paul Lorenz
2020-08-07 12:02:24 -04:00
parent a3c8487bb4
commit ff738ca638
4 changed files with 39 additions and 16 deletions
+25 -1
View File
@@ -2,6 +2,8 @@
# What's New:
**Important Note:** This release contains backwards incompatible changes. See below for details.
* End-To-End Encryption Enhancements
* [e2e Service Configuration & Router Termination](https://github.com/openziti/edge/issues/173)
* Router Scaling Issues
@@ -12,6 +14,10 @@
* [foundation#107](https://github.com/openziti/foundation/issues/107)
* [edge#258](https://github.com/openziti/edge/issues/258)
* [#163](https://github.com/openziti/ziti/issues/163)
* Events Framework
* [foundation#116](https://github.com/openziti/foundation/issues/116) - Add generic event framework and use it for metrics
* [fabric#106](https://github.com/openziti/fabric/issues/106) - Event Streaming
* [edge#229](https://github.com/openziti/edge/issues/229) - Stream Session Events
* Bug Fixes:
* [#152](https://github.com/openziti/ziti/issues/152) - Fix ziti-router enroll exit code on failure
@@ -171,11 +177,29 @@ These APIs can be used from the ziti CLI.
* `ziti edge db check-integrity` - to report on data integrity issues
* `ziti edge db check-integrity -f` - to report on data integrity issues and attempt to fix any that are found
## Events Framework
Ziti now has a shared events framework used across projects. Events are used internally and can be used by users to write components which plug into Ziti and react to events (or make them available externally).
Each project which exposes events will have a top-level events package where you can find registration hooks for all exposed events in the project
### Current Event Types
* foundation
* metrics events
* fabric
* fabric session events (session created, session deleted, session path changed)
* trace events
* edge
* **NEW** edge session events (session created, session deleted)
* the session event created includes sessionId, session token, API sessionId and identity id
* the session deleted event includes sessionId and session token
NOTE: The clientId on fabric session events is the edge session token for fabric sessions created from the edge
# Release 0.15.3
* What's New:
* Add example docker compose for ziti-tunnel
# Release 0.15.2
* What's New:
+4 -4
View File
@@ -26,10 +26,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/openziti/edge v0.15.39
github.com/openziti/fabric v0.12.0
github.com/openziti/foundation v0.11.19
github.com/openziti/sdk-golang v0.13.28
github.com/openziti/edge v0.15.40
github.com/openziti/fabric v0.12.1
github.com/openziti/foundation v0.12.0
github.com/openziti/sdk-golang v0.13.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
+8 -10
View File
@@ -25,7 +25,6 @@ github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d h1:G0m3OIz70MZUW
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
github.com/achanda/go-sysctl v0.0.0-20160222034550-6be7678c45d2 h1:NYoPVh1XuUB5VBWLXRKoqzQhl4bajIxh+XuURbJ0uwc=
github.com/achanda/go-sysctl v0.0.0-20160222034550-6be7678c45d2/go.mod h1:DCNKSpXhum14Y258jSbRmJvcesbzEdBPincz7yJUx3k=
github.com/alangpierce/go-forceexport v0.0.0-20160317203124-8f1d6941cd75/go.mod h1:uAXEEpARkRhCZfEvy/y0Jcc888f9tHCc1W7/UeEtreE=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c=
@@ -321,7 +320,6 @@ github.com/mailru/easyjson v0.7.1 h1:mdxE1MF9o53iCb2Ghj1VfWvh7ZOwHpnVG/xwXrV90U8
github.com/mailru/easyjson v0.7.1/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs=
github.com/markbates/oncer v0.0.0-20181203154359-bf2de49a0be2/go.mod h1:Ld9puTsIW75CHf65OeIOkyKbteujpZVXDpWK6YGZbxE=
github.com/markbates/safe v1.0.1/go.mod h1:nAqgmRi7cY2nqMc92/bSEeQA+R4OheNU2T1kNSCBdG0=
github.com/marten-seemann/chacha20 v0.2.0/go.mod h1:HSdjFau7GzYRj+ahFNwsO3ouVJr1HFkWoEwNDb4TMtE=
github.com/marten-seemann/qpack v0.1.0/go.mod h1:LFt1NU/Ptjip0C2CPkhimBz5CGE3WGDAUWqna+CNTrI=
github.com/marten-seemann/qtls v0.9.1 h1:O0YKQxNVPaiFgMng0suWEOY2Sb4LT2sRn9Qimq3Z1IQ=
github.com/marten-seemann/qtls v0.9.1/go.mod h1:T1MmAdDPyISzxlK6kjRr0pcZFBVd1OZbBb/j3cvzHhk=
@@ -384,14 +382,14 @@ github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1Cpa
github.com/onsi/gomega v1.8.1 h1:C5Dqfs/LeauYDX0jJXIe2SWmwCbGzx9yF8C8xy3Lh34=
github.com/onsi/gomega v1.8.1/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA=
github.com/openzipkin/zipkin-go v0.1.1/go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8=
github.com/openziti/edge v0.15.39 h1:WboCGDSClaURwOAqWwQ8CFOGVEfqk8EbFdEg8dCICXA=
github.com/openziti/edge v0.15.39/go.mod h1:ucsqeaFn+fdBHjyMJVqIK6s/Tj4sVOG3oaBKFvjqekU=
github.com/openziti/fabric v0.12.0 h1:PdDeVc68WSP4fa+G99+klAOUHB8CwV6Nu1zb4/Bi2Ow=
github.com/openziti/fabric v0.12.0/go.mod h1:m0wfc70b7f3x7xj4zs+WtJzXsPjraCKy8NwdKCk21js=
github.com/openziti/foundation v0.11.19 h1:yKhkIK8Pwv/BVXTcEu0SBrGB6LknuTWKpiLflSOaqKo=
github.com/openziti/foundation v0.11.19/go.mod h1:qYViHuLb9+F2Sf8Fp82hvx+oVyP3nWV2czTN/n+zHCc=
github.com/openziti/sdk-golang v0.13.28 h1:FVUosVbIhomz+SOSf4xnNqboZ2KA978qT+Xtf2/PF9w=
github.com/openziti/sdk-golang v0.13.28/go.mod h1:9B5Sa53tGt1k+tolZT1A423wph041oui5zt2WHLU4Gc=
github.com/openziti/edge v0.15.40 h1:UC18994wrt6CMS37U9frLN2dsaoGaPo6zzF8e1nNugU=
github.com/openziti/edge v0.15.40/go.mod h1:3c5RLzZAIMGwdLj6AZ9dxJcv/qKDiSsd/Kp7c4yDVtE=
github.com/openziti/fabric v0.12.1 h1:zrz2n+WGF5+wgur8BNIOMZfMSVn1FLpT8tQpkUrWfKk=
github.com/openziti/fabric v0.12.1/go.mod h1:eNpt7GEtH0Ip2GlTjHPUMX2hWLqmiTjWqVdlNbPWbmw=
github.com/openziti/foundation v0.12.0 h1:SbzKnB36JV6XGK/+qBvm1dueutwBnAu/SijAvgtFo1c=
github.com/openziti/foundation v0.12.0/go.mod h1:uvBYCrcoXW1qOKM3RL7SHhafJz4EHfpjdpzbS0D0Qdc=
github.com/openziti/sdk-golang v0.13.30 h1:DifRP6gwEUDOUvtRVhlUKOxOaC+uKVRPQ15YAa47Ki4=
github.com/openziti/sdk-golang v0.13.30/go.mod h1:oyZT3jGkpEmcey9+joMaudW3OVmBt1QOrZ3tvEGdyW0=
github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6 h1:lNCW6THrCKBiJBpz8kbVGjC7MgdCGKwuvBgc7LoD6sw=
github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6/go.mod h1:Lu3tH6HLW3feq74c2GC+jIMS/K2CFcDWnWD9XkenwhI=
github.com/pborman/uuid v1.2.0 h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g=
+2 -1
View File
@@ -4,6 +4,7 @@ import (
"context"
influxdb "github.com/influxdata/influxdb1-client"
"github.com/michaelquigley/pfxlog"
"github.com/openziti/foundation/events"
"github.com/openziti/foundation/metrics"
"github.com/openziti/foundation/metrics/metrics_pb"
"github.com/openziti/sdk-golang/ziti"
@@ -132,7 +133,7 @@ func (p *probe) run(cmd *cobra.Command, args []string) {
}
log.Info("connected to influx version = ", res)
p.ctx.Metrics().EventController().AddHandler(p)
events.AddMetricsEventHandler(p)
go p.sendMetrics()