Ben Toogood
|
e17825474f
|
Add context options to the runtime
|
2020-04-14 12:32:59 +01:00 |
|
Ben Toogood
|
0c75a0306b
|
Merge master into registry-namespace
|
2020-04-14 09:15:13 +01:00 |
|
Ben Toogood
|
d61d30ef66
|
Inject Namespace into Context
|
2020-04-14 09:14:07 +01:00 |
|
Asim Aslam
|
ea2bb0275c
|
Strip external use of mdns
|
2020-04-11 13:02:53 +01:00 |
|
Asim Aslam
|
3f81f685df
|
Move sync
|
2020-04-11 12:00:34 +01:00 |
|
Asim Aslam
|
e5268dd0a6
|
move reg util to own package (#1523)
* move reg util to own package
* fix test
* fix broken static router
|
2020-04-10 17:41:10 +01:00 |
|
ben-toogood
|
9f4286fc4e
|
Merge branch 'master' into namespace
|
2020-04-08 13:44:46 +01:00 |
|
Vasiliy Tolstov
|
1fbc056dd4
|
minimize allocations (#1472)
* server: minimize allocations on re-register
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* server: stop old instance before Init()
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* client/grpc: fix allocations in protobuf marshal
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* codec/json: fix allocations in protobuf marshal
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* remove stop from init
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* codec/grpc: expose MaxMessageSize
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* codec: use buffer pool
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* metadata: minimize reallocations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* util/wrapper: use metadata helper
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* registry/cache: move logs to debug level
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* server: move logs to debug level
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* server: cache service only when Advertise is ip addr
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* server: use metadata.Copy
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
|
2020-04-08 10:50:19 +01:00 |
|
Ben Toogood
|
4362a885eb
|
Refactor Namespace Resolver
|
2020-04-07 16:24:51 +01:00 |
|
Asim Aslam
|
b5f5027549
|
Move store scope to util
|
2020-04-07 02:23:16 +01:00 |
|
ben-toogood
|
9b546a7242
|
Change auth namespace log level (#1490)
Co-authored-by: Ben Toogood <ben@micro.mu>
|
2020-04-06 13:51:28 +01:00 |
|
Ben Toogood
|
600b20fb81
|
Change namespace error log level
|
2020-04-06 12:50:04 +01:00 |
|
Ben Toogood
|
1374a9e528
|
Fix namespace bug in auth wrapper
|
2020-04-03 13:03:27 +01:00 |
|
Ben Toogood
|
dea2d7ab9f
|
Fix go-micro auth wrapper init
|
2020-04-03 12:27:01 +01:00 |
|
Ben Toogood
|
ce23ab36cb
|
Improve Err Handling
|
2020-04-02 18:41:06 +01:00 |
|
ben-toogood
|
9fb1d476a2
|
Merge branch 'master' into auth-srv-srv
|
2020-03-31 16:15:17 +01:00 |
|
Ben Toogood
|
956029ae3d
|
Fixes for CLI login
|
2020-03-31 13:30:14 +01:00 |
|
Ben Toogood
|
d659e435c6
|
Service => Service Auth
|
2020-03-31 12:44:34 +01:00 |
|
Jake Sanders
|
3d274ab6a2
|
Add namespace support to Kubernetes client (#1446)
* Add namespace support to Kubernetes client
* Fix LastUpdateTime Condition
|
2020-03-31 12:03:32 +01:00 |
|
Asim Aslam
|
6efc5556e5
|
use requested service (#1413)
|
2020-03-25 20:59:37 +00:00 |
|
Asim Aslam
|
8d0826a031
|
Add check for k8s condition (#1412)
|
2020-03-25 19:32:41 +00:00 |
|
ben-toogood
|
1057ef6acb
|
Add ContextWithToken (#1407)
* Add ContextWithToken
* Tidying up BearerScheme
Co-authored-by: Ben Toogood <ben@micro.mu>
|
2020-03-25 11:20:53 +00:00 |
|
ben-toogood
|
35e2a68a98
|
Fix auth bug restricting access to unauthorised endpoints (#1405)
Co-authored-by: Ben Toogood <ben@micro.mu>
|
2020-03-25 10:31:33 +00:00 |
|
ben-toogood
|
0e56382107
|
Fix service level auth, add improved error descriptions to aid with debugging (#1403)
Co-authored-by: Ben Toogood <ben@micro.mu>
|
2020-03-25 09:35:29 +00:00 |
|
ben-toogood
|
e0e77f3983
|
Updated auth interface (#1384)
* Updated auth interface
* Add Rule
* Remove Rule
* Return token from Renew
* Renew => Refresh
* Implement Tokens & Default Auth Implementation
* Change default auth to noop
* Change default auth to noop
* Move token.Token to auth.Token
* Remove Token from Account
* Auth service implementation
* Decode JWT locally
* Cookie for secret
* Move string to bottom of interface definition
* Depricate auth_exclude
* Update auth wrappers
* Update go.sum
Co-authored-by: Ben Toogood <ben@micro.mu>
|
2020-03-23 16:19:30 +00:00 |
|
Janos Dobronszki
|
9501512219
|
Auth util func RequestToContext (#1386)
|
2020-03-20 15:23:12 +00:00 |
|
Asim Aslam
|
40ff6ddfcf
|
sigh, further status changes (#1371)
|
2020-03-18 22:47:03 +00:00 |
|
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 |
|
Vasiliy Tolstov
|
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 |
|
Vasiliy Tolstov
|
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 |
|
Vasiliy Tolstov
|
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 |
|
Vasiliy Tolstov
|
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 |
|
Vasiliy Tolstov
|
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 |
|