Derek Collison
64d42c42aa
Merge pull request #858 from nats-io/service_export_wildcards
...
Support for service export with wildcards
2018-12-13 20:37:19 -08:00
Ivan Kozlovic
7c220ba700
Support for service export with wildcards
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-13 21:22:01 -07:00
Derek Collison
c87702fd7c
jwt lib update, bumped version
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-12 20:43:07 -08:00
Ivan Kozlovic
d7f4205c6c
Merge pull request #856 from nats-io/gw_add_interest_only_si_test
...
Add Gateway test for service import and interest only
2018-12-12 15:31:20 -08:00
Ivan Kozlovic
519c3dab47
Add Gateway test for service import and interest only
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-11 14:44:02 -08:00
Ivan Kozlovic
1daa7d58ab
Bump version
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-11 07:50:31 -08:00
Ivan Kozlovic
3349129c0f
Merge pull request #855 from nats-io/gw_fix_service_imports
...
Fix Gateways with Service Imports
2018-12-11 08:39:37 -07:00
Ivan Kozlovic
4719c618b3
Add some comments
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-11 07:12:33 -08:00
Ivan Kozlovic
4b70cdfc89
Fix Gateways with Service Imports
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-11 00:27:40 -08:00
Derek Collison
1418b48216
Merge pull request #854 from nats-io/test
...
quick enablement of logging and tracing
2018-12-09 21:49:58 -08:00
Derek Collison
e9c1d26f0b
quick enablement of logging and tracing
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-09 18:07:56 -08:00
Derek Collison
7fb2886098
Add total to account conn updates
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-08 18:52:04 -08:00
Derek Collison
2ab23ca307
Make public for tooling
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-08 18:33:23 -08:00
Derek Collison
2898459769
Merge pull request #853 from nats-io/perf_fix
...
Fix performance degradation introduced by GW code
2018-12-08 16:51:05 -08:00
Ivan Kozlovic
efd891d2ae
Fix performance degradation introduced by GW code
...
This impacted even non gateway traffic
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-08 17:44:32 -07:00
Derek Collison
f4fda531a0
Merge pull request #852 from nats-io/update
...
Should not send disconnect events on account $G.
2018-12-08 16:36:48 -08:00
Derek Collison
a92ef0252c
Should not send disconnect events on account $G.
...
Converted to authorization error events on different subject.
Add cluster name if gateways are configured and pass in INFO to clients.
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-08 16:07:02 -08:00
Ivan Kozlovic
f8ea803a8c
Merge pull request #851 from nats-io/gw_connect_ip_tracing
...
Add more tracing for Gateway connect/ip
2018-12-08 11:16:53 -07:00
Ivan Kozlovic
dd1b598121
Add more tracing for Gateway connect/ip
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-08 11:13:54 -07:00
Derek Collison
41575be620
Update jwt dependency
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-08 08:43:31 -08:00
Derek Collison
bb97ae7b6f
Allow normal base64 sig for bare nkeys too
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-07 22:52:16 -08:00
Ivan Kozlovic
e2af8286f4
Merge pull request #850 from nats-io/gw_fix_address_gossip
...
Resolve IP if gateway listen is 0.0.0.0 or ::
2018-12-07 18:00:43 -07:00
Ivan Kozlovic
6eaa1dc351
Resolve IP if gateway listen is 0.0.0.0 or ::
...
Otherwise, this may be sent to servers in the cluster and to other
gateways which may result in attempt to connect to self which
in case of TLS would produce error.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-07 17:28:21 -07:00
Derek Collison
4a0a0d2d7a
Allow normal base64 sig as well
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-07 16:17:09 -08:00
Derek Collison
9c667cbdf9
Set internal client to non-default, avoid race
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-07 10:32:10 -08:00
Derek Collison
be0acfd50c
Merge pull request #848 from nats-io/ping
...
Support server ping for statusz
2018-12-07 09:19:28 -08:00
Ivan Kozlovic
17f8d1874c
Merge pull request #849 from nats-io/fix_lock_inversion
...
Fixed possible deadlock when updating route permissions
2018-12-07 10:17:06 -07:00
Derek Collison
c83d7f8851
Support server ping for statusz
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-07 08:42:01 -08:00
Ivan Kozlovic
c57ff0e26c
Fixed possible deadlock when updating route permissions
...
This bug is only in master, not in any public release.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-07 09:15:05 -07:00
Ivan Kozlovic
001be75dee
Merge pull request #846 from nats-io/gw_add_service_import_queue_test
...
Added Gateway test for service import with queue group
2018-12-06 20:16:18 -07:00
Ivan Kozlovic
95a5f79ac7
Added Gateway test for service import with queue group
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-06 19:13:39 -07:00
Derek Collison
4eaea13955
Merge pull request #847 from nats-io/si
...
ServiceImports and queue groups
2018-12-06 18:11:23 -08:00
Derek Collison
08ca7b5f2a
ServiceImports and queue groups
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 17:52:17 -08:00
Derek Collison
c5ee8b2cff
Server sequences outbound may not appear sequential to other listening servers.
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 16:52:13 -08:00
Derek Collison
4bea6e0002
Test conditional fix
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 15:32:29 -08:00
Derek Collison
08380a382c
Merge pull request #844 from nats-io/sysacc
...
Internal clients aren't weighed against limits
2018-12-06 15:11:34 -08:00
Derek Collison
bdb42fab54
Don't erase nonce on reload
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 15:09:14 -08:00
Derek Collison
7b0f2426fa
Internal clients aren't weighed against limits
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 14:23:59 -08:00
Derek Collison
3d762eacd3
Merge pull request #843 from nats-io/conn_reporting
...
Added server version and cluster name to statsz. Fixed account connection reporting.
2018-12-06 11:51:01 -08:00
Derek Collison
ef5764eea0
Bump version, add RTT to StatsZ
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 11:46:14 -08:00
Derek Collison
18bca5603f
Added server version and cluster name to statsz.
...
Fixed account connection accounting sending after local connections is 0.
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 10:57:39 -08:00
Derek Collison
c3a658e1f1
Merge pull request #842 from nats-io/syslimit
...
Enforce account limits on system account too
2018-12-06 09:09:01 -08:00
Derek Collison
c0932df182
test update
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 09:02:47 -08:00
Ivan Kozlovic
6162f14dcc
Merge pull request #840 from nats-io/gw_service_imports
...
Allow service import to work with Gateways
2018-12-06 09:59:03 -07:00
Derek Collison
519d365ab9
Merge pull request #837 from ripienaar/832_remoteaddress_auth
...
[ADDED] RemoteAddress() to the CustomClientAuthentication interface
2018-12-06 08:42:41 -08:00
Derek Collison
b9aa2a3da4
Enforce account limits on system account too
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-12-06 08:37:22 -08:00
Ivan Kozlovic
a9b045498a
Update based on comments
...
Do the swapping to outbound connection only on send.
It means that those subs are stored in the inbound connection and
those are the only type of subs stored there. So on connection close
it is easy to clean them up.
Also instead of having processMsgResults have to return this sub,
simply check the size of r.psubs and if 1, the type of client
associated with it. If gateway, we know we have to do the direct
send.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-06 09:32:39 -07:00
R.I.Pienaar
08eafd89f8
Expose the connection remote address to CustomClientAuthentication
...
This adds a RemoteAddress() method to the ClientAuthentication
interface which would facilitate CustomClientAuthentication
mechanisms considering the remote IP address of the client in
their decisions to allow clients or not
Resolves #832
Signed-off-by: R.I.Pienaar <rip@devco.net >
2018-12-06 09:04:56 +01:00
Ivan Kozlovic
111e050d32
Allow service import to work with Gateways
...
This is not complete solution and is a bit hacky but is a start
to be able to have service import work at least in some basic
cases.
Also fixed a bug where replySub would not be removed from
connection's list of subs after delivery.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2018-12-05 20:35:43 -07:00
Derek Collison
0bb8562930
Merge pull request #839 from nats-io/unlimited
...
Account lookup failures, account and client limits, options reload.
2018-12-05 16:22:44 -08:00