Asim Aslam
1bd340701b
add k8s service ip to metadata ( #1367 )
...
* add k8s service ip to metadata
* go fmt
* use same port as container
2020-03-18 18:27:29 +00:00
Asim Aslam
03031a694d
use pod phase/status ( #1356 )
2020-03-16 23:47:34 +00:00
li.peng
5712aafba9
fix: context cancel ( #1350 )
...
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-03-16 10:45:33 +00:00
Asim Aslam
e803fb0855
Runtime hacks ( #1344 )
...
* Add Args/Image to runtime
* remove the hacks
2020-03-13 18:39:59 +00:00
7b385bf163
minimize allocations in logger and tunnel code ( #1323 )
...
* logs alloc
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* tunnel allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* try to fix tunnel
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* cache cipher for send
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-11 17:55:39 +00:00
077063c212
util/addr: check ip addrs before return
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-07 23:13:56 +03:00
ben-toogood
9a7a65f05e
Auth Provider ( #1309 )
...
* auth provider mock interface
* Auth Provider Options
* Implement API Server Auth Package
* Add weh utils
* Add Login URL
* Auth Provider Options
* Add auth provider scope and setting token in cookie
* Remove auth_login_url flag
Co-authored-by: Asim Aslam <asim@aslam.me>
Co-authored-by: Ben Toogood <ben@micro.mu>
2020-03-07 11:06:57 +00:00
11be2c68b9
util/stream: fix imports ( #1310 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-06 21:17:57 +00:00
Asim Aslam
ae60bea8d8
add stream fix ( #1305 )
2020-03-06 14:40:47 +00:00
Asim Aslam
67c26c71b6
add jitter ( #1298 )
2020-03-04 15:37:17 +00:00
ben-toogood
6a9001bdb1
Set auth account in context ( #1293 )
2020-03-04 09:54:52 +00:00
ben-toogood
1f2e067f71
k8s runtime - get status from pods ( #1283 )
2020-03-02 15:49:10 +00:00
ben-toogood
962567ef42
Implement config singleton ( #1268 )
...
* Implement config singleton
* Pass token in grpc request headers
* Refactor BearerScheme
* Fix typo
2020-02-28 12:58:27 +00:00
Asim Aslam
d651b16acd
generate pseudo accounts ( #1264 )
...
* generate pseudo accounts
* when you think you're being clever
* return garbage pseudo account when no token
2020-02-26 13:42:32 +00:00
Asim Aslam
6aaaf54275
add MICRO_AUTH_TOKEN, parse token in wrapper, preload config and othe… ( #1261 )
...
* add MICRO_AUTH_TOKEN, parse token in wrapper, preload config and other things
* fix wrapper panic
2020-02-25 22:15:44 +00:00
ben-toogood
f1e7ea3020
Handle non IsNotExist errors in config ( #1251 )
...
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-02-24 18:07:11 +00:00
ben-toogood
5e8d5834eb
Dynamic Runtime source for k8s with github packages ( #1252 )
...
* Dynamic Runtime source for k8s
* Still check for source
* Replace / with - for k8s service names
* Simplify sourceForName function
2020-02-24 17:47:47 +00:00
ben-toogood
ffdf986aac
Refactor auth: add token and store implementations ( #1230 )
...
* Refactor auth: add token and memory implementations
* Fix typo
* Remove memory auth (implemented already by the store implementation), revert default to noop
* Add grpc header
* Global Config
* config/global => util/config
* Rename package to remove confict
* Tweak
* Improve Error Handling
2020-02-24 15:07:27 +00:00
cf0b39eaac
logger fixes ( #1244 )
...
* logger: fix race conditions
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* restore util/log for compatibility
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-24 13:07:40 +00:00
117f56ebf7
prune util/log and user logger ( #1237 )
...
* prune util/log and user logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* plaintext logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* add newline
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-23 13:45:20 +00:00
ben-toogood
e080ecb43a
Auth Improvements ( #1195 )
...
* Exclude Stats & Trace from Auth
* Update Excluded Endpoints Format
* Tweak Implementation
2020-02-13 14:07:14 +00:00
ben-toogood
ea70711dd3
Exclude Stats & Trace from Auth ( #1192 )
2020-02-13 12:02:29 +00:00
Janos Dobronszki
d76baf59de
Trace type is now being recorded ( #1188 )
2020-02-12 10:57:17 +00:00
ben-toogood
4a03183481
Return a 401 error on invalid auth tokens ( #1184 )
2020-02-11 11:22:22 +00:00
ben-toogood
4401c12e6c
Auth Wrapper ( #1174 )
...
* Auth Wrapper
* Tweak cmd flag
* auth_excludes => auth_exclude
* Make Auth.Excludes variadic
* Use metadata.Get (passes through http and http2 it will go through various case formats)
* fix auth wrapper auth.Auth interface initialisation
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-02-10 08:26:28 +00:00
Asim Aslam
ef537270ad
Don't store traces for Debug endpoints
2020-02-07 20:58:03 +00:00
Ben Toogood
5414195dc3
Add Args
2020-02-06 12:31:54 +00:00
Ben Toogood
0591760932
Arg => Args
2020-02-06 12:17:16 +00:00
Ben Toogood
48b9f3f5e9
Fix
2020-02-06 11:28:34 +00:00
Ben Toogood
2925b1615c
Fix
2020-02-06 11:15:30 +00:00
Ben Toogood
111126c780
Debugging
2020-02-06 11:00:14 +00:00
Ben Toogood
54371bba6a
Debugging
2020-02-06 10:55:41 +00:00
Ben Toogood
aa58a9749b
Action Asim's Feedback
2020-02-06 09:17:10 +00:00
ben-toogood
d8110b70a3
Runtime custom docker img ( #1168 )
...
* Add DeploymentOptions to K8s Client
* WithBaseImage for Runtime
* Revert Change
* Fix sequencing
2020-02-06 08:52:25 +00:00
Shu xian
12181bd441
fix LevelInfo > LevelWarn ( #1162 )
2020-02-05 18:16:57 +00:00
tpam28
449bcb46fe
New backoff ( #1153 )
...
* new backoff function
* use backoff from util/backoff
* remove reset atemts
* change comment
* fmt
2020-02-02 20:32:55 +00:00
f23638c036
fix import paths for v2 release
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-01-30 14:44:40 +03:00
Asim Aslam
b2980aecb7
fix debug handler in proxy
2020-01-29 22:31:57 +00:00
Micro
62c067adcd
Refactor debug/trace ready for Jaeger
2020-01-29 15:45:11 +00:00
Asim Aslam
4a6570a772
trace wrapper
2020-01-24 21:58:29 +00:00
Asim Aslam
fac75866d9
Move pool to util
2020-01-19 17:30:49 +00:00
Asim Aslam
0a37767127
Fix service registration with registry service
2020-01-18 19:53:51 +00:00
Asim Aslam
31e195bac7
strip image pull policy always
2020-01-18 18:37:38 +00:00
Asim Aslam
e666d0b807
add missing commit
2020-01-18 02:28:44 +00:00
Asim Aslam
7c7b0ced5f
Merge pull request #1104 from milosgajdos83/network-hackery
...
[WIP] Network hackery
2020-01-14 20:28:32 +00:00
Asim Aslam
1d311ab457
Embedded NATS Broker ( #1110 )
...
* if the address is produced by a default route don't hash it
* embedded nats
* fix url parsing
* don't override help
* add ready flag
2020-01-14 13:23:16 +00:00
Milos Gajdos
bf42c028fb
Added sync message. Refactored connect flow. Adverts are gossipped.
...
This commit adds a Sync message which is sent as a reply to Connect
message. This should in theory speed up convergence of a (re)connecting
node.
We respond to Sync message by sending a peer message back to the peer
origin of the Sync message. We consequently update our routing table and
peer graph with the data sent in via Sync message.
We now gossip advertse to up to 3 randomly selected peers instead of
sending a multicast message to the network.
Equally, Solicitation i.e. full table adverts are gossipped to a
randomly selected peer. If that fails we send a multicast message to the
network.
2020-01-13 20:14:29 +00:00
Asim Aslam
fa01ff6604
update ctx test
2019-12-31 13:53:48 +00:00
Asim Aslam
fe1e018e8e
update wrapper test
2019-12-31 13:45:49 +00:00
Asim Aslam
61cde4a9f4
Kubernetes Registry ( #1064 )
...
* add teh k8s registry
* add k8s reg config/cmd
* go mod update
2019-12-27 20:08:46 +00:00
Asim Aslam
14c9c412cd
Move and rename
2019-12-24 17:45:17 +00:00
Asim Aslam
361fdfba04
move around k8s api
2019-12-24 17:42:22 +00:00
Asim Aslam
5c8d1ae2b9
Update k8s log options
2019-12-24 17:33:05 +00:00
Jake Sanders
ce33e3b072
Kubernetes logging ( #1054 )
...
* wip
* Implementation of Kubernetes Logger
* Missing file
* Skip test in Travis
2019-12-20 23:16:05 +00:00
Asim Aslam
d52a111735
add requests/errors to stats
2019-12-18 18:36:42 +00:00
Asim Aslam
2338e7c9d2
Cleanup go mod
2019-12-18 16:12:25 +00:00
Asim Aslam
f0e841595c
move to structured logging
2019-12-18 16:02:11 +00:00
Asim Aslam
5a52593e66
go fmt
2019-12-17 18:24:00 +00:00
Jake Sanders
51f4bc6d56
Add logs to Interface
2019-12-17 16:30:09 +00:00
Jake Sanders
34b1c403bb
Merge branch 'master' of https://github.com/micro/go-micro into kubernetes-logging
2019-12-17 16:13:36 +00:00
Jake Sanders
53ca742c66
Update the util/kubernetes client to retrieve logs
2019-12-17 16:09:51 +00:00
Asim Aslam
bc30efcf70
Decruft the debug logger interface
2019-12-17 15:38:03 +00:00
Jake Sanders
e95f44d3f8
Move runtime/kubernetes/client to util/kubernetes/client
2019-12-17 11:32:38 +00:00
Milos Gajdos
5865e89bed
Fixing dead code and go vet moaning
2019-12-05 16:10:49 +00:00
Asim Aslam
b0626089f3
Merge pull request #1016 from unistack-org/lint
...
lint fixes mostly for prealloc also remove deadcode from grpc client
2019-12-05 08:33:52 +00:00
Asim Aslam
24efbe6a41
Move debug handler to service dir
2019-12-04 12:27:30 +00:00
a1eaf9cc20
linting fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-12-04 00:22:02 +03:00
Asim Aslam
91e9c0cb62
ultra hacks to make debug handler work in proxy
2019-12-02 14:55:35 +00:00
Asim Aslam
3356b83f24
register debug handler
2019-12-01 21:04:09 +00:00
Asim Aslam
af94899b54
Fix rpc go routine leak
2019-11-27 17:12:07 +00:00
Asim Aslam
080363e8c4
The mega cruft proxy PR ( #974 )
...
* the mega cruft proxy PR
* Rename broker id
* add protocol=grpc
* fix compilation breaks
* Add the tunnel broker to the network
* fix broker id
* continue to be backwards compatible in the protocol
2019-11-25 16:31:43 +00:00
Asim Aslam
eeed493766
move test data
2019-11-16 18:52:27 +00:00
Asim Aslam
90d7a87914
Move wrapper internally since its not top level relevant
2019-11-16 18:48:24 +00:00
Huang.X
5ffe367cae
fix# Change the Log level and add WarnLevel ( #935 )
...
* fix# Change the Log level and add WarnLevel
* fix# Change the Log level and add WarnLevel
2019-11-11 07:57:13 +00:00
Asim Aslam
b6db0d2663
Add ability to set log prefix
2019-10-02 17:42:34 +01:00
Asim Aslam
e1d56fbf58
switch warn to error logging
2019-08-29 17:21:43 +01:00
Asim Aslam
470304ef87
Merge pull request #701 from h-hy/master
...
Check last for the address binded in lo interface (LVS , DR mode)
2019-08-27 18:08:52 +01:00
huanghaoyan
a6ab4d7b4b
check last for the address bind in lo interface.
2019-08-27 23:35:27 +08:00
huanghaoyan
35e7b9551f
ignore Loopback Address (LVS,DR mode)
2019-08-26 21:48:40 +08:00
Asim Aslam
6128d18ee0
checkpoint fixing data race to process h2 and grpc requests
2019-08-24 20:12:04 +01:00
Asim Aslam
58bc4c103f
go fmt
2019-08-15 20:54:09 +01:00
Asim Aslam
88817dc53f
Strip some dead code
2019-08-15 20:54:00 +01:00
Asim Aslam
ef04331b86
multiplexing cruft
2019-08-15 20:08:49 +01:00
Asim Aslam
b776fbb766
add a pseudo socket implementation
2019-08-15 15:09:56 +01:00
Asim Aslam
0f6d09af33
go fmt
2019-08-15 08:47:32 +01:00
Shu Xian
bf0e46dc0d
fix registry addr error for mq-rpc
2019-08-14 21:32:28 +08:00
70d0029658
add warn log level
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-08-14 02:26:51 +03:00
a606813fdf
export log levels and reverse log level order
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-08-14 02:18:22 +03:00
Asim Aslam
c39591af0e
add a mux package for the proxy
2019-08-13 15:21:51 +01:00
Asim Aslam
fbc1d523d7
add ability to set log level via env var
2019-08-08 13:07:04 +01:00
Asim Aslam
380d9790e6
add io.ReadWriteCloser ontop of transport.Socket
2019-08-07 15:02:00 +01:00
Asim Aslam
000431f489
Nats addr fix https://github.com/micro/go-micro/pull/648
2019-08-06 09:15:54 +01:00
Asim Aslam
1db98ee0f0
move all the buffer references to util/buf
2019-07-28 19:33:24 +01:00
1217ca94b1
bunch of other ipv6 fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-07-18 08:59:53 +03:00
e688ab0a45
fix ipv6 addr parsing and using
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2019-07-17 12:20:29 +03:00
Asim Aslam
e0bf1c2283
Remove Port from registry
2019-07-08 08:01:42 +01:00
Asim Aslam
686aa3aa05
log levels
2019-07-02 19:21:43 +01:00
Asim Aslam
1b4005e9a5
Go fmt everything
2019-06-21 17:20:41 +01:00
Asim Aslam
ca5acba0c6
Move selector to client/selector
2019-06-21 15:13:54 +01:00
Asim Aslam
d3a6297b17
Add working grpc proxy config
2019-06-18 18:51:52 +01:00
Asim Aslam
4035ab5c7b
Change go-log links
2019-05-31 00:38:05 +01:00
Asim Aslam
5595a8e0e4
Add log => go-log
2019-05-31 00:35:04 +01:00
Asim Aslam
b4874806df
Add util
2019-05-30 23:52:10 +01:00