jxlwqq
d9a6faeb7a
Add latest version ( #2303 )
Run tests / Test repo (push) Waiting to run
2021-10-11 15:15:42 +01:00
Asim Aslam
4cb6168780
Update README.md
2021-10-11 09:21:06 +01:00
Asim Aslam
b8d7f87d17
remove file
2021-10-11 09:19:20 +01:00
Asim Aslam
b2e17a89e5
rename file
2021-10-11 09:19:01 +01:00
Asim Aslam
4ae2528cbe
add m3o services ( #2301 )
...
* add m3o services
* update readme
2021-10-11 09:18:28 +01:00
Asim Aslam
043a82bce2
Update README.md
2021-10-11 08:38:31 +01:00
Asim Aslam
99e0b182b7
Update README.md
2021-10-11 08:38:07 +01:00
Asim Aslam
ab1b10f13d
Update README.md
2021-10-11 08:37:38 +01:00
jxlwqq
86eabf4a4c
Use go install ( #2300 )
...
go get: installing executables with 'go get' in module mode is deprecated.
To adjust and download dependencies of the current module, use 'go get -d'.
To install using requirements of the current module, use 'go install'.
To install ignoring the current module, use 'go install' with a version,
like 'go install example.com/cmd@latest'.
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
2021-10-11 06:32:13 +01:00
Qalifah
a99a1e9356
add MultiError type ( #2297 )
2021-10-06 17:55:14 +01:00
Asim Aslam
2ef523a7eb
Delete index.html
2021-10-02 13:13:22 +01:00
Asim Aslam
a1da40d9aa
Delete CNAME
2021-10-01 20:23:38 +01:00
Defoo Li
a315fc2dda
Fix missing content type ( #2289 )
2021-09-30 12:15:09 +01:00
Johnson C
6dc25053ea
Errors ( #2290 )
...
* add errors.As
convert target err to *Error, return false if err don't match *Error
* update errors.As to (*Error, bool)
* fixing FromError panic issue when err is nil
2021-09-30 07:45:10 +01:00
Qiu Yu
4612baa7f8
zap plugin: allow injecting zap logger options ( #2287 )
...
Though some of the Zap logger option can be customized through
plugins/logger/zap.Options, this change allows go.uber.org/zap.Option be
be injected directly for deeper customization.
2021-09-29 07:12:16 +01:00
Johnson C
44ecd6a457
Hystrix filter ( #2286 )
...
* support hystrix filter
* filter function should return true of false
2021-09-28 11:23:04 +01:00
Asim Aslam
8c39b1e120
Update index.html
2021-09-24 09:10:04 +01:00
Asim Aslam
12eff1cc60
go fmt
2021-09-24 09:08:39 +01:00
Asim Aslam
9deb715ebb
Update go.mod
2021-09-24 09:08:16 +01:00
Arsen
3b60db0dcd
logger helper: add "inject" method, to make a pair with "extract" ( #2283 )
2021-09-23 16:48:08 +01:00
Asim Aslam
af22cbb108
Update README.md
2021-09-22 14:48:20 +01:00
Asim Aslam
9d7131a512
Update README.md
2021-09-22 14:43:37 +01:00
Asim Aslam
bca9ab165d
Update README.md
2021-09-22 14:42:17 +01:00
Asim Aslam
d111f96993
Update README.md
2021-09-22 14:41:29 +01:00
Asim Aslam
2f223c276c
Update README.md
2021-09-22 14:32:06 +01:00
Asim Aslam
33acb4a956
update readme
2021-09-22 14:31:21 +01:00
Asim Aslam
b515785637
add services dir
2021-09-22 14:30:40 +01:00
Asim Aslam
3dcdcdad32
Update README.md
2021-09-22 13:37:07 +01:00
Arsen
916ed6b8ee
logger: caller's skip correction ( #2280 )
2021-09-22 09:01:03 +01:00
gregkv
b8fbe87e1f
Use context to log "panic recovered" errors in grpc-server plugin ( #2278 )
2021-09-20 10:50:13 +01:00
Asim Aslam
cb3db7dd83
Update options.go
2021-09-19 17:22:28 +01:00
simon
066ce5045b
Command Option add NewConfig,NewProfile func ( #2276 )
...
* Add grpc,memory,quic transport automatically discover
* Add grpc,memory,quic transport automatically discover
* Add jwt auth automatically discover
* Add jwt auth automatically discover
* Add config command option automatically discover
* Add AuthCall wrapper func
* Add NewConfig func
* Add NewProfile func
2021-09-19 17:21:55 +01:00
Asim Aslam
a65932ff82
Create CNAME
2021-09-19 15:10:47 +01:00
Asim Aslam
5496086916
Create index.html
2021-09-19 14:44:03 +01:00
Kurisu_Amatist
efd4ef0e62
fix(cache): only watch calling service in registry ( #2273 )
2021-09-19 10:40:21 +01:00
gregkv
00d819a199
Remove fields map from Helper, add Extract method and fix for defaultLogger.Fields ( #2274 )
2021-09-19 10:40:09 +01:00
helloword
ad532522ea
Config CORS ( #2270 )
...
* Added cors.config for CORS
* Added cors.config for CORS
* Added cors.config for CORS
Co-authored-by: 于海洋 <yhy@iothinking.com >
2021-09-17 10:17:12 +01:00
Christoffer Åström
4c7d2e28eb
test(api): fix randomly failing rpc test ( #2268 )
2021-09-13 21:56:36 +01:00
Branden Horiuchi
d78d35078c
Consul sync plugin ( #2267 )
...
* adding consul sync provider
* adding logging options
Co-authored-by: Branden Horiuchi <Branden.Horiuchi@blackline.com >
2021-09-13 19:08:05 +01:00
Johnson C
22409c8ff3
support hystrix filter ( #2265 )
2021-09-13 09:23:26 +01:00
binbin.zhang
6c3a5c161f
upgrade nacos sdk version ( #2264 )
...
Co-authored-by: binbin <binbin@didiglobal.com >
2021-09-12 22:16:46 +01:00
Niek den Breeje
fa27250605
Add generate kubernetes command ( #2261 )
2021-09-10 18:56:51 +01:00
Niek den Breeje
ac21bb5b19
Document Gomu's generator package ( #2262 )
2021-09-10 18:48:09 +01:00
Niek den Breeje
5b8d22a463
Add Kubernetes flag to new command ( #2263 )
...
To remain consistent with the Gomu's generate command, we add a
Kubernetes flag to Gomu's new command as well.
2021-09-10 18:47:55 +01:00
Niek den Breeje
56d5143557
Document Gomu's generate command ( #2260 )
2021-09-10 14:30:46 +01:00
Niek den Breeje
5772697752
Make generator package a first class citizen ( #2259 )
...
There's really no point in having the `generator` be embedded in a
`file` package so we remove the `file` package and make the `generator`
package a first class citizen instead.
2021-09-10 13:31:52 +01:00
Niek den Breeje
e23006b1a5
Generate Gomu files after the fact ( #2258 )
...
* Move file generation to new package
* Use text/template instead of html/template
* Make config variables more consistent
* Combine generate files and print comments there
* Add gomu generate command
* Refactor project templating to file library
* Determine client earlier
2021-09-10 13:20:57 +01:00
Niek den Breeje
01b7b4409b
Fix generating Dockerfile with Gomu ( #2254 )
...
Somehow I didn't test this and managed to forget to properly close a
template control structure. This change fixes that.
2021-09-08 14:43:52 +01:00
Niek den Breeje
0dd6afe128
Optimize Dockerfile generated by Gomu ( #2253 )
...
This change prevents having to rebuild the entire Docker image when your
source code changes.
2021-09-08 12:50:30 +01:00
Niek den Breeje
a36f52c6d2
Fix Gomu's call response ( #2251 )
...
Gomu expects a `map[string]string` type response back, but this isn't
always the case. When Gomu calls a service endpoint that responds with,
let's say, a key where its value is a map or a list, Gomu would be
unable to decode that response. By expecting a `map[string]interface{}`
type response, Gomu is able to decode those responses as well.
2021-09-08 08:30:53 +01:00
simon
440aa4a1ce
Add AuthCall wrapper func ( #2250 )
...
* Add grpc,memory,quic transport automatically discover
* Add grpc,memory,quic transport automatically discover
* Add jwt auth automatically discover
* Add jwt auth automatically discover
* Add config command option automatically discover
* Add AuthCall wrapper func
2021-09-07 07:13:56 +01:00
Niek den Breeje
f77c91b7ae
Simplify gomu cmd registering ( #2249 )
...
* Use internal runtime package for gomu run
This change refactors the `gomu run` command to use Go Micro's internal
runtime package in order to run services. Not only does this clean up
duplicate functionality between Go Micro and Gomu, but also adds the
feature to Gomu to run remote projects. For example, the following
command pulls in a remote project and runs it locally.
```bash
gomu run github.com/auditemarlow/helloworld
```
The `gomu run` command remains backwards compatible. By invoking `gomu
run` in a Go Micro project directory, Gomu will simply run that project.
* Simplify Gomu's command registering
By leveraging Go's `init()` function, we can simplify registering
commands just a tad.
2021-09-06 14:12:27 +01:00
Niek den Breeje
a58b8883f8
Use internal runtime package for gomu run ( #2248 )
...
This change refactors the `gomu run` command to use Go Micro's internal
runtime package in order to run services. Not only does this clean up
duplicate functionality between Go Micro and Gomu, but also adds the
feature to Gomu to run remote projects. For example, the following
command pulls in a remote project and runs it locally.
```bash
gomu run github.com/auditemarlow/helloworld
```
The `gomu run` command remains backwards compatible. By invoking `gomu
run` in a Go Micro project directory, Gomu will simply run that project.
2021-09-06 14:01:29 +01:00
simon
270d910b73
Add config command option automatically discover ( #2246 )
...
* Add grpc,memory,quic transport automatically discover
* Add grpc,memory,quic transport automatically discover
* Add jwt auth automatically discover
* Add jwt auth automatically discover
* Add config command option automatically discover
2021-09-04 07:17:21 +01:00
Niek den Breeje
77bf39f2cd
Fix client gRPC plugin ( #2245 )
...
The helloworld examples found in the `google.golang.org/grpc/examples`
package were imported multiple times as different versions, resulting in
package conflicts. By running `go mod tidy`, these conflicts are
resolved and the gRPC client plugin can now be imported again.
2021-09-03 14:16:56 +01:00
Niek den Breeje
c45073a308
Fix Skaffold pipelines for client projects ( #2244 )
...
* Update greeter references to helloworld
* Add new client command
With this change, Gomu users will be able to generate template projects
for clients to services. Additionally vendor support has been built in
so Gomu users can now generate projects using fully qualified package
names, for example:
```bash
gomu new service github.com/auditemarlow/helloworld
```
This will create a new service project `helloworld` with its module name
already set to `github.com/auditemarlow/helloworld`. Likewise, Gomu
users can then generate client projects in the same manner:
```bash
gomu new client github.com/auditemarlow/helloworld
```
This will create a `helloworld-client` project that uses the protobufs
found in the `github.com/auditemarlow/helloworld` service. This removes
at least some strain in configuring these module dependencies yourself;
you can just scaffold them outright from the start.
Although the default client project is highly opinionated, it works
straight out of the box and has Skaffold in mind. Gomu users should be
able to get going in a matter of seconds.
* Update README
* Fix Skaffold pipeline for generated client projects
2021-09-03 13:26:34 +01:00
Niek den Breeje
86de031adc
[WIP] Add new client cmd ( #2243 )
...
* Update greeter references to helloworld
* Add new client command
With this change, Gomu users will be able to generate template projects
for clients to services. Additionally vendor support has been built in
so Gomu users can now generate projects using fully qualified package
names, for example:
```bash
gomu new service github.com/auditemarlow/helloworld
```
This will create a new service project `helloworld` with its module name
already set to `github.com/auditemarlow/helloworld`. Likewise, Gomu
users can then generate client projects in the same manner:
```bash
gomu new client github.com/auditemarlow/helloworld
```
This will create a `helloworld-client` project that uses the protobufs
found in the `github.com/auditemarlow/helloworld` service. This removes
at least some strain in configuring these module dependencies yourself;
you can just scaffold them outright from the start.
Although the default client project is highly opinionated, it works
straight out of the box and has Skaffold in mind. Gomu users should be
able to get going in a matter of seconds.
* Update README
2021-09-03 12:33:10 +01:00
simon
80dbe51077
Add jwt auth automatically discover ( #2242 )
...
* Add grpc,memory,quic transport automatically discover
* Add grpc,memory,quic transport automatically discover
* Add jwt auth automatically discover
* Add jwt auth automatically discover
2021-09-03 07:49:49 +01:00
Johnson C
f444dadd50
fixing #2235 win10 install failed issue ( #2239 )
2021-09-03 07:49:39 +01:00
Christoffer Åström
e080791787
chore(gomu): tweak makefile template ( #2238 )
2021-09-02 18:24:28 +01:00
simon
a159598f36
Add grpc,memory,quic transport automatically discover ( #2237 )
...
* Add grpc,memory,quic transport automatically discover
* Add grpc,memory,quic transport automatically discover
2021-09-02 18:10:24 +01:00
Niek den Breeje
993e2f55bd
Add Kubernetes resources ( #2236 )
...
* Refact new command implementation
Everytime I want to add or modify files in the new command, I will have
to do so in 2 places. This change will consolidate functionality so
there's only a single place to modify.
* Move Kubernetes resources to its own file
* Add Kubernetes resources
2021-09-02 13:35:00 +01:00
Niek den Breeje
ed9053ed94
Add cache example ( #2232 )
2021-09-01 10:08:43 +01:00
Niek den Breeje
05a299b76c
Add simple in-memory cache ( #2231 )
...
* Add simple in-memory cache
* Support configuring cache expiration duration
* Support preinitializing cache with items
* Register cache
2021-08-31 15:31:16 +01:00
Asim Aslam
dd0a7746ff
update the gomu gomod
2021-08-31 15:19:45 +01:00
Asim Aslam
088ccb5001
Update README.md
2021-08-31 09:27:36 +01:00
Niek den Breeje
4363678e48
Exit when help flag is provided on service run ( #2225 )
2021-08-31 09:13:35 +01:00
Niek den Breeje
9a77c06b44
Move from micro/cli/v2 to urfave/cli/v2 ( #2224 )
...
* Use urfave/cli/v2 instead of micro/cli/v2
Wherever possible we may want to eliminate the use of github.com/micro
imports.
* Fix broken cli test
2021-08-31 09:05:08 +01:00
Niek den Breeje
78bea87690
Add gomu CLI tool ( #2223 )
2021-08-30 15:48:57 +01:00
Johnson C
49eccbc85a
fixing proto3 optional unsupported error ( #2213 )
...
add supported features
2021-08-24 08:14:33 +01:00
Asim Aslam
7f1ebaa572
Update README.md
2021-08-23 16:45:04 +01:00
Qiu Yu
c7195aae98
Grpc server injection ( #2208 )
...
Run tests / Test repo (push) Waiting to run
* plugin: update grpc server readme
* plugin: refactor gprc server test
This is a no-op change to enable test logic reuse for different
combinations.
* plugin: grpc server test Init after New
* plugin: allow grpc.Server to be injected
2021-08-12 18:26:26 +01:00
Arsen
ffb0a2f896
grpc client: fix grpc code to micro http status conversion for the fallback case with empty Details ( #2206 )
2021-08-12 12:15:49 +01:00
Qiu Yu
b977a51253
Examples: fix grpc config ( #2207 )
...
This change fixes grpc config example code which is currently broken.
Several pieces in the change:
- use yaml encoder to read config files
- rename *.yml to *.yaml to fix format (file suffix) for encoder lookup
- replace util/log package with logger as the former one is deprecated
2021-08-12 06:27:04 +01:00
dependabot[bot]
046d0785c9
Bump github.com/gin-gonic/gin from 1.6.3 to 1.7.0 in /examples ( #2205 )
...
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin ) from 1.6.3 to 1.7.0.
- [Release notes](https://github.com/gin-gonic/gin/releases )
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gin-gonic/gin/compare/v1.6.3...v1.7.0 )
---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-11 13:57:15 +01:00
Qiu Yu
828d3f2b74
loader: avoid overwriting values if error happens ( #2204 )
2021-08-11 13:33:58 +01:00
Qiu Yu
a46dc0b856
Add yaml config example ( #2203 )
...
* examples: add yaml config
* examples: update go mod for yaml plugin
2021-08-11 13:31:29 +01:00
Johnson C
3e0411a3f6
fixing mem.pprof issue: ( #2198 )
...
parsing profile: concatenated profiles detected
fixing web service not start profile issue
fixing no default profile options issue
2021-08-04 09:39:01 +01:00
bacndcmc
c3107e6843
fix code proto return invalid message ( #2196 )
...
Co-authored-by: ben <norton0395@gmail.com >
2021-07-26 06:25:21 +01:00
Asim Aslam
e1bc7e3028
Update README.md
2021-07-21 09:06:34 +01:00
Asim Aslam
992418236e
Update README.md
2021-07-21 09:05:38 +01:00
Asim Aslam
27a792790b
Update README.md
2021-07-21 09:05:20 +01:00
Asim Aslam
bd9821111e
remove tidy file
2021-07-19 17:57:33 +01:00
Asim Aslam
dbba07e7ed
Delete tidy.md
2021-07-19 17:55:08 +01:00
xshytikx
753022d2ae
fix: imported and not used (log, os) ( #2195 )
...
github.com/asim/go-micro/plugins/registry/consul/v3@v3.0.0-20210716165540-546225f1d8db/watcher.go:5:2: imported and not used: "log"
github.com/asim/go-micro/plugins/registry/consul/v3@v3.0.0-20210716165540-546225f1d8db/watcher.go:5:2: imported and not used: "log"
2021-07-18 07:18:11 +01:00
JeffreyBool
546225f1d8
Not Recommended Function Correction ( #2194 )
...
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
* Optimize some code
* fix service default logger
* Not Recommended Function Correction
2021-07-16 17:55:40 +01:00
JeffreyBool
0532fd9de8
fix logger v3 ( #2193 )
...
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
* Optimize some code
* fix service default logger
* Repair mq asynchronous send, mq write failure without error output
* Repair mq asynchronous send, mq write failure without error output
* fix logger v3
2021-07-12 07:18:37 +01:00
lanrion
3fbf2c304f
Optimize prometheus wrapper,removed mutex,initialize MetricVec at init() ( #2192 )
...
Co-authored-by: dylan.deng <dylan.deng@yijinin.com >
2021-07-09 12:52:08 +01:00
JeffreyBool
6cdf28270f
Repair mq asynchronous send, mq write failure without error output ( #2191 )
...
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
* Optimize some code
* fix service default logger
* Repair mq asynchronous send, mq write failure without error output
* Repair mq asynchronous send, mq write failure without error output
2021-07-09 06:19:09 +01:00
Johnson C
7f1de77e8c
try fixing staticcheck warning ( #2190 )
...
Run tests / Test repo (push) Waiting to run
https://github.com/golang/protobuf/issues/1077
package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead. (SA1019)
2021-07-06 12:51:28 +01:00
Asim Aslam
1c482e8922
add web package
2021-07-06 11:12:19 +01:00
wangYue
70ed9bf154
fix missing error ( #2189 )
...
Co-authored-by: wangyue <wangyue@actiontech.com >
2021-06-30 10:13:05 +01:00
Jerry
93ba8cd0df
continue fix pre version go get bug that unknown v3.5.1 ( #2188 )
...
* 1.fix plugins go get bug.
2.update all mode.
3.add tidy tools
* continue fix pre version go get bug that unknown v3.5.1
2021-06-30 09:24:00 +01:00
Jerry
c13bb07171
1.fix plugins go get bug. ( #2187 )
...
2.update all mode.
3.add tidy tools
2021-06-30 07:21:03 +01:00
Jerry
4929a7c16e
update etcd version ( #2186 )
...
Remove missing gRPC example from README.md (#2112 )
Delete docker.yml
Delete Dockerfile
update plugins version & remove replace (#2118 )
* update memory registry plugins version & remove replace
* update plugins version & remove replace
Co-authored-by: 申法宽 <shenfakuan@163.com >
update client/grpc plugins version & remove replace (#2119 )
* update memory registry plugins version & remove replace
* update plugins version & remove replace
* update plugins/client/grpc/v3 version
Co-authored-by: 申法宽 <shenfakuan@163.com >
update etcd version (#2120 )
update mod version
update
update pulgin registry mod version (#2121 )
* update etcd version
* update mod version
* update
fix store delete
support for tls on http plugin (#2126 )
improve code quality (#2128 )
* Fix inefficient string comparison
* Fix unnecessary calls to Printf
* Canonicalize header key
* Replace `t.Sub(time.Now())` with `time.Until`
* Remove unnecessary blank (_) identifier
* Remove unnecessary use of slice
* Remove unnecessary comparison with bool
Update README.md
Update README.md
remove network package
update quic go mod
remove indirects
update etcd mod version
Update registry plugins mod version (#2130 )
* update etcd version
* update mod version
* update
* update etcd mod version
Update README.md
Update README.md
Update README.md
fixing etcd stack in getToken (#2145 )
when provide username and password, etcd will try to get auth token from server
if server is unavailble, etcd client will stack in
when dial timeout is set, it will return err instead of stack in
Update README.md
add http demo; http client can call http server; http client can call rpc server (#2149 )
Add etcd to default registries when plugin is loaded (#2150 )
Co-authored-by: Andrew Jones <andrew@gotoblink.com >
Update README.md
make rpcClient compatible with 32bit arm systems (#2156 )
On ARM, 386, and 32-bit MIPS, it is the caller's responsibility to
arrange for 64-bit alignment of 64-bit words accessed
atomically. Only the first word in an allocated struct can
be relied upon to be 64-bit aligned.
optimize the process of switching grpc error to micro error (#2158 )
Fix util/log/log.Infof format didn't work (#2160 )
Co-authored-by: Cui Gang <cuigang@yunpbx.com >
fixing string field contains invalid UTF-8 issue (#2164 )
fix k8s api memory leak (#2166 )
fix http No release Broker (#2167 )
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
fix: "Solve the problem that the resources have not been fully released due to early exit" (#2168 )
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
fix service default logger (#2171 )
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
* Optimize some code
* fix service default logger
Update README.md
get k8s pod (#2173 )
Update README.md
fix:field (#2176 )
* get k8s pod
* fix: filed
* field
Update README.md
add rmq message properties (#2177 )
Co-authored-by: dtitov <dtitov@might24.ru >
Update README.md
grpc server add RegisterCheck (#2178 )
fix 404 bug (#2179 )
fix undefined: err (#2181 )
Add registry and config/source plugins based on nacos/v2 (#2182 )
* Add registry plugins implement by nacos/v2
* Add config/source plugins implement by nacos/v2
support hystrix fallback (#2183 )
Windows event log plugin (#2180 )
* add rmq message properties
* eventlog start
* start eventlog
* windows event logger
* readme
* readme
Co-authored-by: dtitov <dtitov@might24.ru >
support etcd auth with env args (#2184 )
* support etcd auth with env args
set default registry address with env arg instead of 127.0.0.1
* fixing MICRO_REGISTRY_ADDRESS may empty issue
update mod version
2021-06-29 13:40:54 +01:00
Johnson C
212df8e6c3
support etcd auth with env args ( #2184 )
...
* support etcd auth with env args
set default registry address with env arg instead of 127.0.0.1
* fixing MICRO_REGISTRY_ADDRESS may empty issue
2021-06-23 07:45:01 +01:00
Dmitry Titov
8dc9bf49a1
Windows event log plugin ( #2180 )
...
* add rmq message properties
* eventlog start
* start eventlog
* windows event logger
* readme
* readme
Co-authored-by: dtitov <dtitov@might24.ru >
2021-06-20 09:28:30 +01:00
qm012
4daa499912
support hystrix fallback ( #2183 )
2021-06-20 09:28:15 +01:00
Yusan Kurban
939f346d83
Add registry and config/source plugins based on nacos/v2 ( #2182 )
...
* Add registry plugins implement by nacos/v2
* Add config/source plugins implement by nacos/v2
2021-06-18 14:23:03 +01:00
qm012
08216ccf31
fix undefined: err ( #2181 )
2021-06-17 11:11:38 +01:00
qm012
4deeaff8ad
fix 404 bug ( #2179 )
2021-06-16 07:56:41 +01:00
dudu
b892efa25f
grpc server add RegisterCheck ( #2178 )
2021-06-11 09:57:44 +01:00
Asim Aslam
4af9e245fb
Update README.md
2021-06-09 10:31:10 +01:00
Dmitry Titov
52bb3845f6
add rmq message properties ( #2177 )
...
Co-authored-by: dtitov <dtitov@might24.ru >
2021-06-08 10:34:47 +01:00
Asim Aslam
a1e9b88495
Update README.md
2021-06-04 10:17:30 +01:00
biubiubiu-ljd
ed44e9acc3
fix:field ( #2176 )
...
* get k8s pod
* fix: filed
* field
2021-06-03 07:01:26 +01:00
Asim Aslam
86d8d8f07e
Update README.md
2021-06-02 14:02:58 +01:00
biubiubiu-ljd
62112b015f
get k8s pod ( #2173 )
2021-06-02 13:54:02 +01:00
Asim Aslam
ca2014bf8e
Update README.md
2021-06-01 06:23:33 +01:00
JeffreyBool
acc3f5479f
fix service default logger ( #2171 )
...
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
* Optimize some code
* fix service default logger
2021-05-23 08:38:20 +01:00
JeffreyBool
f48911d2c3
fix: "Solve the problem that the resources have not been fully released due to early exit" ( #2168 )
...
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
* Solve the problem that the resources have not been fully released due to early exit
* Optimize some code
* Optimize some code
2021-05-17 08:16:52 +01:00
JeffreyBool
4c1f81dadb
fix http No release Broker ( #2167 )
...
* Update http.go
Exit before deregister is executed
* Create http.go
Exit before deregister is executed
2021-05-13 13:07:25 +01:00
Tt yo
32cb1b435b
fix k8s api memory leak ( #2166 )
2021-05-11 08:58:19 +01:00
Johnson C
8c9c7a5927
fixing string field contains invalid UTF-8 issue ( #2164 )
2021-05-10 11:25:31 +01:00
Cui Gang
9e9157d878
Fix util/log/log.Infof format didn't work ( #2160 )
...
Co-authored-by: Cui Gang <cuigang@yunpbx.com >
2021-05-06 06:43:05 +01:00
Scout Wang
1b5d372b5b
optimize the process of switching grpc error to micro error ( #2158 )
2021-04-29 13:03:40 +01:00
Tobias Wellnitz
b11a2f17e9
make rpcClient compatible with 32bit arm systems ( #2156 )
...
On ARM, 386, and 32-bit MIPS, it is the caller's responsibility to
arrange for 64-bit alignment of 64-bit words accessed
atomically. Only the first word in an allocated struct can
be relied upon to be 64-bit aligned.
2021-04-25 06:54:00 +01:00
Asim Aslam
a91d1f7a3d
Update README.md
Run tests / Test repo (push) Waiting to run
2021-04-16 17:34:42 +01:00
Andrew
0d57213d3f
Add etcd to default registries when plugin is loaded ( #2150 )
...
Co-authored-by: Andrew Jones <andrew@gotoblink.com >
2021-04-08 18:31:39 +01:00
orange-jacky
6ae252b892
add http demo; http client can call http server; http client can call rpc server ( #2149 )
2021-04-08 18:31:15 +01:00
Asim Aslam
e7a7e3a050
Update README.md
2021-04-03 08:39:40 +01:00
Johnson C
bed53b605f
fixing etcd stack in getToken ( #2145 )
...
when provide username and password, etcd will try to get auth token from server
if server is unavailble, etcd client will stack in
when dial timeout is set, it will return err instead of stack in
2021-04-01 09:55:21 +01:00
Asim Aslam
9b41d1bf08
Update README.md
2021-03-29 11:33:59 +01:00
Asim Aslam
0a41e6d80f
Update README.md
2021-03-17 09:37:20 +00:00
Asim Aslam
b636a4bfe3
Update README.md
2021-03-17 07:52:35 +00:00
Jerry
df90f2ca63
Update registry plugins mod version ( #2130 )
...
* update etcd version
* update mod version
* update
* update etcd mod version
2021-02-27 06:48:44 +00:00
Asim Aslam
0bf3719a9a
remove indirects
2021-02-26 08:34:03 +00:00
Asim Aslam
bfa9e7c88c
update quic go mod
2021-02-26 08:14:11 +00:00
Asim Aslam
57003414be
remove network package
2021-02-26 08:13:12 +00:00
Asim Aslam
a54f40baa7
Update README.md
2021-02-25 10:32:47 +00:00
Asim Aslam
56c779f9df
Update README.md
2021-02-25 10:31:55 +00:00
Shubhendra Singh Chauhan
26b859c4f9
improve code quality ( #2128 )
...
* Fix inefficient string comparison
* Fix unnecessary calls to Printf
* Canonicalize header key
* Replace `t.Sub(time.Now())` with `time.Until`
* Remove unnecessary blank (_) identifier
* Remove unnecessary use of slice
* Remove unnecessary comparison with bool
2021-02-25 08:30:35 +00:00
Alex Unger
0f0ace1a44
support for tls on http plugin ( #2126 )
2021-02-17 18:20:06 +00:00
Asim Aslam
f9f5e7422d
fix store delete
2021-02-10 07:14:49 +00:00
Jerry
2653e7a977
update pulgin registry mod version ( #2121 )
...
* update etcd version
* update mod version
* update
2021-02-08 08:56:39 +00:00
Jerry
55b477ba07
update etcd version ( #2120 )
2021-02-07 12:15:06 +00:00
isfk
6f666d63c8
update client/grpc plugins version & remove replace ( #2119 )
...
* update memory registry plugins version & remove replace
* update plugins version & remove replace
* update plugins/client/grpc/v3 version
Co-authored-by: 申法宽 <shenfakuan@163.com >
2021-02-05 09:50:42 +00:00
isfk
e8167a8b79
update plugins version & remove replace ( #2118 )
...
* update memory registry plugins version & remove replace
* update plugins version & remove replace
Co-authored-by: 申法宽 <shenfakuan@163.com >
2021-02-05 09:09:25 +00:00
Asim Aslam
0702501552
Delete Dockerfile
2021-02-02 14:58:31 +00:00
Asim Aslam
89fe31310e
Delete docker.yml
2021-02-02 14:58:19 +00:00
Josemy Duarte
ca3dfc4580
Remove missing gRPC example from README.md ( #2112 )
2021-01-30 18:13:56 +00:00
francescocarzaniga
bba3107ae1
Remove hpcloud/tail in favour of nxadm/tail ( #2109 )
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2021-01-25 07:51:17 +00:00
Asim Aslam
60010e82e2
update protoc-gen-micro
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2021-01-20 21:36:17 +00:00
Asim Aslam
ad94eeb635
Update README.md
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2021-01-20 21:30:26 +00:00
Asim Aslam
88be70a6af
Update README.md
2021-01-20 21:30:10 +00:00
Asim Aslam
226833c4ab
Update README.md
2021-01-20 21:29:36 +00:00
Asim Aslam
8e3b7a57d9
examples at v3
2021-01-20 21:28:48 +00:00
Asim Aslam
dc8236ec05
update v3 plugins ( #2105 )
2021-01-20 21:01:10 +00:00
Asim Aslam
d94936f6c9
v3 ( #2104 )
...
* v3
* revert plugins
* fixup some issues
2021-01-20 13:54:31 +00:00
Goober
bf4ab679e1
Fix zk watchDir ( #2102 )
...
Signed-off-by: Goober <chenhao86899@gmail.com >
2021-01-05 17:32:17 +00:00
Asim Aslam
20b5755788
move encoders out to plugins
2020-12-30 08:46:31 +00:00
Asim Aslam
f64ffdbab1
remove indirects in go mod
2020-12-30 08:26:26 +00:00
Asim Aslam
eb1e22bd10
strip grpc
2020-12-30 08:21:30 +00:00
Asim Aslam
18fb7a5d62
move certmagic
2020-12-29 20:12:10 +00:00
Asim Aslam
ee8b369a19
add initialisers
2020-12-29 16:50:18 +00:00
Asim Aslam
f4f6feafb3
remove etcd store
2020-12-29 16:32:06 +00:00
Asim Aslam
9ddfe696a4
go fmt
2020-12-29 16:29:58 +00:00
Asim Aslam
762fff8a51
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-29 16:28:21 +00:00
Asim Aslam
36bcd8317b
remove micro deps
2020-12-29 16:28:12 +00:00
Asim Aslam
10005db702
Rename default.go to noop.go
2020-12-29 16:24:31 +00:00
Asim Aslam
1b610403ba
go mod tidy
2020-12-29 15:50:14 +00:00
Asim Aslam
2fde8a76eb
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-29 15:49:33 +00:00
Asim Aslam
a7c31a0d2b
refactor all the things
2020-12-29 15:49:26 +00:00
Asim Aslam
35d72660c8
Update README.md
2020-12-26 15:42:10 +00:00
Asim Aslam
d197438e16
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-26 15:32:54 +00:00
Asim Aslam
7fc0b7ef72
add all the plugins
2020-12-26 15:32:45 +00:00
Asim Aslam
f44b832bac
Update README.md
2020-12-26 15:23:06 +00:00
Asim Aslam
5fe144bda8
Update README.md
2020-12-26 15:22:41 +00:00
Asim Aslam
df2dab0169
Update README.md
2020-12-26 15:22:14 +00:00
Asim Aslam
7ab46b0850
rename imports
2020-12-26 15:21:29 +00:00
Asim Aslam
c3fe6eb3ac
update readme
2020-12-26 15:18:11 +00:00
Asim Aslam
a34c70de0e
Add examples
2020-12-26 15:17:20 +00:00
Asim Aslam
273bab5dd7
update readme
2020-12-26 15:15:39 +00:00
Asim Aslam
f8fc9d0304
Add protoc-gen-micro
2020-12-26 15:13:09 +00:00
Hao
b5431de2e8
Use singleflight to prevent registry cache breakdown ( #2098 )
2020-12-21 14:34:59 +00:00
Asim Aslam
dc0cac9ba4
Update README.md
2020-12-18 18:45:14 +00:00
Asim Aslam
8628dc0fc4
Update FUNDING.yml
2020-12-13 08:18:02 +00:00
Asim Aslam
b57f56fb0b
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-12 20:51:40 +00:00
Asim Aslam
690169f6e5
remove k8s logs
2020-12-12 20:51:32 +00:00
Asim Aslam
a543157f50
Delete debug.go
2020-12-12 20:50:53 +00:00
Asim Aslam
15a62ae0b9
move debug handler
2020-12-12 20:50:36 +00:00
Asim Aslam
28afbf164f
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-12 20:44:45 +00:00
Asim Aslam
4ce77373c0
remove auth cruft
2020-12-12 20:44:32 +00:00
Asim Aslam
8de1ede0f0
Update network.go
2020-12-12 20:35:43 +00:00
Asim Aslam
8054478cc3
remove util/scope
2020-12-12 20:28:09 +00:00
Asim Aslam
167fcd0d78
fix wrapper test
2020-12-12 20:25:29 +00:00
Asim Aslam
206bf8cd0a
remove web
2020-12-12 20:15:59 +00:00
Asim Aslam
df687fe5d4
move selector
2020-12-12 20:14:50 +00:00
Asim Aslam
de4f3ee4a2
separate rules and auth
2020-12-12 20:08:39 +00:00
Asim Aslam
202338bd2d
update all the things to go 1.15
2020-12-12 19:51:18 +00:00
Asim Aslam
e2034b2438
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-12 19:39:14 +00:00
Asim Aslam
0ec2399a2c
fix command
2020-12-12 19:39:04 +00:00
Asim Aslam
df5f158cef
Delete .golangci.yml
2020-12-12 19:09:48 +00:00
Asim Aslam
19ac4fbcaf
move rules
2020-12-12 19:08:36 +00:00
Asim Aslam
d07de3751e
remove auth provider
2020-12-12 19:06:43 +00:00
Asim Aslam
4977aca09c
move router
2020-12-12 19:04:19 +00:00
Asim Aslam
43ff2a540d
move proxy
2020-12-12 19:02:04 +00:00
Asim Aslam
35c59042bf
refactor network
2020-12-12 18:59:40 +00:00
Asim Aslam
f8f84b42ac
Merge branch 'master' of ssh://github.com/asim/go-micro
2020-12-11 21:42:43 +00:00
Asim Aslam
1dc9b40b90
move network/tunnel
2020-12-11 21:42:31 +00:00
Asim Aslam
345845ec16
Delete CNAME
2020-12-11 11:22:37 +00:00
Asim Aslam
dbe8c93e20
remove service implementations ( #2094 )
2020-12-11 11:12:44 +00:00
Asim Aslam
4d481b0363
Update README.md
2020-12-09 21:52:18 +00:00
Asim Aslam
88d954cf97
Update README.md
2020-12-09 18:35:07 +00:00
Asim Aslam
71883f1b04
Update tests.yml
2020-12-09 18:19:37 +00:00
Asim Aslam
bfc212f7ed
remove service package
2020-12-09 18:11:10 +00:00
Asim Aslam
43f80b1b0d
Delete build-micro.sh
2020-12-09 18:09:02 +00:00
Asim Aslam
f83d64d092
Delete build-all-examples.sh
2020-12-09 18:08:55 +00:00
Asim Aslam
e67b9f0cc1
Delete micro-main.yml
2020-12-09 18:08:39 +00:00
Asim Aslam
134c5f0e41
Delete micro-examples.yml
2020-12-09 18:08:26 +00:00
Asim Aslam
e761aa1940
move cmd
2020-12-09 18:07:01 +00:00
Asim Aslam
8c8380dcd4
delete agent package
2020-12-09 18:03:00 +00:00
Asim Aslam
dd5eca2561
Update README.md
2020-12-09 17:05:05 +00:00
Dominic Wong
94bd1025a6
push tags to docker hub ( #1766 )
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2020-07-03 11:30:59 +01:00
Dominic Wong
7be4a67673
MDNS registry fix for users on VPNs ( #1759 )
...
* filter out unsolicited responses
* send to local ip in case
* allow ip func to be passed in. add option for sending to 0.0.0.0
2020-07-03 11:30:59 +01:00
Di Wu
3e6ac73cfe
Fix invalid usage for sync.WaitGroup ( #1752 )
...
* Custom private blocks
* Fix invalid usage for sync.WaitGroup
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-07-03 11:30:59 +01:00
Colin Hoglund
aef6878ee0
config: use configured reader by default ( #1717 )
2020-07-03 11:30:59 +01:00
sunfuze
81aa8e0231
Fix config watch ( #1670 )
...
* add dirty overrite test case
* need version to figure out if config need update or not
* using nanosecond as version for two goroutine can run in same second
* config should check snapshot version when update
* set checksum of ChangeSet
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-07-03 11:30:59 +01:00
Di Wu
c28f625cd4
Custom private blocks ( #1705 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-07-03 11:30:59 +01:00
Dmitry Kozlov
5b161b88f7
Split long discord output message into the chunks by 2000 characters ( #1704 )
...
Signed-off-by: Dmitry Kozlov <dmitry.f.kozlov@gmail.com >
2020-07-03 11:30:59 +01:00
ben-toogood
cca8826a1f
registry/mdns: fix nil host bug ( #1703 )
2020-07-03 11:30:59 +01:00
Dominic Wong
0327f30e3c
Fix regex detection. Fixes #1663 ( #1696 )
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2020-06-12 10:42:52 +01:00
Dominic Wong
0ce132eb8f
Fix race condition when updating process being waited on ( #1694 )
2020-06-12 10:42:52 +01:00
Janos Dobronszki
00b76e0a64
Initialize selector before we make an auth.Generate call ( #1693 )
2020-06-12 10:42:52 +01:00
Dominic Wong
aec27be9b4
Fix race when opening DB for first time ( #1691 )
2020-06-12 10:42:52 +01:00
Dominic Wong
86dfcb819b
Ignore "no such process" error ( #1686 )
...
* Cleanup how status is updated for service. Ignore "no such process" error as it could be that the pid died
* add nice error log to record process error exit
2020-06-12 10:42:52 +01:00
Janos Dobronszki
d613804b0a
Sigterm instead of Sigkill ( #1687 )
...
Co-authored-by: Dominic Wong <domwongemail@googlemail.com >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-06-12 10:42:52 +01:00
Vasiliy Tolstov
92e9d05432
api/handler/rpc: dont log error on normal websocket error code ( #1688 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-06-12 10:42:52 +01:00
ben-toogood
8dfd93e915
util/wrapper: Add Static Client wrapper ( #1685 )
...
* util/wrapper: Add Static Client wrapper
* util/wrapper/static: pass address to stream too
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* add static client wrapper tests
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server: fix error message spaces between words
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/{rpc,grpc}: replace log.Error with log.Errorf
* server/grpc: fix log typo
* server/rpc: fix log typo
Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-06-12 10:42:52 +01:00
Dominic Wong
e5136332e3
Add build and test of micro to pre-release testing ( #1684 )
...
* fix up example test build
* build and test micro when cutting a new release
2020-06-12 10:42:52 +01:00
Dominic Wong
f10fd4b479
Build all micro/examples for release-X.X.X branches ( #1683 )
...
* Build all the examples on push to any release branch
2020-06-12 10:42:52 +01:00
ben-toogood
74368026a5
Fix incorrect namespace variable name (merge conflict) ( #1677 )
2020-06-12 10:42:52 +01:00
ben-toogood
fde1aa9d6a
Move auth account creation to config/cmd ( #1676 )
2020-06-12 10:42:52 +01:00
ben-toogood
f45cdba9ba
Apply wrappers to gRPC streams ( #1675 )
...
* Add wrappers to grpc streams
* Fix typo
2020-06-12 10:42:52 +01:00
Asim Aslam
b270860b79
Update README.md ( #1695 )
2020-06-10 10:22:53 +01:00
Asim Aslam
e7ba930236
Update FUNDING.yml ( #1692 )
2020-06-08 18:12:19 +01:00
Dominic Wong
aa679f7a73
Create PULL_REQUEST_TEMPLATE.md
2020-06-03 10:32:28 +01:00
Asim Aslam
7b379bf1f1
WIP: Add metadata to store record ( #1604 )
...
* Add metadata to store record
* Add metadata to cockroach store
* add metadata to store service implementation
* fix breaking cache test
* Test/fix cockroach metadata usage
* fix store memory metadata bug
2020-06-03 09:45:08 +01:00
Dominic Wong
e4e56b0f3f
Merge pull request #1671 from sadwxqezc/fix-jwt
...
Fix jwt revoke
2020-06-02 09:27:14 +01:00
huanghuan.27@bytedance.com
219d29f664
fix jwt revoke
2020-06-02 10:26:33 +08:00
Asim Aslam
8fb138af06
Update README.md
2020-05-31 11:56:55 +01:00
Asim Aslam
a39e6515da
Update README.md
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2020-05-31 11:35:09 +01:00
Asim Aslam
2c7fd286de
Update README.md
2020-05-31 11:34:49 +01:00
Asim Aslam
8aa2712b4d
Delete README.zh-cn.md
2020-05-31 11:33:31 +01:00
Asim Aslam
b5c2121cef
Update README.md
2020-05-31 11:31:41 +01:00
Asim Aslam
ca9b877646
Update README.md
2020-05-31 11:28:32 +01:00
Asim Aslam
ff49b4fc71
Update README.md
2020-05-31 11:27:54 +01:00
Asim Aslam
222431b57a
Update README.md
2020-05-31 11:26:46 +01:00
Asim Aslam
ddb51529a7
Update README.md
2020-05-31 11:26:18 +01:00
Asim Aslam
7c048f331a
Update README.md
2020-05-31 11:21:55 +01:00
Asim Aslam
8475183bbb
Update README.md
2020-05-31 11:19:26 +01:00
Asim Aslam
10f35db3ed
Update README.md
2020-05-31 11:16:20 +01:00
Asim Aslam
b68af8ab63
run go fmt
2020-05-30 11:00:43 +01:00
Asim Aslam
266602a3d6
Update README.md
2020-05-30 10:59:59 +01:00
mlboy
15d5142d9b
fix: misspell ( #1667 )
2020-05-29 17:49:22 +01:00
Máximo Cuadros
0d88650511
go modules cleanup and remove wrong self import to v1 ( #1658 )
...
* Runtime local git, simply go-git code
* go modules cleanup and remove wrong self import to v1
* pin mergo v0.3.8 to avoid panics
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com >
Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-05-29 14:32:11 +03:00
Dominic Wong
8660370dc9
Merge pull request #1657 from xpunch/master
...
logger caller not trim in windows
2020-05-29 10:35:03 +01:00
Dominic Wong
73339dde85
Merge branch 'master' into master
2020-05-29 10:27:20 +01:00
Dominic Wong
3f354f3c30
Merge pull request #1661 from micro/bugfix/sock_pool_threads
...
fix locking of socket pool
2020-05-28 08:31:47 +01:00
potato
c08eb5f892
Merge branch 'master' into master
2020-05-28 10:19:53 +08:00
Dominic Wong
27e41c4ad5
fix locking of socket pool
2020-05-27 20:18:26 +01:00
Dominic Wong
1da8a640da
Merge pull request #1660 from micro/bugfix/mdns_nil_host
...
Check ipv4 or ipv6 address is valid before assigning
2020-05-27 15:53:27 +01:00
Dominic Wong
e7ad031eb8
Check ipv4 or ipv6 address is valid before assigning
2020-05-27 15:47:12 +01:00
ben-toogood
192f548c83
Merge pull request #1659 from micro/config-srv-not-found
...
Handle config service not found errors
2020-05-27 12:24:33 +01:00
Ben Toogood
d85b4197b4
Return nil changeset and not blank
2020-05-27 12:20:31 +01:00
Ben Toogood
bb5f2e5525
Handle config service not found errors
2020-05-27 12:12:34 +01:00
ben-toogood
f00b696282
Merge pull request #1654 from micro/auth-scopes
...
Auth Improvements
2020-05-27 10:52:07 +01:00
Ben Toogood
e2d662608c
Fix tests
2020-05-27 09:14:16 +01:00
Ben Toogood
9e9773c9c7
Only use namespace for cache key
2020-05-27 09:07:59 +01:00
potato
2f8e2487f7
Merge branch 'master' into master
2020-05-27 09:32:27 +08:00
Ben Toogood
d6c1fbf841
Fix web service auth name
2020-05-26 17:43:45 +01:00
Ben Toogood
c3b404bab0
Fix server calling across namespace
2020-05-26 17:35:06 +01:00
Ben Toogood
cd283654eb
Cache Rules
2020-05-26 15:53:28 +01:00
Ben Toogood
5712cc9c62
Merge master
2020-05-26 15:52:21 +01:00
ben-toogood
be5a10a4d4
Merge pull request #1656 from micro/client-cache
...
Client Cache
2020-05-26 15:38:30 +01:00
Ben Toogood
b53a2c67f1
Merge branch 'master' of https://github.com/micro/go-micro into auth-scopes
2020-05-26 15:37:31 +01:00
johnson
cc79692d68
make caller filepath package/file style
...
this code is from zap
https://github.com/uber-go/zap/blob/9a9fa7d4b5f07a9b634983678a65b5525f81e58b/zapcore/entry.go#L101
2020-05-26 14:33:56 +08:00
potato
796a598b37
Merge pull request #7 from micro/master
...
go micro v2
2020-05-26 14:18:25 +08:00
Ben Toogood
73b4423682
Merge branch 'master' of https://github.com/micro/go-micro into client-cache
2020-05-24 20:36:22 +01:00
Ben Toogood
198e942889
Remove redundant test
2020-05-24 20:32:22 +01:00
Ben Toogood
95703e4565
Fixes and improved test coverage
2020-05-24 20:26:37 +01:00
Ben Toogood
2729569f66
Add Debug.Cache method
2020-05-24 18:45:57 +01:00
Ben Toogood
67146ecdc2
Client Cache tests
2020-05-24 18:05:23 +01:00
Asim Aslam
bd049a51e6
Update README.md
2020-05-23 16:47:23 +01:00
Asim Aslam
ffd89599a0
Update README.md
2020-05-23 16:46:50 +01:00
Ben Toogood
496293afa1
Use hash/fnv, add tests, fix request bug
2020-05-23 11:34:44 +01:00
Ben Toogood
7d7f4046e8
Client Cache
2020-05-22 16:52:24 +01:00
Ben Toogood
c800070477
Check for error before loading rules
2020-05-22 14:03:12 +01:00
Ben Toogood
877fe5fb0a
Update web wildcard to enable /foo/bar/baz/* to verify /foo/bar/baz
2020-05-22 14:02:02 +01:00
Ben Toogood
dad011cab4
Fix noop issuer bug
2020-05-22 12:40:34 +01:00
Ben Toogood
f939200b34
Improve service auth log
2020-05-22 12:24:37 +01:00
Ben Toogood
9c072a372c
Add auth scope constants
2020-05-22 11:37:12 +01:00
Ben Toogood
fbb91c6cb7
Auth wrapper tests
2020-05-22 10:44:18 +01:00
Ben Toogood
b2cf501952
Auth Rules tests & bug fixes
2020-05-22 09:31:15 +01:00
Ben Toogood
1fce0f02b6
Verify Namespace
2020-05-21 18:11:35 +01:00
Ben Toogood
12061bd006
Add account issuers
2020-05-21 16:41:55 +01:00
Ben Toogood
856c73b341
Remove roles (replaced with scope)
2020-05-21 14:56:17 +01:00
Ben Toogood
4de19805ba
Remove redundant test
2020-05-21 12:33:58 +01:00
Ben Toogood
c09b871a6b
Merge branch 'master' of https://github.com/micro/go-micro into auth-scopes
2020-05-21 12:32:52 +01:00
Ben Toogood
e876cb917d
auth/service support for micro clients (rules from mutltiple namespaces
2020-05-21 12:25:47 +01:00
Ben Toogood
8f5ef012ff
Update Rules.Delete proto
2020-05-21 12:07:22 +01:00
Ben Toogood
287992cef3
Fix service => service namespace bug
2020-05-21 11:35:07 +01:00
Ben Toogood
344ce061ce
Verify Options
2020-05-20 16:49:52 +01:00
Ben Toogood
5d14970a55
Fix nil account bug
2020-05-20 16:11:34 +01:00
Janos Dobronszki
0615fe825f
Auth invalid token fix ( #1650 )
2020-05-20 16:18:05 +02:00
Asim Aslam
6a661fd08c
check if the db conn is nil before doing anything ( #1652 )
2020-05-20 14:03:38 +01:00
Ben Toogood
f6d9416a9e
Add Rule to Auth interface
2020-05-20 11:59:01 +01:00
Asim Aslam
a29676b86a
Registration Retry / Interval ( #1651 )
...
* Change the default ttl to 90 seconds
* add retries to registration
* Add retry to web register
2020-05-20 11:49:09 +01:00
Ben Toogood
dc10f88c12
Replace auth account.Namespace with account.Scopes
2020-05-19 18:17:17 +01:00
ben-toogood
e61edf6280
Merge pull request #1645 from micro/runtime-multitenancy
...
Runtime multi-tenancy
2020-05-19 17:06:11 +01:00
ben-toogood
3410a0949b
Merge branch 'master' into runtime-multitenancy
2020-05-19 17:00:51 +01:00
Jake Sanders
9216a47724
fix client race ( #1647 )
2020-05-19 14:44:46 +01:00
ben-toogood
cf37d64819
Merge branch 'master' into runtime-multitenancy
2020-05-19 13:24:35 +01:00
Patrik Lindahl
f0c0f3d4c4
Fixes for #1560 ( #1644 )
...
close #1560
This fixes one of the reported data races and also allows for
having a different name on the micro.Service and web.Service.
This makes it possible to discover the two service variants separately.
Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-05-19 14:11:26 +03:00
Ben Toogood
c4e3f8c336
Merge branch 'master' of https://github.com/micro/go-micro into runtime-multitenancy
2020-05-19 11:02:40 +01:00
Ben Toogood
8875719619
Default Runtime multi-tenancy
2020-05-19 11:01:06 +01:00
Ben Toogood
c19b349e96
Update runtime.Event struct
2020-05-19 10:14:07 +01:00
Ben Toogood
14155c7e02
Add runtime ErrNotFound
2020-05-19 09:28:00 +01:00
Maarten Bezemer
3d36398818
Fix client RPC stream close mutex ( #1643 )
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2020-05-18 17:22:33 +01:00
Asim Aslam
56a7897c91
update readme
2020-05-17 12:39:20 +01:00
ben-toogood
5efb386224
Merge pull request #1640 from micro/auth/public-rule
...
Auth: setup a public rule
2020-05-15 10:28:52 +01:00
Ben Toogood
4d2de923cd
Auth: setup a public rule
2020-05-15 10:24:30 +01:00
ben-toogood
f64b1468a5
Merge pull request #1639 from micro/registy-not-found
...
Registry service: return not found error
2020-05-14 19:43:19 +01:00
ben-toogood
56f281002b
Merge branch 'master' into registy-not-found
2020-05-14 19:39:43 +01:00
Ben Toogood
0d7250352f
Registry service: return not found error
2020-05-14 19:38:56 +01:00
ben-toogood
ef43f01da4
Merge pull request #1638 from micro/registry-addrs-fix
...
Fix registry address option unused
2020-05-14 18:07:14 +01:00
ben-toogood
c9e5ae6a2b
Merge branch 'master' into registry-addrs-fix
2020-05-14 18:03:46 +01:00
Ben Toogood
8a802d8f7a
Fix registry address option unused
2020-05-14 18:00:13 +01:00
ben-toogood
331ab3715c
Merge pull request #1636 from micro/auth-util
...
Refactor auth setup to util/auth
2020-05-14 16:15:47 +01:00
Ben Toogood
6b451a2197
Refactor auth setup to util/auth
2020-05-14 16:10:14 +01:00
ben-toogood
b4c0224746
Merge pull request #1635 from micro/auth-fixes
...
Auth: Move token generation logic out the client wrappers
2020-05-14 14:00:55 +01:00
Ben Toogood
500d793fc4
Merge branch 'auth-fixes' of https://github.com/micro/go-micro into auth-fixes
2020-05-14 13:57:00 +01:00
Ben Toogood
16af265e8b
Seperate JWT refresh / access tokens
2020-05-14 13:56:51 +01:00
ben-toogood
b222cf8e13
Merge branch 'master' into auth-fixes
2020-05-14 13:47:26 +01:00
Ben Toogood
f549e20fa2
tidy go mdo
2020-05-14 13:33:11 +01:00
Ben Toogood
83e9c1fad2
Remove unnecessary change
2020-05-14 13:32:42 +01:00
Ben Toogood
c220686c29
Fix token bug
2020-05-14 13:30:21 +01:00
Ben Toogood
1b18730d54
Custom micro client
2020-05-14 11:25:19 +01:00
Ben Toogood
5764519f5b
Refactor auth to load token outside wrappers
2020-05-14 11:06:22 +01:00
ben-toogood
957001f8ad
Merge pull request #1634 from micro/disable-clients
...
Disable Clients
2020-05-13 18:54:34 +01:00
Ben Toogood
0955671e45
Merge branch 'disable-clients' of https://github.com/micro/go-micro into disable-clients
2020-05-13 18:49:47 +01:00
Ben Toogood
57b060bac5
Disable Addresses
2020-05-13 18:49:36 +01:00
ben-toogood
3136e1409e
Merge branch 'master' into disable-clients
2020-05-13 18:48:24 +01:00
Ben Toogood
ca791d7e8d
Disable Clients
2020-05-13 18:47:53 +01:00
Dominic Wong
05858b746c
kill all processes correctly for micro kill command ( #1633 )
2020-05-13 18:36:45 +01:00
ben-toogood
09d1450d7d
Merge pull request #1632 from micro/fix-auth-bug
...
Auth: Fix recursive bug
2020-05-13 18:18:39 +01:00
Ben Toogood
1ca1fd411a
Auth: Fix recursive bug
2020-05-13 18:17:04 +01:00
ben-toogood
a2d4d62f1c
Merge pull request #1631 from micro/auth-address
...
Auth: Set address
2020-05-13 18:02:10 +01:00
Ben Toogood
8ab20f501c
Fix merge conflicts
2020-05-13 17:58:03 +01:00
Ben Toogood
366fb228e5
Auth: Set address
2020-05-13 17:54:47 +01:00
Asim Aslam
bba8c254d7
fix auth initialisation ( #1630 )
2020-05-13 17:35:57 +01:00
ben-toogood
ebd53794af
Merge pull request #1629 from micro/auth/rules-fix
...
Auth: Load rules if not present
2020-05-13 17:27:53 +01:00
Ben Toogood
2299244332
Auth: Load rules if not present
2020-05-13 17:07:46 +01:00
ben-toogood
cf61d98635
Merge pull request #1628 from micro/registry
...
Misc Muti-Tenancy / Auth Fixes
2020-05-13 16:53:39 +01:00
ben-toogood
15d1967aaf
Merge branch 'master' into registry
2020-05-13 16:50:12 +01:00
Ben Toogood
410fec8ee4
Fix auth bug
2020-05-13 16:49:17 +01:00
Ben Toogood
c831b6c03a
Fix
2020-05-13 16:35:57 +01:00
Asim Aslam
290595f88e
Strip down router code ( #1627 )
2020-05-13 16:13:36 +01:00
ben-toogood
ba64518ebd
Merge pull request #1626 from PieterVoorwinden/master
...
Check if auth is nil to prevent nilpointer
2020-05-13 15:18:58 +01:00
Pieter Voorwinden
b14d63b4a1
Check if auth is nil to prevent nilpointer
2020-05-13 16:13:23 +02:00
x1nchen
af2db0a0d9
fix: update dependency certmagic ( #1625 )
...
module github.com/mholt/certmagic has been renamed github.com/caddyserver/certmagic,
so upgrade on this module will fail.
fix : micro/micro#835
caddyserver/certmagic@v0.10 .6 is Maximum upgradeable version with go version 1.13
Higher version use *tls.ClientHelloInfo.SupportsCertificate which only supported in go 1.14
2020-05-13 15:00:13 +01:00
ben-toogood
fb255a7e5a
Merge pull request #1622 from micro/registry-multi-tenancy
...
Registry mutli-tenancy
2020-05-13 13:54:39 +01:00
Ben Toogood
47c1cb433e
Store account credentials
2020-05-13 13:48:25 +01:00
Ben Toogood
3fac7d79ab
Remove service type role
2020-05-13 13:42:56 +01:00
Ben Toogood
25c937fd0e
Naming changes
2020-05-13 13:38:13 +01:00
Ben Toogood
e5c1fbc591
Merge branch 'master' of https://github.com/micro/go-micro into registry-multi-tenancy
2020-05-13 13:35:47 +01:00
Ben Toogood
d781c9ae2d
Remove namespace specific logic
2020-05-13 13:35:34 +01:00
Ben Toogood
54951740bf
Authenticate on service start
2020-05-13 13:13:11 +01:00
Janos Dobronszki
0fb4734e67
Upload local source code to micro server ( #1613 )
2020-05-13 12:07:53 +02:00
Ben Toogood
346e034d0a
Add mutli-tenancy support to the registry
2020-05-13 10:40:08 +01:00
Asim Aslam
116cc1e9ee
Stop parsing proxy address ( #1619 )
2020-05-12 17:38:22 +01:00
ben-toogood
762a5bc9e8
Merge pull request #1618 from micro/auth-namespace-flag
...
Auth Namespace Flag
2020-05-12 16:45:42 +01:00
Ben Toogood
d39b723511
Auth Namespace Flag
2020-05-12 16:41:29 +01:00
ben-toogood
5494e935f4
Merge pull request #1617 from micro/k8s/secret-type
...
K8s: Add Secret Type to yaml template
2020-05-12 14:21:30 +01:00
Ben Toogood
e0863bb7eb
K8s: Add Secret Type to yaml template
2020-05-12 14:10:39 +01:00
ben-toogood
89f86167ad
Merge pull request #1616 from micro/k8s/secret-template-fix
...
Fix k8s secret template (yaml)
2020-05-12 11:45:12 +01:00
ben-toogood
dfec1ad6b1
Merge branch 'master' into k8s/secret-template-fix
2020-05-12 11:41:41 +01:00
Ben Toogood
66d3e4a595
Fix k8s secret template (yaml)
2020-05-12 11:40:54 +01:00
Asim Aslam
19a03babc4
Update server.go
2020-05-12 11:32:01 +01:00
ben-toogood
ee24b4f083
Merge pull request #1615 from micro/disable-auth-client
...
Disable auth service client
2020-05-11 20:38:49 +01:00
Ben Toogood
937ecc8d2f
Disable auth service client
2020-05-11 20:38:05 +01:00
ben-toogood
6078adb8bc
Merge pull request #1614 from micro/runtime-clients
...
Runtime Options: Replace client.DefaultClient
2020-05-11 20:05:00 +01:00
ben-toogood
39f18b0b70
Merge branch 'master' into runtime-clients
2020-05-11 18:03:11 +01:00
Ben Toogood
efb64b7dbb
Pass client to more of the runtime
2020-05-11 17:57:39 +01:00
Ben Toogood
f892b41299
Add runtime to service.Options()
2020-05-11 17:09:28 +01:00
Janos Dobronszki
1eb63635b5
Adding file upload and download capabilities ( #1610 )
2020-05-11 14:08:27 +02:00
ben-toogood
688228377b
Merge pull request #1612 from micro/auth-options
...
Auth: pass options in service RPC
2020-05-11 11:53:38 +01:00
Ben Toogood
506006f0fa
Auth Options
2020-05-11 11:47:59 +01:00
ben-toogood
22de001a80
Merge pull request #1611 from micro/auth-has-role
...
Auth account.HasRole
2020-05-11 11:40:20 +01:00
ben-toogood
d90cc8bf2f
Merge branch 'master' into auth-has-role
2020-05-11 11:36:06 +01:00
Ben Toogood
5a8f19589b
Auth account.HasRole
2020-05-11 11:34:22 +01:00
gggwvg
d61df6363b
web: fix advertise address ( #1608 )
...
* web: fix advertise address
* web: fix test
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
Co-authored-by: Asim Aslam <asim@aslam.me >
Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-05-08 12:31:03 +03:00
ben-toogood
f062013a7b
Merge pull request #1607 from micro/k8s-debug
...
Log k8s Requests
2020-05-07 11:41:43 +01:00
Ben Toogood
fea93a5b7a
Log k8s Requests
2020-05-07 11:35:56 +01:00
fztcjjl
30dc29e17f
fix ring buffer ( #1606 )
2020-05-07 10:45:48 +01:00
ben-toogood
5387f73b5d
Handle cockroach createDB error ( #1603 )
2020-05-06 10:58:14 +01:00
Vasiliy Tolstov
90dd1f63c8
api/handler/rpc: fix encoding of inner message ( #1601 )
...
* api/handler/rpc: fix encoding of inner message
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-05-04 15:50:53 +03:00
Asim Aslam
38cdb9cc2f
Set table name in store
Docker / build (push) Waiting to run
Run tests / Test repo (push) Waiting to run
2020-05-01 18:24:35 +01:00
Asim Aslam
b3915b6020
Add store to options ( #1600 )
2020-05-01 18:05:09 +01:00
Asim Aslam
08a2de1ef5
Account for missing options database/table in cockroach store
2020-05-01 15:31:55 +01:00
Asim Aslam
7a2dea6cc2
Set database/table from init first
2020-05-01 15:22:44 +01:00
Asim Aslam
2a14feed93
force codec on call not on dial ( #1599 )
2020-05-01 14:59:50 +01:00
Asim Aslam
e8105d22ad
cruft
2020-05-01 00:25:17 +01:00
Asim Aslam
c76a5e608d
sql fixes
2020-04-30 23:53:54 +01:00
Asim Aslam
359b8bc503
Add opts to service proto ( #1517 )
...
* Add opts to service proto
* Support database/table opts
2020-04-30 22:51:25 +01:00
Janos Dobronszki
fccab8ad27
Runtime name should be base folder outside repos ( #1598 )
2020-04-30 18:20:51 +02:00
Socket
46d09ec2bc
unsubscribe can async ( #1596 )
...
Co-authored-by: huangshaojie <huangshaojie@corp.netease.com >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-04-30 10:42:13 +01:00
Asim Aslam
7792dbc34d
Update FUNDING.yml
2020-04-29 18:45:55 +01:00
ben-toogood
1d29f126f9
Merge pull request #1595 from micro/auth-client-wrapper
...
Auth Client Wrapper
2020-04-29 15:43:30 +01:00
Ben Toogood
bcddb98867
Fix Tests
2020-04-29 15:37:02 +01:00
Ben Toogood
f48dec1fb0
Use Server ID in account name
2020-04-29 15:27:18 +01:00
Ben Toogood
ef9f65c78b
Improve Comments
2020-04-29 15:15:38 +01:00
Ben Toogood
99f8be5b3d
Auth Client Wrapper
2020-04-29 15:11:06 +01:00
ben-toogood
9d2fdb84be
Merge pull request #1592 from micro/jwt-auth
...
JWT auth implementation
2020-04-29 14:10:05 +01:00
ben-toogood
8b004feb9a
Merge branch 'master' into jwt-auth
2020-04-29 13:33:47 +01:00
Ben Toogood
70736e24c0
Set RefreshToken
2020-04-29 13:33:22 +01:00
Vasiliy Tolstov
d44adafca5
api/router: avoid unneeded loops and fix path match ( #1594 )
...
* api/router: avoid unneeded loops and fix path match
* if match found in google api path syntax, not try pcre loop
* if path is not ending via $ sign, append it to pcre to avoid matching other strings like
/api/account/register can be matched to /api/account
* api: add tests and validations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-29 15:23:10 +03:00
ben-toogood
e57b20c1f8
Merge branch 'master' into jwt-auth
2020-04-29 13:22:09 +01:00
Ben Toogood
94971aee77
Complete JWT implementation
2020-04-29 13:21:51 +01:00
Ben Toogood
0ed66d0664
Fix Typo
2020-04-29 09:38:39 +01:00
Ben Toogood
7e27c97c6c
Remove Comment
2020-04-29 09:22:15 +01:00
Ben Toogood
669364985e
JWT auth implementation
2020-04-29 09:21:17 +01:00
Asim Aslam
c7440274dd
touch
2020-04-28 19:35:13 +01:00
Asim Aslam
8ccbf53dfc
secret cookie unused
2020-04-28 18:12:07 +01:00
Asim Aslam
f908110fb6
swap out context access for account ( #1589 )
2020-04-28 17:35:18 +01:00
Vasiliy Tolstov
9bb1904a38
broker: add publish context ( #1590 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-28 19:29:00 +03:00
Vasiliy Tolstov
06220ab8c8
client: add context publish option ( #1588 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-28 19:03:37 +03:00
Janos Dobronszki
da66561d1e
Fixing too large offsets for default runtime logs ( #1587 )
2020-04-28 13:42:15 +01:00
Dmitry Kozlov
52861310b0
fix HTTP 401 Unauthorized, {"message": "401: Unauthorized", "code": 0} ( #1586 )
...
fix file=bot.go:426 level=error service=bot error starting bot HTTP 401 Unauthorized, {"message": "401: Unauthorized", "code": 0}
see https://github.com/bwmarrin/discordgo#usage
2020-04-28 13:06:01 +01:00
Vasiliy Tolstov
414b2ec5f8
web: fix deadlock ( #1585 )
...
* web: fix deadlock
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* add web tests
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-28 12:23:52 +01:00
Janos Dobronszki
b875868a39
Don't ignore errors from checkout source code ( #1584 )
...
Don't check out code for builtin services.
2020-04-28 10:51:39 +02:00
Janos Dobronszki
8148e0a0f8
Micro log fixes ( #1570 )
2020-04-28 09:49:39 +02:00
ben-toogood
25c82245b1
Merge pull request #1582 from micro/k8s-srv-accounts
...
Runtime: Add Kubernetes ServiceAccounts & Remove imagePullSecrets
2020-04-27 15:24:16 +01:00
ben-toogood
95a7e21f5f
Merge branch 'master' into k8s-srv-accounts
2020-04-27 15:08:24 +01:00
Asim Aslam
83ab47333f
rename Codec to Secrets ( #1581 )
2020-04-27 14:57:57 +01:00
Ben Toogood
8d7d6ef358
Add k8s secrets
2020-04-27 14:37:28 +01:00
Ben Toogood
494e0b5060
Runtime: Add Kubernetes ServiceAccounts & Remove imagePullSecrets
2020-04-27 14:13:51 +01:00
Janos Dobronszki
434997e676
Display only logging file name as opposed to path in logs ( #1580 )
2020-04-27 09:55:50 +01:00
Janos Dobronszki
ec44b67e9f
Fixing log file path in logs ( #1578 )
2020-04-27 09:36:09 +01:00
Vasiliy Tolstov
e0c9234c0e
web: use default logger ( #1577 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-27 00:03:05 +03:00
Vasiliy Tolstov
980b772801
fix races in web and logger ( #1576 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-26 17:41:36 +03:00
Vasiliy Tolstov
a22da39e1c
logger: add caller info to default implementation ( #1575 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-26 17:11:53 +03:00
徐旭
7253635cd3
delete invalid copy ( #1573 )
...
* prealloc
* delete invalid copy
2020-04-26 12:44:59 +01:00
Asim Aslam
0a030f3d8a
strip unused list endpoint
2020-04-24 18:05:38 +01:00
Asim Aslam
edee3b6765
Add proxy env test ( #1569 )
2020-04-24 11:26:46 +01:00
Asim Aslam
d62ae23a9c
Strip label
2020-04-23 20:20:48 +01:00
Asim Aslam
c68226e9b0
only do namespace check if not default
2020-04-23 19:19:13 +01:00
ben-toogood
041d68b1ce
Merge pull request #1566 from micro/image-pull-secret-fix
...
Fix Runtime Namespace List
2020-04-23 18:16:38 +01:00
ben-toogood
85a8f36565
Merge branch 'master' into image-pull-secret-fix
2020-04-23 18:15:04 +01:00
Ben Toogood
f34d58cfbd
Remove Debug
2020-04-23 18:14:06 +01:00
Asim Aslam
e0a651bfc3
set namespace on create
2020-04-23 18:10:13 +01:00
Ben Toogood
cd35f503a0
Remove hardcoded labels
2020-04-23 18:08:02 +01:00
Ben Toogood
8b3d223fc0
Remove hardcoded labels:
2020-04-23 18:05:58 +01:00
Ben Toogood
bb25bd94c8
Log k8s requests
2020-04-23 17:56:00 +01:00
ben-toogood
986e3d3c35
Merge pull request #1565 from micro/image-pull-secret-fix
...
Runtime: Fix ImagePullSecret
2020-04-23 17:53:09 +01:00
Ben Toogood
616db3442a
Debugging
2020-04-23 17:44:40 +01:00
Ben Toogood
5fe3c0bfe5
Merge branch 'image-pull-secret-fix' of https://github.com/micro/go-micro into image-pull-secret-fix
2020-04-23 17:37:33 +01:00
Ben Toogood
8849b85a7f
Merge branch 'master' of https://github.com/micro/go-micro into image-pull-secret-fix
2020-04-23 17:37:15 +01:00
ben-toogood
893bbafa03
Merge branch 'master' into image-pull-secret-fix
2020-04-23 17:28:06 +01:00
Ben Toogood
4c05623a3c
Image pull secret fix
2020-04-23 17:26:59 +01:00
Asim Aslam
ec929b3d2f
log error and ensure we pass through namespace
2020-04-23 17:14:30 +01:00
Asim Aslam
2299559397
Check for namespace ( #1564 )
2020-04-23 16:22:41 +01:00
ben-toogood
6be53536d3
Merge pull request #1562 from micro/git-secrets
...
Runtime - Image Pull Secrets
2020-04-23 15:45:32 +01:00
ben-toogood
99d4b2b31a
Merge branch 'master' into git-secrets
2020-04-23 15:39:37 +01:00
Janos Dobronszki
ff8ad7d4ca
Default runtime now checks out code on demand ( #1563 )
...
* Default runtime now checks out code on demand
* Go mod tidy
2020-04-23 16:30:43 +02:00
ben-toogood
b692c045b5
Merge branch 'master' into git-secrets
2020-04-23 15:01:47 +01:00
Ben Toogood
b5f53595ca
Pass image_pull_secrets in runtime service
2020-04-23 14:22:23 +01:00
Ben Toogood
88176dca53
Remove debugging
2020-04-23 14:13:07 +01:00
Ben Toogood
020476614c
Tweak CreateImagePullSecret
2020-04-23 14:06:33 +01:00
Ben Toogood
0f42346976
Additonal Debugging
2020-04-23 14:03:04 +01:00
ben-toogood
692b27578c
Runtime Namespace ( #1547 )
...
* Add context option to runtime; Add dynamic namespace to kubectl client
* Add namespace runtime arg
* Fixes & Debugging
* Pass options in k8s runtime
* Set namespace on k8s resources
* Additional Logging
* More debugging
* Remove Debugging
* Ensure namespace exists
* Add debugging
* Refactor namespaceExists check
* Fix
* Fix
* Fix
* Fix
* Change the way we check for namespace
* Fix
* Tidying Up
* Fix Test
* Fix merge bugs
* Serialize k8s namespaces
* Add namespace to watch
* Serialize namespace when creating k8s namespace
Co-authored-by: Ben Toogood <ben@micro.mu >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-04-23 13:53:42 +01:00
Micro
316b81f790
Debugging
2020-04-23 13:11:00 +01:00
Micro
5e3262a62c
Passs img pull secrets using name key
2020-04-23 12:52:59 +01:00
Micro
053fa0e457
Fix template syntax
2020-04-23 12:38:00 +01:00
Micro
501a6bf3ea
Add imagePullSecrets to PodSpec
2020-04-23 12:27:36 +01:00
Asim Aslam
7345ce9192
change logging for service startup
2020-04-23 11:24:39 +01:00
Vasiliy Tolstov
6fa27373ed
bundle qson lib in util ( #1561 )
...
* copy qson from https://github.com/joncalhoun/qson
as author not want to maintain repo
* latest code contains our fix to proper decode strings
with escaped & symbol
* replace package in api/handler/rpc
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-23 11:08:09 +03:00
徐旭
e55c23164a
fix prealloc in trace ( #1558 )
2020-04-22 16:10:59 +03:00
Asim Aslam
e25ab9f4ca
Fix typo for proxy
2020-04-22 10:44:34 +01:00
Vasiliy Tolstov
bea092f082
server: set registered only after configuring subscribers ( #1557 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-21 23:01:59 +03:00
Asim Aslam
d7ecb58f6c
Add network proxying ( #1556 )
...
* Add network proxying
* go fmt
2020-04-21 15:54:40 +01:00
Jake Sanders
05d2b34e10
Add util/pki for creating and signing certificates ( #1555 )
2020-04-21 15:03:33 +01:00
ben-toogood
211fd9b9a3
Merge pull request #1554 from micro/oauth-login-hint
...
Add oauth login hint param
2020-04-21 13:40:47 +01:00
Ben Toogood
19f0836e70
Add oauth login hint param
2020-04-21 13:37:26 +01:00
Janos Dobronszki
075d7d4fef
Renaming ShutdownSignals -> Shutdown ( #1553 )
2020-04-21 14:14:20 +02:00
Janos Dobronszki
e5c215556e
Add SIGKILL to shutdown signals ( #1552 )
...
* Add SIGKILL to shutdown signals
* go mod tidy
* Add missing file
2020-04-21 14:00:12 +02:00
Janos Dobronszki
7c31edd5f8
Enabling default runtime to run multiple versions ( #1545 )
...
* Enabling default runtime to run multiple versions
* Trigger build
* Fix
* Sprintf
2020-04-20 15:54:29 +02:00
Asim Aslam
c4acf3c2cb
Static serving disabled
2020-04-19 20:30:38 +01:00
Asim Aslam
53db26a614
Use go.micro.mu
2020-04-19 17:03:25 +01:00
Asim Aslam
dde8f18b52
Update readme
2020-04-19 00:46:33 +01:00
Asim Aslam
6071b74fb5
Update readme
2020-04-19 00:45:29 +01:00
Asim Aslam
ab041012b2
Update readme
2020-04-19 00:44:52 +01:00
Asim Aslam
226d6ad22b
log whats happening in http handler
2020-04-19 00:41:03 +01:00
Asim Aslam
a08ff90976
fix this bs logging issue
2020-04-18 23:36:00 +01:00
Asim Aslam
ae8404d760
Log listening port
2020-04-18 23:32:20 +01:00
Vasiliy Tolstov
f00fd7a49e
api/router: support pcre and google.api pattern matching ( #1549 )
...
* api/router: support pcre and google.api pattern matching
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-19 00:31:34 +03:00
Asim Aslam
ecbc42755c
set network nodes in http resolver
2020-04-18 21:00:00 +01:00
Asim Aslam
16db76bee2
remove list endpoint from runtime and stop checking type in update
2020-04-17 17:54:34 +01:00
Asim Aslam
dca5305e8a
replaced build with updated timestamp in runtime
2020-04-17 16:29:05 +01:00
Asim Aslam
c0b0f63757
Update docker workflow to push releases
2020-04-17 10:50:44 +01:00
Janos Dobronszki
ac5822f1ee
Fix local runtime updates ( #1543 )
2020-04-16 17:50:24 +02:00
ben-toogood
ae56becbbd
Merge pull request #1542 from micro/stream-auth
...
Set authorization header on grpc stream
2020-04-16 15:06:19 +01:00
ben-toogood
5bb18e685e
Merge branch 'master' into stream-auth
2020-04-16 15:03:12 +01:00
Ben Toogood
2dfaab439c
Set authorization header on grpc stream
2020-04-16 15:01:16 +01:00
Vasiliy Tolstov
62cedf64da
api/router/registry: extract path based parameters from url to req ( #1530 )
...
Run tests / Test repo (push) Waiting to run
* api/router/registry: extract path based parameters from url to req
* api/handler/rpc: fix empty body request parsing
* bundle grpc-gateway util funcs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-15 17:50:51 +03:00
ben-toogood
9961ebb46e
Merge pull request #1538 from micro/rule-priority
...
Add priority to auth.CreateRequest and auth.DeleteRequest
2020-04-15 11:54:01 +01:00
Ben Toogood
fe31a71557
Fix formatting
2020-04-15 11:50:52 +01:00
Ben Toogood
c9a6b07c52
Add priority to auth.CreateRequest and auth.DeleteRequest
2020-04-15 11:49:24 +01:00
ben-toogood
f1e6eff303
Merge pull request #1537 from micro/rule-priority
...
Add Priority to auth rules
2020-04-15 11:42:53 +01:00
Ben Toogood
2de03e5fd7
Tidy go mod
2020-04-15 11:39:53 +01:00
Ben Toogood
234c192faf
Update protoc-gen-micro
2020-04-15 11:39:12 +01:00
Ben Toogood
ea29920afb
Add Priority to auth rules
2020-04-15 11:31:19 +01:00
Vasiliy Tolstov
4d177a782e
vendor proto files from google ( #1536 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-15 13:22:32 +03:00
Vasiliy Tolstov
b700d425a4
api/handler/rpc: improvements and fixes ( #1535 )
...
* api/handler/rpc: fix empty body case
* api/handler/rpc: copy all request headers to metadata
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-15 01:37:15 +03:00
Asim Aslam
9a5b8ff50d
use api
2020-04-14 22:14:55 +01:00
Asim Aslam
c787fd0483
fix missing pointer
2020-04-14 17:13:38 +01:00
Asim Aslam
1134ea5ff3
make proto.Message compatible with raw json
2020-04-14 16:59:24 +01:00
ben-toogood
fd16cd298f
Merge pull request #1532 from micro/registry-namespace
...
Registry Namespace
2020-04-14 16:14:18 +01:00
ben-toogood
67e7aa223a
Merge branch 'master' into registry-namespace
2020-04-14 16:03:29 +01:00
Asim Aslam
9d0381306d
add a proto message without serialisation
2020-04-14 15:54:25 +01:00
ben-toogood
f8837bfcbd
Merge branch 'master' into registry-namespace
2020-04-14 15:37:44 +01:00
Vasiliy Tolstov
268651df18
regenerate all proto based files ( #1531 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-14 16:25:09 +03:00
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
71d4253927
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-04-13 23:05:47 +01:00
Asim Aslam
e515005083
Remove only allowing certain methods
2020-04-13 23:05:39 +01:00
Asim Aslam
4bdc18d64a
Update README.md
2020-04-13 22:15:21 +01:00
Asim Aslam
f840a5003e
Remove runtime List
2020-04-12 23:46:06 +01:00
Asim Aslam
5ef1698632
remove readme
2020-04-12 23:43:55 +01:00
Asim Aslam
1bb6967a38
reorder
2020-04-12 23:41:21 +01:00
Asim Aslam
a056bdce7c
fix metadata parsing
2020-04-12 14:40:37 +01:00
Asim Aslam
b08c636b44
fixup handler tests
2020-04-12 14:29:38 +01:00
Asim Aslam
d03a02f2e4
fix import
2020-04-12 11:25:12 +01:00
Asim Aslam
08ca61c121
add metadata set
2020-04-12 11:17:23 +01:00
Asim Aslam
962588b649
Strip MetadataKey global var
2020-04-12 11:16:08 +01:00
Asim Aslam
cf67d460b7
strip down mdns watcher
2020-04-12 11:01:09 +01:00
Asim Aslam
4e539361fa
strip file
2020-04-12 10:58:12 +01:00
Vasiliy Tolstov
3ce2ab88f5
broker/nats: remove embed nats server reference ( #1527 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-11 22:37:29 +03:00
Vasiliy Tolstov
0a2363b49b
api minor improvements ( #1526 )
...
* api/handler/rpc: unblock all http methods and set Host meta
* api/router/static: add debug log
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-11 22:21:55 +03:00
Asim Aslam
ec80ceb8c2
Update readme
2020-04-11 18:23:37 +01:00
Asim Aslam
ea2bb0275c
Strip external use of mdns
2020-04-11 13:02:53 +01:00
Asim Aslam
51d4f737b8
fixup store cache#
2020-04-11 12:10:19 +01:00
Asim Aslam
3f81f685df
Move sync
2020-04-11 12:00:34 +01:00
Asim Aslam
bb1ccf09e8
prefix store dir
2020-04-11 11:23:41 +01:00
Asim Aslam
c878237567
fix log file creation
2020-04-11 11:22:02 +01:00
Asim Aslam
ac8b6f944e
Prefix logs dir micro/logs for runtime
2020-04-11 11:15:01 +01:00
Asim Aslam
0f2006ac50
fix compilation issues
2020-04-11 11:02:06 +01:00
Asim Aslam
c697eed1be
Update comments
2020-04-11 10:48:32 +01:00
Asim Aslam
b887d91f94
remove readme
2020-04-11 10:38:13 +01:00
Asim Aslam
39470c1b11
Completely replace sync implementation
2020-04-11 10:37:54 +01:00
Asim Aslam
6d553cb6fe
add whitespace
2020-04-11 09:34:04 +01:00
Asim Aslam
c612d86480
Move sync store
2020-04-11 09:33:10 +01:00
Asim Aslam
3f3d2f5027
fixup broker http address
2020-04-11 01:51:26 +01:00
Vasiliy Tolstov
bc71640fd9
broker: swap default broker from eats to http ( #1524 )
...
* broker: swap default broker from eats to http
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-11 03:46:54 +03:00
Asim Aslam
b979db6d9d
remove sync event
2020-04-10 23:29:15 +01:00
Asim Aslam
57b758db7e
push
2020-04-10 22:09:06 +01:00
Asim Aslam
b5f546b137
go mod tidy
2020-04-10 19:55:45 +01:00
Asim Aslam
d4b2c948dd
Remove cloudflare store
2020-04-10 19:50:57 +01:00
Asim Aslam
b9a5e9d610
fixup sync map
2020-04-10 17:47:13 +01:00
Asim Aslam
57853b2849
remove etcd store
2020-04-10 17:43:02 +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
Asim Aslam
4fd12430d0
cleanup mdns files
2020-04-10 17:19:26 +01:00
Asim Aslam
d134b469be
rename file
2020-04-10 17:17:24 +01:00
Asim Aslam
9a685b2df5
delete k8s registry ( #1522 )
2020-04-10 17:15:20 +01:00
Jake Sanders
6a666c9c7d
Add json tags to store.Record ( #1518 )
2020-04-09 19:38:43 +01:00
Asim Aslam
53549b6b30
Add options for Database/Table ( #1516 )
...
* Add options for Database/Table
* fix opts
2020-04-09 17:56:13 +01:00
Jake Sanders
0a27a08184
Add Databases and Tables endpoints to store RPC proto ( #1515 )
...
* Add Databases and Tables to store RPC
* add Database to TablesRequest
2020-04-09 16:37:32 +01:00
Janos Dobronszki
77f0abb0ba
Enabling micro run for subfolders ( #1510 )
...
* Enabling micro run for subfolders
* Use source instead of os.Args[2]
* Works now
* PR comments
* WorkDir -> Dir
2020-04-09 15:44:39 +01:00
Asim Aslam
29cccd0b4a
minor tweak add log line to proxy and basic auth provider by default ( #1513 )
2020-04-09 14:10:17 +01:00
ben-toogood
bf65dc71c7
Merge pull request #1505 from micro/resover-refactor
...
Extract Micro Resolver (Namespace)
2020-04-09 13:14:49 +01:00
Asim Aslam
5bc8ee39f7
Merge branch 'master' into resover-refactor
2020-04-09 13:07:05 +01:00
Vasiliy Tolstov
8c1b477279
store/cockroach: fixup test ( #1512 )
...
* store/cockroach: fixup test
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-09 14:58:50 +03:00
Ben Toogood
f9cfbe96c0
Merge master into resover-refactor
2020-04-09 12:42:34 +01:00
Jake Sanders
2e379ca7d0
Don't break the build!
2020-04-09 12:18:02 +01:00
Jake Sanders
2659215d5e
cockroachDB doesn't support this syntax ( #1509 )
2020-04-09 12:11:24 +01:00
Vasiliy Tolstov
1063b954de
dont display t.Log/t.Logf as errors in github actions ( #1508 )
...
* fix tests and github action annotations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-09 14:05:46 +03:00
Ben Toogood
4ff959ef50
Dynamic Namespace
2020-04-09 11:03:33 +01:00
Janos Dobronszki
bc1c8223e6
Remove ugly unneeded log in runtime local ( #1507 )
2020-04-09 11:50:12 +02:00
Ben Toogood
27eb7db1c2
Add default resolver to api router
2020-04-09 10:34:21 +01:00
Ben Toogood
3ede494945
Change import name
2020-04-09 10:32:08 +01:00
Ben Toogood
f102aba4c1
Fix HTTP tests
2020-04-09 10:28:38 +01:00
Asim Aslam
f2dd091ec0
strip log
2020-04-09 10:28:16 +01:00
Asim Aslam
c1ad6d6c7c
set service name in web
2020-04-09 09:41:50 +01:00
Jake Sanders
1e7cd8c484
Make the constraint explicit rather than inferred ( #1506 )
2020-04-08 23:52:35 +01:00
Asim Aslam
bf8ebf8ad2
add namespace
2020-04-08 23:27:32 +01:00
Asim Aslam
1768958af7
fix typo
2020-04-08 22:50:56 +01:00
Asim Aslam
bf41d8d28e
fix store table env var
2020-04-08 19:44:49 +01:00
Asim Aslam
45700eaabe
set database/table in header
2020-04-08 19:25:57 +01:00
Asim Aslam
48dd30c4c2
fix http test
2020-04-08 19:20:43 +01:00
Ben Toogood
8ff86ae08b
Extract micro resolver
2020-04-08 16:21:53 +01:00
Asim Aslam
b2079669f7
Strip namespace from router
2020-04-08 15:39:01 +01:00
Asim Aslam
2c1d1afd71
Strip namespace from registry router
2020-04-08 15:38:02 +01:00
Asim Aslam
9a73828782
Remove unused handlers
2020-04-08 15:34:11 +01:00
ben-toogood
c5d085cff8
Merge pull request #1496 from micro/namespace
...
Configurable Namespace & Public Suffix Domain Resolution
2020-04-08 13:48:50 +01:00
ben-toogood
9f4286fc4e
Merge branch 'master' into namespace
2020-04-08 13:44:46 +01:00
Jake Sanders
77f5cc5023
Fix nil dereference in cloudflare store ( #1504 )
2020-04-08 13:00:30 +01:00
Vasiliy Tolstov
8400aba81c
broker/memory: small memory improvements ( #1501 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-08 14:56:54 +03:00
Jake Sanders
cc027d900e
Close statements, add default table if the store was not initialised through service.Init() ( #1502 )
2020-04-08 12:08:08 +01:00
Edward
bc0dc2e509
fix :no syscall.Kill on windows #1474 ( #1474 )
2020-04-08 10:50:44 +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
Asim Aslam
98fc3dfbad
use single data bucket
2020-04-08 09:57:51 +01:00
Asim Aslam
4b0e27413e
add Store Close method ( #1500 )
...
* add Store Close method
* Update sync store build failure
2020-04-08 09:51:10 +01:00
ben-toogood
6b524e2c55
Merge branch 'master' into namespace
2020-04-08 09:12:28 +01:00
Asim Aslam
4cac7dcc48
fix file tests
2020-04-07 19:45:27 +01:00
Ben Toogood
e907d24e3b
API Wrappers
2020-04-07 19:29:26 +01:00
Asim Aslam
39c352f210
Remove the test that takes 30 seconds sleeping
2020-04-07 18:22:40 +01:00
Ben Toogood
67cd59d7bc
Rename namespace from Resolver.Endpoint
2020-04-07 16:27:59 +01:00
Ben Toogood
3735b0e529
Remove global namespace option
2020-04-07 16:27:01 +01:00
Ben Toogood
4362a885eb
Refactor Namespace Resolver
2020-04-07 16:24:51 +01:00
Janos Dobronszki
038b936ce9
Setting up file store in constructor and not in init which is o… ( #1499 )
2020-04-07 16:43:43 +02:00
Vasiliy Tolstov
6aaad7d63f
api/router/static: allow to specify body dst ( #1486 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-07 15:38:27 +01:00
Janos Dobronszki
aaee01b1a7
Use file store by default (as opposed to memory store) ( #1498 )
...
* Use file store by default (as opposed to memory store)
* Default table for file store
2020-04-07 15:19:45 +02:00
Jake Sanders
71538adfdc
Explicitly set the table name during service init ( #1497 )
2020-04-07 13:00:05 +01:00
Janos Dobronszki
2ea5b33955
Disk backed local store ( #1491 )
2020-04-07 13:53:22 +02:00
Ben Toogood
3df87510a1
Add namespace
2020-04-07 12:46:44 +01:00
Ben Toogood
9d598836c3
Fix Tests
2020-04-07 11:37:04 +01:00
Ben Toogood
05ac3ff274
Tweak
2020-04-07 11:24:13 +01:00
Ben Toogood
76f6f80318
Default to Hostname
2020-04-07 11:23:21 +01:00
Ben Toogood
cb96949551
Merge branch 'master' of https://github.com/micro/go-micro into namespace
2020-04-07 10:58:54 +01:00
ben-toogood
87cc4f273b
Merge pull request #1495 from micro/log-level
...
Change cross namespace request err level
2020-04-07 10:58:22 +01:00
Ben Toogood
f0980e9b30
Change cross namespace request err level
2020-04-07 10:54:27 +01:00
Ben Toogood
977934f8fd
ServiceNamespace => ServicePrefix in api server
2020-04-07 10:39:27 +01:00
Ben Toogood
9e116731b1
ServiceNamespace => ServicePrefix in api server
2020-04-07 10:38:27 +01:00
Ben Toogood
316424f0f7
Fix comments typo
2020-04-07 10:35:57 +01:00
Ben Toogood
bd23dc1f18
Improve micro.mu check
2020-04-07 10:34:26 +01:00
Ben Toogood
501fc5c059
Refactor to use publicsuffix
2020-04-07 10:28:39 +01:00
Ben Toogood
11e1e9120a
Remove debugging
2020-04-07 10:10:37 +01:00
Ben Toogood
a81d86ed08
Merge Asim's Fixes
2020-04-07 10:08:06 +01:00
Ben Toogood
7206d5f964
Add Namespace to CombinedAuthHandler
2020-04-07 09:40:40 +01:00
Asim Aslam
b5f5027549
Move store scope to util
2020-04-07 02:23:16 +01:00
Asim Aslam
e8a86585da
contains missing host port
2020-04-07 00:54:27 +01:00
Asim Aslam
5374896ed0
clone request
2020-04-07 00:29:35 +01:00
Asim Aslam
b6348ba59a
Fix cruft
2020-04-07 00:25:11 +01:00
Asim Aslam
ca11c4a672
Few nitpicks
2020-04-07 00:19:49 +01:00
Lars Lehtonen
900b2d24f9
config/secrets/box: fix dropped test error ( #1494 )
2020-04-06 23:09:42 +01:00
Jake Sanders
3324d140c0
Rename store Namespace / Prefix options to Database and Table ( #1492 )
...
* Rename Namespace to DB, Rename Prefix to table, Remove Suffix Option
* Rename options
* Rename options
* Add store_table option
* Table per service, not Database per service
2020-04-06 16:45:55 +01:00
ben-toogood
3a378eb7d6
Merge pull request #1493 from micro/auth-encode-endpoint
...
Encode Endpoint in API auth wrapper
2020-04-06 16:21:14 +01:00
Ben Toogood
574bf5ac69
Set value in context, not metadata
2020-04-06 16:10:08 +01:00
Ben Toogood
774c0d30a7
Encode Endpoint in API auth wrapper
2020-04-06 16:01:42 +01:00
ben-toogood
0f570d98e1
Merge pull request #1475 from micro/auth-resolver
...
Auth integrate resolver to support micro web & api
2020-04-06 14:57:41 +01:00
ben-toogood
7f07e1a642
Merge branch 'master' into auth-resolver
2020-04-06 14:43:22 +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
Asim Aslam
c4442a7533
Don't set the registry in new options for web services ( #1489 )
2020-04-06 13:40:40 +01:00
ben-toogood
bea7c3f7e7
Merge pull request #1488 from micro/disable-warn-log
...
Change namespace error log level
2020-04-06 12:55:47 +01:00
ben-toogood
cca9773269
Merge branch 'master' into disable-warn-log
2020-04-06 12:51:47 +01:00
Ben Toogood
600b20fb81
Change namespace error log level
2020-04-06 12:50:04 +01:00
Edward
31a1ea6fae
fix: use registry from opts not use default directly:( #1436 ) ( #1468 )
...
web: use passed user registry, or default
2020-04-05 13:15:38 +03:00
Vasiliy Tolstov
bc7579f1d8
api/handler/rpc: fix panic on invalid error conversation ( #1483 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-04 00:55:15 +03:00
Vasiliy Tolstov
38aed6f0f6
api/handler/rpc: not log error on client disconnect ( #1482 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-04 00:37:18 +03:00
ben-toogood
7f8b35e295
Merge pull request #1480 from micro/host-fix
...
Add Debugging
2020-04-03 15:07:22 +01:00
ben-toogood
b09dd9a689
Merge branch 'master' into host-fix
2020-04-03 15:03:49 +01:00
Ben Toogood
a82ce4d1ae
Add Debug
2020-04-03 15:03:18 +01:00
ben-toogood
34234fc486
Merge pull request #1479 from micro/host-fix
...
Auth host fix
2020-04-03 14:43:35 +01:00
Ben Toogood
4a850ff8a0
Auth host fix
2020-04-03 14:40:24 +01:00
ben-toogood
350dd41732
Merge branch 'master' into auth-resolver
2020-04-03 14:19:03 +01:00
ben-toogood
d8cca31738
Merge pull request #1478 from micro/auth-hosts-fix
...
Fix auth hosts bug
2020-04-03 14:13:51 +01:00
Ben Toogood
b864b3e350
Fix auth hosts bug
2020-04-03 14:09:25 +01:00
ben-toogood
41b746e435
Merge pull request #1477 from micro/fix
...
Hotfix
2020-04-03 13:37:50 +01:00
Ben Toogood
906263291b
Hotfix
2020-04-03 13:37:02 +01:00
ben-toogood
46f0bda31e
Merge pull request #1476 from micro/namespace-fix
...
Namespace Fix
2020-04-03 13:30:30 +01:00
Ben Toogood
d0e47206cc
Fix
2020-04-03 13:29:48 +01:00
ben-toogood
ed6fe67880
Merge pull request #1471 from micro/namespace
...
Detect & Propagate Namespace
2020-04-03 13:07:26 +01:00
Ben Toogood
1374a9e528
Fix namespace bug in auth wrapper
2020-04-03 13:03:27 +01:00
Ben Toogood
a9c0e043d2
Fix nil grpc server auth bug
2020-04-03 12:50:50 +01:00
Ben Toogood
49a568e9c0
Set default server auth
2020-04-03 12:33:19 +01:00
Ben Toogood
dea2d7ab9f
Fix go-micro auth wrapper init
2020-04-03 12:27:01 +01:00
Ben Toogood
ebb1a42d48
Merge branch 'namespace' of https://github.com/micro/go-micro into namespace
2020-04-03 12:14:26 +01:00
Ben Toogood
1096c8fb39
Fix failing test
2020-04-03 10:16:19 +01:00
Ben Toogood
91b9c3f92e
Add defaults
2020-04-03 10:08:39 +01:00
Ben Toogood
183c8bfb81
Apply fix for apis
2020-04-03 09:45:39 +01:00
Ben Toogood
49a1130281
Merge branch 'auth-resolver' of https://github.com/micro/go-micro into auth-resolver
2020-04-03 09:34:57 +01:00
Ben Toogood
760233b858
Reverse Change
2020-04-03 09:34:52 +01:00
ben-toogood
ede076e899
Merge branch 'master' into auth-resolver
2020-04-03 09:33:13 +01:00
Ben Toogood
fdcb013f24
Fix web registry compatability bugs
2020-04-03 09:18:30 +01:00
Ben Toogood
ce23ab36cb
Improve Err Handling
2020-04-02 18:41:06 +01:00
ben-toogood
61f0619e97
Merge branch 'master' into namespace
2020-04-02 18:05:21 +01:00
Ben Toogood
cfde3ec3d9
Remove resolver logic
2020-04-02 18:03:57 +01:00
Ben Toogood
4a4c666528
Remove resolver logic
2020-04-02 18:03:21 +01:00
Ben Toogood
8b35c264eb
Pass resolver to api auth handler
2020-04-02 17:44:48 +01:00
Ben Toogood
4999f6dfd4
Namespace requests coming via api & web
2020-04-02 17:01:06 +01:00
Asim Aslam
31c4452fc7
delete monitor ( #1470 )
2020-04-02 14:05:17 +01:00
Janos Dobronszki
2cafa289b6
Stop LogStream if there is an error in k8s pod log streaming ( #1469 )
...
* Stop LogStream if there is an error in k8s pod log streaming
* Locking stream Stops
* PR comment
2020-04-02 12:16:35 +01:00
Vasiliy Tolstov
0241197c6a
api/handler/rpc: binary streaming support ( #1466 )
...
* api/handler/rpc: binary streaming support
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fixup
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix sec webscoekt protol
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-02 10:13:04 +01:00
Asim Aslam
0a15ae9b9d
Move String method ( #1467 )
2020-04-01 23:27:15 +01:00
Janos Dobronszki
d2b6d35220
log.Errorf when pod streaming fails ( #1463 )
...
* log.Errorf when pod streaming fails
* Error method added for loggers
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-04-01 23:03:26 +01:00
Asim Aslam
e1bc0f6288
replace strings for store prefix ( #1465 )
...
Co-authored-by: ben-toogood <bentoogood@gmail.com >
2020-04-01 20:19:21 +01:00
ben-toogood
cd3d704aa5
Merge pull request #1459 from micro/auth-interface-update
...
Auth Interface Iteration
2020-04-01 17:56:38 +01:00
Ben Toogood
9de69529ce
Fix token tests
2020-04-01 17:29:17 +01:00
ben-toogood
623f0c0c90
Merge branch 'master' into auth-interface-update
2020-04-01 17:24:01 +01:00
Ben Toogood
c766679687
Fix typo
2020-04-01 17:22:01 +01:00
Ben Toogood
df8c0bb5e1
Auth Generate, make secret optional
2020-04-01 17:20:02 +01:00
Ben Toogood
d577c32563
Add back auth.PrivateKey
2020-04-01 17:17:40 +01:00
Ben Toogood
365dfe9df5
Code => State
2020-04-01 17:11:46 +01:00
Ben Toogood
ae15793fc3
Support oauth codes
2020-04-01 15:36:22 +01:00
Janos Dobronszki
15fcd5ecef
Remove Go micro 1.18 dependency ( #1462 )
2020-04-01 16:14:08 +02:00
Ben Toogood
1750fd8d10
Merge branch 'auth-interface-update' of https://github.com/micro/go-micro into auth-interface-update
2020-04-01 14:42:37 +01:00
Ben Toogood
525ab094c8
Remove LoginOptions
2020-04-01 14:42:11 +01:00
Janos Dobronszki
bb51b8203e
Runtime logs ( #1447 )
...
* Runtime logs
* Slightly broken
* Pushing for diff
* Log trailing works locally
* LogsOptions
* Comments and streamcount support for local logs
* Adding kubernetes logs
* Fixing k8s logs
* K8s fixes
* StreamCount is now nuked
* PR comments
* PR comments again
* Fix typo
2020-04-01 15:40:15 +02:00
ben-toogood
75a75c56ad
Merge branch 'master' into auth-interface-update
2020-04-01 14:37:06 +01:00
Ben Toogood
26cb6bf5b9
Remove Legacy JWT fields
2020-04-01 14:27:56 +01:00
Ben Toogood
9cbbd71855
Remove default login
2020-04-01 14:26:24 +01:00
Ben Toogood
f7655b71ea
Merge branch 'auth-interface-update' of https://github.com/micro/go-micro into auth-interface-update
2020-04-01 14:25:07 +01:00
Ben Toogood
8e4d9e1702
Further Refactoring
2020-04-01 14:25:00 +01:00
Asim Aslam
20c95d94cd
api completeness ( #1460 )
2020-04-01 12:07:50 +01:00
ben-toogood
0a7d8afe67
Merge branch 'master' into auth-interface-update
2020-04-01 09:42:45 +01:00
Vasiliy Tolstov
7b7a859a03
api: use http request Clone ( #1458 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-01 01:50:37 +03:00
Vasiliy Tolstov
8a8742f867
api/handler/rpc: dont change types of url fields ( #1457 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-01 01:26:58 +03:00
Asim Aslam
68b0238a5d
add stream timeout option which defaults to 0 ( #1456 )
...
* add stream timeout option which defaults to 0
* fix option
2020-03-31 23:22:11 +01:00
Vasiliy Tolstov
1490aff38e
api/handler/rpc: correctly parse nested url vars ( #1455 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-04-01 00:23:17 +03:00
Vasiliy Tolstov
3a22efbd7d
metadata: change method name ( #1454 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-31 23:39:18 +03:00
Vasiliy Tolstov
5e65a46be3
metadata: allow to remove key from metadata ( #1453 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-31 22:55:33 +03:00
Vasiliy Tolstov
18061723bb
fix api metadata extract from context ( #1452 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-31 22:36:51 +03:00
Vasiliy Tolstov
d6bef84de0
api/handler/rpc: fix metadata cleanup ( #1451 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-31 21:59:35 +03:00
Ben Toogood
82bc3cbf8d
Update interface to add provider and make secret optional
2020-03-31 19:01:43 +01:00
Ben Toogood
cffb0a1eae
Remove ContextWithToken
2020-03-31 18:34:31 +01:00
Ben Toogood
134bc1c68a
Implement new interface
2020-03-31 18:17:01 +01:00
Asim Aslam
6c6c5359b1
Add options to config ( #1450 )
2020-03-31 17:13:21 +01:00
Ben Toogood
8dbb5153f4
Tweak Auth Interface
2020-03-31 17:01:51 +01:00
ben-toogood
2674790694
Service => Service Auth ( #1448 )
...
* Service => Service Auth
* WithServicePrivileges => ServicePrivileges
* Fixes for CLI login
* ServicePrivileges => ServiceToken
* Fallback to service token
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-31 16:18:04 +01:00
ben-toogood
9fb1d476a2
Merge branch 'master' into auth-srv-srv
2020-03-31 16:15:17 +01:00
Ben Toogood
36386354d7
Fallback to service token
2020-03-31 13:51:32 +01:00
Ben Toogood
bd70820b6b
ServicePrivileges => ServiceToken
2020-03-31 13:48:28 +01:00
Ben Toogood
956029ae3d
Fixes for CLI login
2020-03-31 13:30:14 +01:00
Ben Toogood
e0c7f48d20
WithServicePrivileges => ServicePrivileges
2020-03-31 12:57:38 +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
1222d076f2
There can be only one! ( #1445 )
...
Run tests / Test repo (push) Waiting to run
* There can be only one
* fix proto?
2020-03-31 10:18:50 +01:00
ben-toogood
76ade7efd9
Auth - Swap Refresh to Token and change secrets to be strings, not tokens ( #1444 )
...
* Refresh => Token
* Secret is no longer a token
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-31 10:06:13 +01:00
Vasiliy Tolstov
c706ebe3fb
auth proto: provide help to protoc-gen-go ( #1442 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-31 00:35:11 +03:00
Vasiliy Tolstov
9e6db79860
regenerate all proto ( #1440 )
...
* regenerate all proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* regenerate from proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* regenerate from proto
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-30 21:58:32 +01:00
Vasiliy Tolstov
756b346672
auth/service: move all proto files to single dir ( #1439 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-30 18:23:00 +03:00
ben-toogood
4db2f5e79d
Add Namespace to Auth ( #1438 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-30 09:51:37 +01:00
Vasiliy Tolstov
3d7d5ce6b4
api: add static router and improve path parser in rpc handler ( #1437 )
...
* api: add static router and improve path parser in rpc handler
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* expose metadata context key to be able to get unmodified map keys
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: fix jsonpb codec for protobuf msg
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* api/handler/rpc: write 204 status code when rsp is nil
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* api/handler/rpc: add check for nil response for non javascript
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-30 09:04:59 +01:00
Socket
8282e781e4
grpc pool should check state ( #1435 )
...
Co-authored-by: huangshaojie <huangshaojie@corp.netease.com >
2020-03-28 08:48:25 +00:00
Vasiliy Tolstov
e4acc63d5f
add mdns registry debug ( #1434 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-27 22:33:49 +03:00
Asim Aslam
45ee5e9ad1
Move error for api validation to trace level ( #1432 )
...
* remove error on endpoint validation
* trace level
2020-03-27 14:01:47 +00:00
Asim Aslam
b60fde0e64
Pass through source and metadata in Update and Delete calls to runtime ( #1431 )
2020-03-27 11:37:12 +00:00
Lars Lehtonen
011a783a9e
store/cockroach: fix dropped test errors ( #1419 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-27 10:15:37 +00:00
ben-toogood
6723d17b22
Default auth, return account secret on Inspect ( #1430 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-27 09:54:29 +00:00
ben-toogood
47c7181d41
Default Auth: Add blank secret to account to prevent nil errors ( #1429 )
...
* Remove debug auth logs
* Default auth, return account secret on Inspect
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-27 09:46:17 +00:00
Vasiliy Tolstov
b38da6ced0
api/handler/rpc: process all methods and merge url params to json body ( #1427 )
...
* api/handler/rpc: process all methods and merge url params to json body
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* add merge json test
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-27 07:59:31 +00:00
ben-toogood
1a53307a78
Remove debug auth logs ( #1426 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-26 19:00:24 +00:00
Asim Aslam
e204f3e2e8
Add metadata Get method ( #1425 )
2020-03-26 18:50:00 +00:00
ben-toogood
329bd09f93
Fix Auth Init bug ( #1424 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-26 18:09:51 +00:00
ben-toogood
4648fd0d09
Auth debugging ( #1423 )
...
* More auth debugging
* More auth debugging
* Increase auth debugging
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-26 17:55:35 +00:00
ben-toogood
c905df3be6
Log auth verify requests ( #1422 )
...
* More auth debugging
* More auth debugging
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-26 17:35:28 +00:00
Asim Aslam
62f9a054a4
100mb ( #1421 )
2020-03-26 16:57:31 +00:00
ben-toogood
00e7804f96
Auth - Add debugging to loading rules ( #1420 )
...
* Fix auth multi-rule edgecase
* Add logging to auth rules
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-26 16:30:31 +00:00
ben-toogood
42b6bf5bbf
Fix auth multi-rule edgecase ( #1418 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-26 15:52:48 +00:00
ben-toogood
844c456839
Refactor Auth Service Protos, Add Access Rules ( #1411 )
...
* Refactor auth/service into two protos
* Accounts Proto
* Store Prefixes
* Misc
* Tweak Protos
Co-authored-by: Ben Toogood <ben@micro.mu >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-26 13:12:43 +00:00
Asim Aslam
7182ca1fd0
fix server logging ( #1417 )
2020-03-26 13:08:06 +00:00
Vasiliy Tolstov
02839cfba5
api/handler: use http.MaxBytesReader and buffer pool ( #1415 )
...
* api/handler: use http.MaxBytesReader
protect api handlers from OOM cases
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-26 14:29:28 +03:00
Asim Aslam
776a7d6cd6
Update filter comment for proxy ( #1416 )
2020-03-26 08:05:00 +00:00
Vasiliy Tolstov
beaa434610
logger: fix reading env var ( #1414 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-25 22:00:43 +00: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
378d03eb66
Tidying up auth ( #1410 )
...
* Don't clear auth rules if request fails
* Add jitter to auth service loading rules
* Remove unused error from ContextWithToken result
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-25 18:34:13 +00:00
ben-toogood
56af826230
Update auth to pass seconds and not nanoseconds ( #1409 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-25 17:03:45 +00:00
ben-toogood
511ebd8ec2
Fix Token Expiry Bug ( #1408 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-25 14:40:37 +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
Jake Sanders
dff98355be
Missing ; in SQL query
2020-03-24 23:49:09 +00:00
Vasiliy Tolstov
8100d26430
api/router/registry: use logger ( #1402 )
...
* api/router/registry: use logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* api/server/acme: use logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-24 20:45:11 +00:00
Jake Sanders
397a8638f4
Cockroach Store bugfix ( #1401 )
2020-03-24 17:16:38 +00:00
Jake Sanders
eb4d2ae6aa
Remove useless variable from cockroach store ( #1400 )
2020-03-24 15:37:30 +00:00
Jake Sanders
914340585c
Trim space from env variables ( #1399 )
2020-03-24 14:51:43 +00:00
ben-toogood
84b4eb5404
Fix missing loop ( #1398 )
...
* WithRoles variadic args
* Load Rules
* Timer => Ticker
* Add missing for loop in auth service
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-24 14:16:57 +00:00
ben-toogood
fd664f4392
Auth load rules ( #1397 )
...
* WithRoles variadic args
* Load Rules
* Timer => Ticker
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-24 13:48:37 +00:00
ben-toogood
86272a3064
WithRoles variadic args ( #1395 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-24 10:18:34 +00:00
ben-toogood
c1978265ab
Auth Wildcard Endpoints ( #1394 )
...
* Auth Wildcard Endpoints
* Fix joinkey bug, improve tests
* Change joinKey
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-24 09:39:33 +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
Vasiliy Tolstov
9826ddbd64
api/handler/rpc: log errors ( #1390 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-23 10:31:35 +03:00
0987363
87617be227
Add client header to rpcRequest header; issue #957 ( #1378 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-21 23:25:23 +00:00
Vasiliy Tolstov
d559587807
client/grpc: remove json-iterator usage ( #1387 )
...
* minimize external deps and binary size
* if user wants json-iterator codec it must be used in server and
client code. so best to use it via go-plugins
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-21 09:40:58 +00:00
Janos Dobronszki
9501512219
Auth util func RequestToContext ( #1386 )
2020-03-20 15:23:12 +00:00
Asim Aslam
d2f153d795
Add type of service ( #1385 )
2020-03-20 12:48:12 +00:00
Asim Aslam
e49be1da42
fix local runtime ( #1383 )
2020-03-19 22:38:37 +00:00
Jake Sanders
4c6f68d537
Implement store read cache ( #1366 )
...
* Implement store read cache
* Added cache tests and fixed a bug in memory store
2020-03-19 18:19:07 +00:00
Vasiliy Tolstov
cbb958def5
config: fix panic on multiple Close() ( #1374 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-19 12:54:59 +03:00
Asim Aslam
40ff6ddfcf
sigh, further status changes ( #1371 )
2020-03-18 22:47:03 +00:00
Asim Aslam
5ad7c36bd4
Fix labels for k8s ( #1370 )
2020-03-18 22:13:21 +00:00
Asim Aslam
99c3fe2bb8
fix status parsing ( #1368 )
2020-03-18 21:50:52 +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
Jake Sanders
c91bf7e9e7
[WIP] Store Sync ( #1365 )
...
* Initial cache implementation
* Write queue implementation
* Accidentally started writing the storage sync service
2020-03-18 16:39:36 +00:00
Vasiliy Tolstov
41f8a8cb00
errors: add FromError func ( #1362 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-18 03:10:38 +03:00
ben-toogood
cd04111e3d
Pass redirect_to param on auth ( #1361 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-17 20:04:16 +00:00
ben-toogood
00cd2448a4
Fix bug where auth token is not set from cookie when excluded endpoint ( #1360 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-17 19:24:10 +00:00
ben-toogood
8a41d369f2
Auth JWT ID Fix ( #1359 )
...
* Auth JWT ID Fix
* Remove unused ID in jwt claims
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-17 16:59:57 +00:00
Jake Sanders
638c219736
Cockroach store feature completion ( #1358 )
...
* Start fixing cockroach store
* Add prefix, suffix, limit, offset for cockroachdb store
2020-03-17 16:15:23 +00:00
ben-toogood
b3c631dd38
Support Wildcard Auth Excludes ( #1357 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-17 16:03:49 +00:00
Vasiliy Tolstov
ab73127063
grpc client/server fixes ( #1355 )
...
Run tests / Test repo (push) Waiting to run
* grpc client/server fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-17 14:27:20 +03: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
Vasiliy Tolstov
ac333d9d47
client/grpc: unwrap error after call ( #1352 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-16 13:33:38 +03:00
ben-toogood
247707f583
Return store.ErrNotFound if not found when calling over rpc ( #1353 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-16 10:30:56 +00:00
ben-toogood
d91c14eb30
grpc client error fix ( #1351 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-16 12:53:15 +03:00
Asim Aslam
ca8684a886
fix k8s issues ( #1349 )
2020-03-15 15:09:18 +00:00
Asim Aslam
0449138f61
fix panic ( #1348 )
2020-03-14 21:18:41 +00:00
Vasiliy Tolstov
609f4826b3
server: remove duplicate code ( #1346 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-13 22:15:09 +00:00
Vasiliy Tolstov
60993e6275
config/source/service: base64 fix ( #1345 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-13 21:44:55 +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
3543b275e0
fix log level helper ( #1342 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-13 17:36:42 +03:00
Vasiliy Tolstov
fbde872e7f
Revert "server/grpc: fix ordering of register and check for registered ( #1338 )" ( #1341 )
...
This reverts commit 62a644ddd8 .
2020-03-13 09:30:44 +00:00
Asim Aslam
078dd4eb9b
fix etcd ( #1340 )
...
* fix etcd
* update go mod
2020-03-13 08:55:23 +00:00
Vasiliy Tolstov
62a644ddd8
server/grpc: fix ordering of register and check for registered ( #1338 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-12 22:04:11 +00:00
Asim Aslam
d8cfa7a295
add config to cmd ( #1337 )
...
* add config to cmd
* fix build
2020-03-12 18:47:40 +00:00
ben-toogood
47f1203e97
Add Config to service options ( #1336 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-12 18:13:03 +00:00
Jake Sanders
1b4e881d74
Rewrite the store interface ( #1335 )
...
* WIP store rewrite
* Fix memory store tests
* Store hard expiry times rather than duration!
* Clarify memory test
* Add limit to store interface
* Implement suffix option
* Don't return nils from noop store
* Fix syncmap
* Start fixing store service
* wip service and cache
* Use _ for special characters in cockroachdb namespace
* Improve cockroach namespace comment
* Use service name as default store namespace
* Fixes
* Implement Store Scope
* Start fixing etcd
* implement read and write with expiry and prefix
* Fix etcd tests
* Fix cockroach store
* Fix cloudflare interface
* Fix certmagic / cloudflare store
* comment lint
* cache isn't implemented yet
* Only prepare DB staements once
Co-authored-by: Ben Toogood <ben@micro.mu >
Co-authored-by: ben-toogood <bentoogood@gmail.com >
2020-03-12 13:41:30 +00:00
ben-toogood
20ce61da5a
Oauth google fixes ( #1330 )
...
* Fix Auth Headers
* Tweak Oauth to work for Google
Co-authored-by: Ben Toogood <ben@micro.mu >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-12 13:11:35 +00:00
chengguoqiang
eef4825be4
Update etcd.go ( #1334 )
...
add leaseId to the trace log
2020-03-12 10:09:38 +00:00
Asim Aslam
be9c6141f5
delete options ( #1333 )
2020-03-12 09:05:09 +00:00
Asim Aslam
1ca4619506
return store.ErrNotFound ( #1332 )
2020-03-11 23:09:42 +00:00
Asim Aslam
f55493993c
set namespace rather than key ( #1331 )
2020-03-11 22:31:24 +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
Jake Sanders
4125ae8d53
Add secrets interface to config/secrets ( #1325 )
...
* Interface for secrets
* Add secretbox secrets implementation
* Start working on box
* typo
* Add asymmetric encryption implementation
* go mod tidy
* Fix review comments
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-10 22:52:06 +00:00
ben-toogood
48b2a5c37c
Fix Auth Headers ( #1324 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-10 16:47:01 +00:00
Asim Aslam
ed83c27f0e
add websocket streaming to api rpc handler ( #1326 )
2020-03-10 15:21:43 +00:00
Vasiliy Tolstov
241614ff68
add helper function to determine logger level ( #1321 )
...
* add helper function to determine logger level
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-09 23:43:05 +03:00
mlboy
1a4f608ed1
add: auth add generate options Expiry for set token expires ( #1319 )
...
Co-authored-by: mlboy <ml3@meitu.com >
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-09 17:16:31 +00:00
Vasiliy Tolstov
43b0dbb123
tunnel: reduce allocation and improve performance ( #1320 )
...
* tunnel: reduce allocation and improve performance
BenchmarkSha256Old-16 100000 156748 ns/op 11835 B/op 168 allocs/op
BenchmarkSha256Old-16 100000 156229 ns/op 11819 B/op 168 allocs/op
BenchmarkSha256New-16 100000 154751 ns/op 11107 B/op 161 allocs/op
BenchmarkSha256New-16 100000 154263 ns/op 11110 B/op 161 allocs/op
simple change lowers allocations and brings performance
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* tunnel: reuse buf in Decrypt
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix unneeded conversations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* base32 string is smaller than hex string
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-09 17:10:08 +00:00
ben-toogood
b344171c80
URL Encode Provider.Endpoint() ( #1317 )
...
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-09 10:21:49 +00:00
ben-toogood
e3ce45495a
os.Exit on log.Fatal ( #1316 )
...
* os.Exit on log.Fatal
* Fix TestOptions
Co-authored-by: Ben Toogood <ben@micro.mu >
2020-03-09 09:23:42 +00:00
Vasiliy Tolstov
f01664a551
Merge pull request #1313 from micro/upstream
...
fix ipv6 address usage in mdns registry and util/addr
2020-03-07 23:50:03 +03:00
Vasiliy Tolstov
8ecbdc1cd6
registry/mdns: add logging for invalid endpoint
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-07 23:19:48 +03:00
Vasiliy Tolstov
55c19afb0b
registry/mdns: fix ipv6 addr in mdns registry
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-07 23:17:00 +03: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
8ee5607254
[WIP]: broker ErrorHandler option ( #1296 )
...
* broker ErrorHandler option
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* rewrite Event interface, add error
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* implement new interface
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* change ErrorHandler func to broker.Handler
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-06 21:25:16 +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
Vasiliy Tolstov
a864f812f1
web: fix ipv6 address issue ( #1308 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-06 18:44:56 +03:00
Asim Aslam
ae60bea8d8
add stream fix ( #1305 )
2020-03-06 14:40:47 +00:00
Jake Sanders
a851b9db7a
Comment typo in gRPC subscriber ( #1304 )
2020-03-05 14:55:46 +00:00
Vasiliy Tolstov
d807dac2a7
server/grpc: avoid panic in case of nil Header ( #1303 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-05 17:45:31 +03:00
Vasiliy Tolstov
ce2ba71002
server: subscribe to topic with own name if router not nil ( #1295 )
...
* server: subscribe to topic with own name if router not nil
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-05 10:29:50 +03:00
Asim Aslam
67c26c71b6
add jitter ( #1298 )
2020-03-04 15:37:17 +00:00
ben-toogood
9386f36a13
Exit on log.Fatal ( #1297 )
2020-03-04 13:46:01 +00:00
ben-toogood
6d803d9e45
Implement api/server/cors ( #1294 )
2020-03-04 11:40:53 +00:00
ben-toogood
6a9001bdb1
Set auth account in context ( #1293 )
2020-03-04 09:54:52 +00:00
Jake Sanders
3f0c28a815
Expiration is actually a unix timestamp ( #1290 )
...
* Expiration is actually a unix timestamp
* int -> int64
2020-03-03 18:15:50 +00:00
Asim Aslam
49ffc60afb
Use Foo.Call on /foo ( #1286 )
...
Co-authored-by: Jake Sanders <i@am.so-aweso.me >
2020-03-03 16:47:15 +00:00
Jake Sanders
beb5e80e87
Fix nil pointer dereference ( #1289 )
2020-03-03 13:54:56 +00:00
Jake Sanders
eebd69c995
Change from renekroon/ttlcache to patrickmn/go-cache ( #1288 )
2020-03-03 13:35:49 +00:00
Jake Sanders
bc71989e2c
int64 -> time.Duration ( #1287 )
2020-03-03 13:15:26 +00:00
Vasiliy Tolstov
89ba602e17
logger fixes and improvements ( #1285 )
...
* fix helper fields
* add metadata output for default logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-03 11:07:37 +03:00
Jake Sanders
f6102bde70
Add a cache to workers KV storage implementation ( #1284 )
...
* cloudflare-cache
* go mod tidy
2020-03-02 18:14:25 +00:00
Pieter Voorwinden
7cad77bfc0
Initialize header to prevent assignment to entry in nil map error ( #1282 )
...
Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-02 19:17:26 +03:00
ben-toogood
1f2e067f71
k8s runtime - get status from pods ( #1283 )
2020-03-02 15:49:10 +00:00
Vasiliy Tolstov
b555269b1b
copy fields in helper ( #1281 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-03-02 14:18:36 +00:00
ben-toogood
9200c70202
Replace validation error with regex for cockroach namespace ( #1270 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-03-01 22:09:06 +00:00
Sumanth Chinthagunta
d8377e09c9
feat(dockerfile): adding dumb-init to base image ( #1278 )
2020-02-29 21:55:15 +00:00
Vasiliy Tolstov
0754229878
broker/memory: add codec support ( #1276 )
...
allow easy testing of other services with memory broker
and also allows to more deeply simulate real brokers
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-29 23:00:29 +03:00
Vasiliy Tolstov
6b8930a960
add new helper method to logger ( #1273 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-29 00:39:41 +00:00
Vasiliy Tolstov
d0a978bd50
redesign logger ( #1272 )
...
* redesign logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-29 03:31:59 +03:00
ben-toogood
afe6861e2f
Update the k8s deployment to use metadata labels & custom source ( #1271 )
Run tests / Test repo (push) Waiting to run
2020-02-28 15:07:55 +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
e21ed3a183
gen account on base32 decode failure ( #1269 )
2020-02-27 16:11:05 +00:00
Vasiliy Tolstov
64a5ce9607
various fixes ( #1267 )
...
* logger: remove Panic log level
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: add missing Unlock in Subscribe error
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server: minor code change
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: extend test suite with pub/sub testing
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: fix invalid check and allow subscriber error to be returned
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* server/grpc: add pubsub tests
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* client/grpc: check for nil req/rsp
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-26 18:34:40 +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
Eric
1034837f69
Adjusting the BeforeStart () position ( #1263 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-02-26 11:44:10 +03:00
Lars Lehtonen
80f2bfd5d0
config: remove unused sep variable ( #1262 )
2020-02-26 08:25:33 +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
Di Wu
603d37b135
Set option and cli args to the service profile ( #1259 )
2020-02-25 16:42:42 +00:00
Eric
53c3bff819
add Panic & Panicf to logger ( #1258 )
...
* add Panic & Panicf to logger
2020-02-25 17:44:29 +03:00
ben-toogood
dcf859098b
Fix k8s commands for github ( #1257 )
2020-02-25 11:39:03 +00:00
Vasiliy Tolstov
b4a743898e
fix router panic ( #1254 )
...
Run tests / Test repo (push) Waiting to run
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-24 23:15:59 +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
Jake Sanders
56f8115ea8
Rename PR job ( #1250 )
2020-02-24 14:16:51 +00:00
Vasiliy Tolstov
5b0175c2e5
allocations improvements and tunnel fixes ( #1248 )
...
* reduce allocations in tunnel code
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* another allocation fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* allocate maps with len if it known
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* allocate key for send once
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-24 14:15:20 +00:00
Jake Sanders
01d88601c0
Split PR and merge tests ( #1249 )
2020-02-24 14:11:17 +00:00
Lars Lehtonen
d467236f8f
broker/nats: remove unused setPublishOption() ( #1234 )
...
broker/nats: remove unused setSubscribeOption()
2020-02-24 13:49:27 +00:00
Vasiliy Tolstov
24d574ae71
server/grpc: add MaxConn option to limit max inflight requests ( #1247 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-24 13:48:56 +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
1f767ba18c
update go modules ( #1240 )
...
Run tests / Test repo (push) Waiting to run
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-23 20:47:44 +00:00
Asim Aslam
915c424213
Add docker build ( #1239 )
2020-02-23 15:57:21 +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
Gao.QiLin
ceed8942fc
Update README.md change godoc => go.dev ( #1236 )
...
* Update README.md add go dev
* Update README.zh-cn.md add go dev
2020-02-22 08:56:42 +00:00
Vasiliy Tolstov
d1e25e7ead
add metadata set method ( #1232 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-21 23:04:47 +03:00
Jake Sanders
7e24c0c1cf
Also run tests on PR ( #1233 )
2020-02-21 17:57:07 +00:00
Jake Sanders
ca251ba111
Switch from Travis CI to GitHub Actions ( #1231 )
...
* Create Github Action to run tests on push
* -v
* Update tests.yml
* TODO: Fix tests
* Fix colours
* Delete .travis.yml
* Update tests.yml
* builds -> build
2020-02-21 17:43:50 +00:00
Asim Aslam
116855572b
Add log level helper funtions ( #1229 )
2020-02-21 08:43:23 +00:00
Asim Aslam
ee977acfef
strip SetGlobalLevel ( #1228 )
2020-02-21 08:28:21 +00:00
Sumanth Chinthagunta
3fa7c26946
logger with helper methods ( #1216 )
...
* support unix daemon socket
* refactor(logger): logger fields changed to map[string]interface{}
* improvement(logger): adding string to Level Parser
* improvement(logger): rename ParseLevel to GetLevel
* refactor(logger): adding basic logger
adding micro default logger, and refactor logger interface
* refactor(logger): moved basic logger to top level package
* refactor(logger): adding default logger
2020-02-21 07:57:59 +00:00
Lars Lehtonen
88457b812e
tunnel: Prune Unused Functions ( #1224 )
...
* tunnel: remove unused link.setLoopback()
* tunnel: remove unused link.accept()
* tunnel: remove unused link.connect()
2020-02-20 17:05:49 +00:00
Asim Aslam
78df154a4d
move log level setting to option ( #1222 )
2020-02-20 08:26:12 +00:00
Lars Lehtonen
c7eed618c2
server/grpc: Prune Unused Code ( #1220 )
...
* server/grpc: remove unused grpcServer.newCodec()
* server/grpc: remove unused defaultRPCCodecs
2020-02-19 20:58:22 +00:00
ben-toogood
36bcd3bd82
Improve JWT Package Errors ( #1206 )
...
Co-authored-by: Asim Aslam <asim@aslam.me >
2020-02-19 09:51:43 +01:00
Asim Aslam
f4118dc357
secure the grpc client ( #1215 )
...
* secure the grpc client
* make compile
* Add system cert pool
* Revert manually adding ca certs
* Tweak comment
Co-authored-by: ben-toogood <bentoogood@gmail.com >
2020-02-19 08:44:35 +00:00
Vasiliy Tolstov
58598d0fe0
fixes for safe conversation and avoid panics ( #1213 )
...
* fixes for safe convertation
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* fix client publish panic
If broker connect returns error we dont check it status and use
it later to publish message, mostly this is unexpected because
broker connection failed and we cant use it.
Also proposed solution have benefit - we flag connection status
only when we have succeseful broker connection
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* api/handler/broker: fix possible broker publish panic
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-18 23:05:38 +00:00
Vasiliy Tolstov
6248f05f74
add missing option to client.NewMessage ( #1212 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-18 14:18:59 +03:00
ben-toogood
aa9a0a8d23
Fix Micro Proxy nil Transport Bug ( #1208 )
2020-02-17 12:28:48 +03:00
ben-toogood
1e40c86dfe
Ignore gRPC Proxy ( #1205 )
2020-02-17 08:14:45 +00:00
Asim Aslam
9696efde02
reorder auth interface ( #1204 )
2020-02-16 19:36:45 +00:00
Asim Aslam
b3fc8be24e
normalise proxy name ( #1203 )
2020-02-15 21:57:30 +00:00
Sumanth Chinthagunta
fc5339a368
[W.I.P] refactor(logger): logger fields changed to map[string]interface{} ( #1198 )
...
* support unix daemon socket
* refactor(logger): logger fields changed to map[string]interface{}
* improvement(logger): adding string to Level Parser
* improvement(logger): rename ParseLevel to GetLevel
2020-02-15 18:19:28 +00:00
Asim Aslam
964b7dee3f
add tls config to server ( #1202 )
...
* add tls config
* add TLSConfig to acme provider
2020-02-15 15:10:26 +00:00
Asim Aslam
158949d0d0
accept Listen option in grpc server ( #1201 )
2020-02-15 14:09:24 +00:00
Asim Aslam
eed8a0bf50
delete proxy cached route before updating ( #1200 )
2020-02-15 12:05:22 +00:00
Asim Aslam
c691d116ab
when the stream errors cleanup the connection ( #1199 )
2020-02-15 11:35:08 +00:00
Eric
cbe8b7dd09
Removed redundant spaces ( #1196 )
2020-02-14 10:32:02 +03:00
Asim Aslam
203486fd31
check for etcd watcher canceled value
2020-02-13 22:34:56 +00:00
Asim Aslam
d9b3b17582
set dial timeout in stream
2020-02-13 18:51:32 +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
Vasiliy Tolstov
6dc942bc19
client/grpc: fix panic on invalid message ( #1191 )
...
* client/grpc: fix panic on invalid message
* travis: disable lint and race for now
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-13 14:57:21 +03:00
Janos Dobronszki
d76baf59de
Trace type is now being recorded ( #1188 )
2020-02-12 10:57:17 +00:00
Vasiliy Tolstov
79ad1e6fe3
various fixes for broker and messaging in server ( #1187 )
...
* provide broker disconnect messages in server
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* broker/eats: another fix
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-11 18:41:23 +00:00
Vasiliy Tolstov
2764de9a1a
broker/eats: broker disconnect fix ( #1186 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-11 15:46:50 +00:00
Asim Aslam
d1d6eada98
parse url encoded form in rpc handler ( #1183 )
...
* parse url encoded form in rpc handler
* Remove comment
2020-02-11 11:27:16 +00:00
ben-toogood
4a03183481
Return a 401 error on invalid auth tokens ( #1184 )
2020-02-11 11:22:22 +00:00
Asim Aslam
8ea84ac3eb
Fix router panic for nil watcher
2020-02-10 15:38:41 +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
Vasiliy Tolstov
c706afcf04
logger helper to pass down it via context ( #1180 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-09 21:26:46 +00:00
Lars Lehtonen
ca1d0b94c3
config/cmd: remove 8 unused variables ( #1175 )
2020-02-08 11:19:10 +00:00
Vasiliy Tolstov
67acd9288b
config/source/cli: fix tests ( #1179 )
...
* config/source/cli: fix tests
* skip mdns test in travis
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-08 02:45:32 +03:00
Vasiliy Tolstov
0bf6c9fc08
config/source/cli: fix default flag value loading ( #1178 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-08 02:14:34 +03:00
Vasiliy Tolstov
99807a680c
strip Micro-Topic header from incoming context in client.Call ( #1177 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-07 22:09:52 +00:00
Vasiliy Tolstov
f0f7f860d6
add some docs ( #1176 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-07 21:48:24 +00:00
Asim Aslam
ef537270ad
Don't store traces for Debug endpoints
2020-02-07 20:58:03 +00:00
Asim Aslam
c7f075d157
rename file
2020-02-07 14:00:27 +00:00
Asim Aslam
812ea78604
Fix runtime deadlock
2020-02-07 14:00:09 +00:00
Asim Aslam
0755084a59
fix deadlock
2020-02-07 13:55:55 +00:00
ben-toogood
fe7f5a4134
Runtime Retries Limit ( #1163 )
...
* Implement Runtime Retries
* Remove Debug
* Action Feedback
* Refactor Retries
* Fix WithRetires Typo
2020-02-07 12:02:41 +00:00
ben-toogood
19c454ec4b
Fix Local Runtime Default Command ( #1173 )
...
* Auth API Proto
* Fix local runtime bug
* Add Platform Proto
* Restructuring
2020-02-07 11:39:26 +00:00
Asim Aslam
0e9b4c26a4
import with braces
2020-02-06 21:39:08 +00:00
Asim Aslam
d40b13a045
mux to mtx
2020-02-06 21:37:17 +00:00
Asim Aslam
4079b22c1e
reorder logger methods
2020-02-06 21:36:33 +00:00
Shu xian
fdfb2bc4c1
[WIP] logger first ( #1161 )
...
* logger first
* log->logger
* update comment
* add context in Options
* add Fields
* remove logfi
* add field encode
* add common Field Types
* update logger field
2020-02-06 21:35:46 +00:00
Asim Aslam
dbeb7cfe9c
remove errors import
2020-02-06 18:45:12 +00:00
Asim Aslam
512df2628f
trim source url if its set to github.com/
2020-02-06 18:34:16 +00:00
Janos Dobronszki
92571db693
Tracing: traces now correctly form a tree ( #1170 )
...
* First cut of trace
* Dial it back yo
* Defensive programming
2020-02-06 17:22:16 +00:00
ben-toogood
16552620e0
Runtime Custom Source (Part 2) ( #1169 )
2020-02-06 16:16:01 +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
e46278a766
Test
2020-02-06 11:24:56 +00:00
Ben Toogood
2925b1615c
Fix
2020-02-06 11:15:30 +00:00
Ben Toogood
fc4191c647
Fix
2020-02-06 11:12:40 +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
c28737e88e
Debugging
2020-02-06 10:54:11 +00:00
Ben Toogood
c7d922fac2
Debugging
2020-02-06 10:49:01 +00:00
Ben Toogood
f8e696bd30
Debugging
2020-02-06 10:44:12 +00:00
Ben Toogood
6aef28dad2
Runtime set service source
2020-02-06 10:33:23 +00:00
Vasiliy Tolstov
7105e4099c
pass micro errors from grpc server to grpc client ( #1167 )
...
* pass micro errors from grpc server to grpc client
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
* wrap micro errors.Error to grpc status
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-06 10:18:33 +00:00
Ben Toogood
f0762bbb6b
Improve Logging
2020-02-06 10:16:32 +00:00
Ben Toogood
243c6a4246
Debug
2020-02-06 10:08:56 +00:00
Ben Toogood
9983aea928
Tidying Up
2020-02-06 09:29:27 +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
Vasiliy Tolstov
a44dc90d45
fix ctx.Done issue #720 ( #1166 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-05 21:13:14 +00:00
Shu xian
12181bd441
fix LevelInfo > LevelWarn ( #1162 )
2020-02-05 18:16:57 +00:00
Ben Toogood
8d44f7226f
Merge branch 'master' of https://github.com/micro/go-micro
2020-02-05 13:59:51 +00:00
ben-toogood
bf747a86f4
Runtime ( #1160 )
...
* Add String to Runtime interface
* Setup Dynamic Runtime Configuration
2020-02-05 13:59:35 +00:00
Lars Lehtonen
4333f00a43
runtime/kubernetes: remove unused constants ( #1159 )
2020-02-04 21:02:05 +00:00
Vasiliy Tolstov
7ab3a31ac4
update micro/cli, tidy mod ( #1156 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-03 23:29:44 +00:00
Ben Toogood
a1d5d6831f
Add String to Runtime interface
2020-02-03 15:56:16 +00:00
ben-toogood
1b9cabd654
Update Micro Auth Protocol Buffer to use V2 ( #1155 )
2020-02-03 08:26:57 +00:00
ben-toogood
d621548120
Auth ( #1147 )
...
Implement the Auth interface, with JWT and service implementations.
* Update Auth Interface
* Define Auth Service Implementation
* Support Service Auth
* Add Auth Service Proto
* Remove erronious files
* Implement Auth Service Package
* Update Auth Interface
* Update Auth Interface. Add Validate, remove Add/Remove roles
* Make Revoke interface more explicit
* Refactor serializing and deserializing service accounts
* Fix srv name & update interface to be more explicit
* Require jwt public key for auth
* Rename Variables (Resource.ID => Resource.Name & ServiceAccount => Account)
* Implement JWT Auth Package
* Remove parent, add ID
* Update auth imports to v2. Add String() to auth interface
2020-02-03 08:16:02 +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
Asim Aslam
079102ea59
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-02-02 19:50:09 +00:00
Asim Aslam
a9d371e727
fatal on command error
2020-02-02 19:49:59 +00:00
Asim Aslam
27efbc8779
Merge pull request #1150 from unistack-org/grpc_race
...
fix map race condition in grpc server
2020-02-01 00:10:46 +00:00
Vasiliy Tolstov
efb59d9709
fix map race condition in grpc server
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-02-01 02:52:53 +03:00
Asim Aslam
003f00b483
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-30 23:24:54 +00:00
Asim Aslam
0be22c98c6
add tracing
2020-01-30 23:24:46 +00:00
Asim Aslam
bafedf1aad
Merge pull request #1149 from alrs/remove-unused-kubernetes-variable
...
runtime/kubernetes: remove unused name variable
2020-01-30 17:30:43 +00:00
Lars Lehtonen
98d55545fd
runtime/kubernetes: remove unused name variable
2020-01-30 09:25:50 -08:00
Asim Aslam
5f6271b044
Merge pull request #1148 from tpam28/master
...
fix test and description
2020-01-30 17:09:41 +00:00
Evgeniy
87753ad289
format results in TestBacloff
2020-01-30 20:08:03 +03:00
Evgeniy
ffb9da0230
fix test and description
2020-01-30 19:43:03 +03:00
Asim Aslam
50ac642666
Merge pull request #1146 from tpam28/master
...
exponentialBackoff was changed from power function to exponential
2020-01-30 14:35:17 +00:00
Evgeniy
f6fcfcb8fc
exponentialBackoff was changed from power function to exponential function
2020-01-30 17:25:07 +03:00
Asim Aslam
21e0932339
Merge pull request #1144 from unistack-org/v2
...
fix import paths for v2 release
2020-01-30 11:46:29 +00:00
Vasiliy Tolstov
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
2b1e0a6fd6
go mod tidy
2020-01-30 10:33:40 +00:00
Asim Aslam
0889b814bb
Merge pull request #1143 from crufter/bump-dep
...
Bump dep to fix platform web using new debug.Stats proto fields
2020-01-30 10:31:12 +00:00
Janos Dobronszki
a648c0d99c
Bump dep to fix platform web using new debug.Stats proto fields
2020-01-30 10:27:21 +00:00
Asim Aslam
a291af59c4
Merge pull request #1142 from micro/tracing
...
Fix null tracer bug
2020-01-30 07:55:58 +00:00
Ben Toogood
d9f12731e1
Fix null tracer bug
2020-01-30 07:53:31 +00:00
Asim Aslam
4a838a8210
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-29 23:14:16 +00:00
Asim Aslam
5969cc358e
nats-e => eats
2020-01-29 23:14:05 +00:00
Asim Aslam
9f1a7e1139
Merge pull request #1127 from Allenxuxu/master
...
handle Loader.Load return value error
2020-01-29 22:44:29 +00:00
Asim Aslam
dc257f5066
update to fix tracer
2020-01-29 22:43:40 +00:00
Asim Aslam
49b86c56e3
go fmt
2020-01-29 22:40:43 +00:00
Asim Aslam
1be8258721
fix initialisation
2020-01-29 22:39:31 +00:00
Asim Aslam
b2980aecb7
fix debug handler in proxy
2020-01-29 22:31:57 +00:00
Asim Aslam
de3c3b27b2
Merge pull request #1140 from micro/tracing
...
Tracing by Ben Toogood
2020-01-29 22:28:49 +00:00
Micro
a09eea8d4d
Update the Debug Handler to use the servers tracer
2020-01-29 16:05:58 +00:00
Micro
62c067adcd
Refactor debug/trace ready for Jaeger
2020-01-29 15:45:11 +00:00
Asim Aslam
59f6ca5564
Merge pull request #1139 from alrs/prune-unused-config-reader-func
...
config/reader/json: remove unused newValue()
2020-01-28 19:50:03 +00:00
Lars Lehtonen
895aa896bc
config/reader/json: remove unused newValue()
2020-01-28 11:38:55 -08:00
Asim Aslam
74762edc42
Merge pull request #1138 from printfcoder/master
...
cockroach store supports URL connection string
2020-01-28 17:59:49 +00:00
shu xian
101017a29c
cockroach supports URL connection string
2020-01-29 00:47:41 +08:00
Shu xian
c725b4c797
Merge pull request #3 from micro/master
...
merge
2020-01-29 00:45:27 +08:00
Asim Aslam
1108cc5e91
Merge pull request #1136 from unistack-org/flags
...
update micro/cli to urfave/cli/v2 and fix go-micro
2020-01-26 19:12:06 +00:00
Asim Aslam
6a9f5fac61
fire send in a go routine to prevent blocking other requests
2020-01-25 23:16:00 +00:00
Vasiliy Tolstov
e6a34bcbe7
update micro/cli to urfave/cli/v2 and fix go-micro
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-01-25 15:57:08 +03:00
Asim Aslam
1d00f2f771
add trace handler
2020-01-24 22:02:35 +00:00
Asim Aslam
4a6570a772
trace wrapper
2020-01-24 21:58:29 +00:00
Asim Aslam
a997a86e49
add trace context
2020-01-24 21:44:48 +00:00
Asim Aslam
2d28ff72d7
add trace
2020-01-24 21:32:07 +00:00
Asim Aslam
2b1844971c
go fmt
2020-01-24 21:31:57 +00:00
Asim Aslam
49cc022ca2
add trace to handler
2020-01-24 21:29:29 +00:00
Asim Aslam
8d2dc8a822
trace Read endpoint
2020-01-24 21:24:51 +00:00
Asim Aslam
eeb6944ce5
Merge pull request #1133 from alrs/drop-unused-broker-code
...
broker: drop unused registryKey variable
2020-01-23 21:57:58 +00:00
Lars Lehtonen
add78f2967
broker: drop unused registryKey variable
2020-01-23 12:51:57 -08:00
Shu xian
bd6a5af2b5
Merge pull request #2 from micro/master
...
merge
2020-01-23 22:17:54 +08:00
Asim Aslam
ae08e9c106
check if event is nil
2020-01-23 12:41:22 +00:00
Asim Aslam
77c2a021da
Add event id to router events
2020-01-23 11:44:06 +00:00
Asim Aslam
1c19678d04
Update proto Service => Config
2020-01-23 11:37:54 +00:00
Asim Aslam
6d636b7ab3
whoa bad commit, bad asim
2020-01-22 17:07:56 +00:00
Asim Aslam
009c598049
Change version to latest
2020-01-22 17:03:38 +00:00
Asim Aslam
5cceb00df2
Merge pull request #1131 from micro/router-refactor
...
refactor and cleanup some router code
2020-01-22 16:54:20 +00:00
Asim Aslam
3e24276eb1
fix break
2020-01-22 16:44:34 +00:00
Asim Aslam
29c1076950
refactor and cleanup some router code
2020-01-22 16:33:31 +00:00
Asim Aslam
8dbacb34f8
Merge pull request #1118 from printfcoder/master
...
add mucp for config/source
2020-01-21 22:35:35 +00:00
Asim Aslam
8b306780ee
Merge pull request #1130 from micro/net-noloop
...
avoid connecting to self
2020-01-21 15:05:33 +00:00
Asim Aslam
9f7d374691
avoid connecting to self
2020-01-21 12:36:05 +00:00
Asim Aslam
a18e53f028
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-20 21:31:16 +00:00
Asim Aslam
2208839027
Merge pull request #1129 from alrs/remove-unused-server-var
...
server: remove unused invalidRequest
2020-01-20 18:24:42 +00:00
Lars Lehtonen
7a17a221ff
server: remove unused invalidRequest
2020-01-20 10:09:27 -08:00
Shu xian
8e1ff80b9e
Merge pull request #1 from micro/master
...
merge
2020-01-20 20:08:21 +08:00
shu xian
94bb0f4c08
watch supports path
2020-01-20 18:31:18 +08:00
Allenxuxu
dbe209ebe4
Merge branch 'master' of https://github.com/micro/go-micro
2020-01-20 08:37:34 +08:00
Asim Aslam
fa0d884cfe
fix bad import
2020-01-19 23:31:09 +00:00
Asim Aslam
ed2bd68d28
fix break in router service
2020-01-19 23:22:41 +00:00
Asim Aslam
97928e88f8
stop watcher
2020-01-19 23:15:57 +00:00
Asim Aslam
04cf86070c
close stream
2020-01-19 22:55:57 +00:00
Asim Aslam
9df19e826e
cancel stream
2020-01-19 22:53:56 +00:00
Asim Aslam
3f3c1919f4
strip certain plugins
2020-01-19 17:56:59 +00:00
Asim Aslam
d918694346
reorganise runtime
2020-01-19 17:47:27 +00:00
Asim Aslam
54fb61bba4
Move proto to service/
2020-01-19 17:31:24 +00:00
Asim Aslam
fac75866d9
Move pool to util
2020-01-19 17:30:49 +00:00
Asim Aslam
a47ff65529
remove mock client
2020-01-19 17:24:22 +00:00
Asim Aslam
093bcedfe7
remove http broker
2020-01-19 17:21:55 +00:00
Asim Aslam
7b6d560bec
Update README.md
2020-01-19 13:55:23 +00:00
Asim Aslam
43aa4e23bd
update readme
2020-01-19 13:51:31 +00:00
Asim Aslam
bdd9ec560b
strip sub comments
2020-01-19 13:47:14 +00:00
Asim Aslam
0c03bf064b
only connect broker if there are subscribers
2020-01-19 13:45:28 +00:00
Asim Aslam
9a8c1b7ab8
update broker
2020-01-19 13:35:23 +00:00
Asim Aslam
e1ca40c1fc
go fmt
2020-01-19 13:32:30 +00:00
Asim Aslam
e75b99f89c
go fmt
2020-01-19 13:32:24 +00:00
Allenxuxu
ee7304a795
NewConfig return value error
2020-01-19 16:42:05 +08:00
Allenxuxu
a82fd19209
handle Loader.Load return value error
2020-01-19 16:31:02 +08:00
Asim Aslam
1983d607f3
set nats-e
2020-01-19 01:47:30 +00:00
Asim Aslam
10093a0ea2
set to nats-e
2020-01-19 01:29:00 +00:00
Asim Aslam
fc08a9146c
Add broker comments on server subscribe
2020-01-19 01:16:36 +00:00
Asim Aslam
cafd280718
Default to grpc in registry service for now
2020-01-19 01:13:14 +00:00
Asim Aslam
11b104677a
Shift embedded nats to the default
2020-01-19 00:55:01 +00:00
Asim Aslam
105596a0e5
use mucp server
2020-01-18 20:48:08 +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
bdf1d20f4e
extract an ip that can be advertised in embedded nats
2020-01-18 15:39:26 +00:00
shu xian
8d6f82707a
update to standard name convention
2020-01-18 23:16:23 +08:00
Asim Aslam
058fd8adbf
trace 1
2020-01-18 10:20:46 +00:00
Asim Aslam
13d1d2fa08
hard stop if graceful stop fails after 1 second
2020-01-18 10:18:23 +00:00
Asim Aslam
e666d0b807
add missing commit
2020-01-18 02:28:44 +00:00
Asim Aslam
39d7938405
Extract k8s run error
2020-01-18 02:13:24 +00:00
Asim Aslam
65df711b01
move nats local logic
2020-01-18 01:29:53 +00:00
Asim Aslam
fd6eb23307
do not wait to stop
2020-01-18 00:58:27 +00:00
Asim Aslam
fb3927fb8c
Merge pull request #1126 from milosgajdos83/metric-update
...
Update route metric when receiving Sync routes
2020-01-17 18:29:55 +00:00
Milos Gajdos
891af703be
Update route metric when receiving Sync routes
2020-01-17 18:24:36 +00:00
Asim Aslam
474472eedd
Merge pull request #1124 from milosgajdos83/flush-advert-query
...
Use the same logic for advertising routes in Router and Network
2020-01-17 16:49:11 +00:00
Milos Gajdos
23d65145e6
Use the same logic for advertising routes in Router and Network
...
router.Query() allows to query the routes with given router.Strategy.
It uses the same logic as was implemented in flushRoutes but the code
was never updated. This way we are consistent across both router and
network packages.
2020-01-17 16:25:18 +00:00
shu xian
9ea4919b9b
rename mucp source directory to service
2020-01-17 23:53:33 +08:00
Asim Aslam
f78e30770e
Merge pull request #1123 from milosgajdos83/sync-metric
...
Update route metric before sending the Sync message
2020-01-17 15:44:49 +00:00
Milos Gajdos
bf9f319cdf
Update route metric before sending the Sync message
2020-01-17 15:38:28 +00:00
shu xian
ad28b72dd3
rename mucpSource to service
2020-01-17 23:27:41 +08:00
Asim Aslam
8425ae77f8
Merge pull request #1122 from micro/blocking
...
don't block forever
2020-01-17 15:24:03 +00:00
Asim Aslam
d7b9b2713b
don't block forever
2020-01-17 15:23:10 +00:00
Asim Aslam
be788415ad
minor runtime fixes
2020-01-17 14:14:47 +00:00
shu xian
a03791c581
set DefaultClient
2020-01-17 21:32:00 +08:00
Asim Aslam
ee922a3da6
Merge pull request #1121 from milosgajdos83/no-routes-found
...
Continue processing Sync if no routes were returned from router Query
2020-01-17 13:05:47 +00:00
Milos Gajdos
624f1c1980
Continue processing Sync if no routes were returned from router Query
2020-01-17 12:58:13 +00:00
Milos Gajdos
607a226e34
Updated debug logs to make them less verbose
2020-01-17 12:14:56 +00:00
Asim Aslam
bac1bbfd97
Merge pull request #1120 from milosgajdos83/remove-solicit
...
Remove Solicitation from the network
2020-01-16 20:02:05 +00:00
Milos Gajdos
7f9b3b5556
Remove Solicitation from the network
...
Instead, when a new peer is discovered it is sent a sync message i.e. we
do the full sync when discovering peers
2020-01-16 19:43:10 +00:00
Asim Aslam
ba12513199
Merge pull request #1119 from milosgajdos83/sync-best-routes-only
...
Send only best routes via Sync. Only apply best routes.
2020-01-16 18:17:26 +00:00
Milos Gajdos
8fcfbc0d20
Strip unnecessary continue statement
2020-01-16 17:33:53 +00:00
Milos Gajdos
472186c1be
Code consistency. Small bug fix.
2020-01-16 17:04:04 +00:00
Milos Gajdos
60c05bd899
Find the best routes in the routes we would advertise based on Strategy
2020-01-16 16:53:39 +00:00
Milos Gajdos
793e6013e5
Advertise routes with configured strategy. Simplify Sync apply logic
2020-01-16 16:42:23 +00:00
shu xian
071ab7aede
add mucp for config/source
2020-01-17 00:10:15 +08:00
Milos Gajdos
eda8b00f84
Send only best routes via Sync. Only apply best routes.
2020-01-16 16:08:49 +00:00
Asim Aslam
eac2ab3c28
Merge pull request #1117 from micro/scheduler
...
Switch notifier to scheduler
2020-01-16 13:41:13 +00:00
Asim Aslam
76fba34c2f
Merge pull request #1116 from milosgajdos83/query-strategy
...
QueryStrategy to allow querying routes based on Advertising Strategy
2020-01-16 13:39:39 +00:00
Asim Aslam
491a42d352
Switch notifier to scheduler
2020-01-16 13:34:04 +00:00
Milos Gajdos
5e85194a13
QueryStrategy to allow querying routes based on Advertising Strategy
2020-01-16 12:48:36 +00:00
Asim Aslam
689ae7cfc7
Storing tunnel.Session rather than transport.Client
2020-01-16 00:28:58 +00:00
Asim Aslam
19dbd77402
fix net masking in listed routes
2020-01-16 00:12:38 +00:00
Asim Aslam
b194b3adc9
Merge pull request #1115 from micro/net-mask
...
mask the route before sending
2020-01-15 23:13:53 +00:00
Asim Aslam
33a9b3bc17
mask the route before sending
2020-01-15 23:06:58 +00:00
Asim Aslam
6562154573
Fix the next panic
2020-01-15 21:38:37 +00:00
Asim Aslam
b32ebddf85
update nlopes/slack dep
2020-01-15 21:22:07 +00:00
Asim Aslam
b3e3dac975
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-15 21:02:58 +00:00
Asim Aslam
f20e4daa60
fix rand panic
2020-01-15 21:02:53 +00:00
Asim Aslam
f67d87e99d
Merge pull request #1114 from milosgajdos83/network-backward-compatibility
...
Fixed bug:m network.proto backwards compatibility unmarshal
2020-01-15 19:57:57 +00:00
Milos Gajdos
36928b716c
Fixed bug:m network.proto backwards compatibility unmarshal
2020-01-15 19:45:43 +00:00
Asim Aslam
7c7b0ced5f
Merge pull request #1104 from milosgajdos83/network-hackery
...
[WIP] Network hackery
2020-01-14 20:28:32 +00:00
Milos Gajdos
c67ef7e017
Bug fix: skip sending sync message if the peer is not in our graph
2020-01-14 19:37:50 +00:00
Milos Gajdos
dcd925f1e5
Code cleanup; Indentation.
2020-01-14 18:48:42 +00:00
Milos Gajdos
0ea56a5ffe
Fixed tests
2020-01-14 18:22:58 +00:00
Milos Gajdos
821fda41ae
Added Status method to network.Node fixed random segfaults.
2020-01-14 18:12:36 +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
Asim Aslam
b699d969e4
if the address is produced by a default route don't hash it ( #1108 )
2020-01-14 11:20:13 +00:00
Milos Gajdos
994d371ff1
Removed redundant comments. Add proper PruneStalePeers test.
2020-01-14 10:49:34 +00:00
Milos Gajdos
a91dad04ee
Increment node error count and prune when Max limit is hit
2020-01-13 22:22:12 +00:00
Milos Gajdos
b4261e8cf9
Updated log and comments
2020-01-13 20:14:30 +00:00
Milos Gajdos
efcac3d009
Define tunnel errors
2020-01-13 20:14:30 +00:00
Milos Gajdos
770c7686ba
Fix nasty bug when graph action may not have been executed in some
...
branches
2020-01-13 20:14:30 +00:00
Milos Gajdos
11904e1137
Regular sync with network every 5 minutes. Apply routes before peering.
2020-01-13 20:14:29 +00:00
Milos Gajdos
1e009e52dd
Avoid having the same log statements in initNodes and resolveNodes
2020-01-13 20:14:29 +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
Milos Gajdos
0a4bd02503
Add RefreshSync method for Sync bookkeeping
2020-01-13 20:14:29 +00:00
Milos Gajdos
63edfaa852
Added Sync message
...
Sync message will be sent between peers when a new node connects/joins
the network
2020-01-13 20:14:29 +00:00
Milos Gajdos
802cc8239a
Send solicit message properly. Updated comments.
2020-01-13 20:14:29 +00:00
Matthew Costa
75b1a62af3
Replace service prefix with FQDN style prefix ( #1107 )
...
* Replace service prefix with FQDN style prefix
According to the k8s documentation, the label and annotation prefixes should be in the format of a FQDN, with dot separated labels of no more than 63 characters. The current label and annotation paramteres are rejected by the k8s api, most likely because they have two forward slashes in them.
* Use go.micro as service and annotation prefix
2020-01-12 14:37:12 +00:00
Maarten Bezemer
50b20413d3
RPC stream client/server mutex fix ( #884 )
...
* Unlock RPC client while actually receiving a message
As receiving a message might block for a long time, unblocking the client allows to let it send messages in the meanwhile without using 'tricks'
* Unlock RPC server while actually receiving a message
As receiving a message might block for a long time, unblocking the client allows to let it send messages in the meanwhile without using 'tricks'
* Protect Close() against race conditions
* Concurrency and Sequence tests
2020-01-12 09:13:14 +00:00
Shu xian
fa5b3ee9d9
config/reader.Values add Set for specific path merge ( #1099 )
...
* add Set for specific path merge
* add Set
* add Del
2020-01-11 20:50:09 +00:00
Asim Aslam
f50a50eeb3
go fmt
2020-01-10 21:54:36 +00:00
Asim Aslam
e1e6199743
normalise runtime service status
2020-01-10 21:54:28 +00:00
Asim Aslam
61dd2b8489
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-10 19:13:59 +00:00
Asim Aslam
6ca298c61d
set default store, fix store options bug, add String method
2020-01-10 19:13:55 +00:00
Vasiliy Tolstov
f4fb923fb2
pass additional context for broker subscribe ( #1105 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2020-01-10 15:04:15 +00:00
shikbupt
32a2005f6d
add option for web service signal handler ( #1091 )
2020-01-10 14:25:28 +00:00
Asim Aslam
37d1139a57
ensure we close the grpc stream ( #1098 )
...
* ensure we close the grpc stream
* use g.Close
* use closed bool flag for checking connection close
2020-01-09 17:00:14 +00:00
Asim Aslam
a90a74c9e2
Change the store interface to remove variadic args ( #1095 )
2020-01-08 22:23:14 +00:00
Milos Gajdos
78aed5beed
Fixed tunnel race conditions. ( #1094 )
2020-01-08 14:48:38 +00:00
Milos Gajdos
59fccb82ec
Updated comments. Tiny cleanup changes. ( #1093 )
2020-01-08 13:18:11 +00:00
Asim Aslam
048065fe96
support ability to set store, address and namespace via flags and env vars ( #1092 )
2020-01-08 12:11:31 +00:00
Asim Aslam
0b8ff3a8bb
fix grpc json streaming by setting content sub type ( #1089 )
2020-01-07 18:37:34 +00:00
Asim Aslam
1892bd05a5
only add api endpoint metadata if it exists ( #1087 )
2020-01-06 22:22:36 +00:00
Asim Aslam
be6e8a7c78
add store to defaults ( #1086 )
2020-01-06 17:44:32 +00:00
Asim Aslam
df9055f69c
continue to process messages even after the connection is closed
2020-01-03 20:43:53 +00:00
Asim Aslam
649dd235c3
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-03 19:46:24 +00:00
Asim Aslam
1af82df8b1
Check link is grpc
2020-01-03 19:46:14 +00:00
Eagle Wu
7098e59b5c
remove ignore error in method publish ( #1075 )
2020-01-03 17:24:19 +00:00
Shu xian
31362bc331
prevent resource leak ( #1080 )
2020-01-03 13:31:47 +00:00
Asim Aslam
4e2339749c
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-01-02 21:19:50 +00:00
Asim Aslam
9cecf2e097
make grpc proxy streaming work
2020-01-02 21:11:25 +00:00
Lars Lehtonen
fe9c68238f
runtime/kubernetes: remove unused name variable ( #1078 )
2020-01-02 20:42:46 +00:00
Asim Aslam
225b17559b
fix log streaming
2020-01-02 18:23:43 +00:00
Asim Aslam
e697912ee5
don't panic on nil
2020-01-01 21:56:29 +00:00
Asim Aslam
6358b9277d
don't write anything if theres no data
2019-12-31 22:58:14 +00:00
Asim Aslam
45c986c5f1
don't marshal frame values
2019-12-31 21:36:22 +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
60ea537bbc
upper case the metadata
2019-12-31 13:37:29 +00:00
Asim Aslam
488dc31743
log when starting the service
2019-12-31 12:07:52 +00:00
Asim Aslam
b6915f0898
set grpc by default ( #1070 )
2019-12-30 18:33:21 +00:00
Asim Aslam
04dfe4e867
fix breaking test
2019-12-30 17:39:02 +00:00
Asim Aslam
d8fe030a4b
go fmt
2019-12-30 17:29:57 +00:00
Asim Aslam
f40d4578d5
go fmt
2019-12-30 17:29:45 +00:00
Asim Aslam
e0078bbcd5
Remove use of config/cmd in api
2019-12-30 17:29:20 +00:00
Asim Aslam
c145f355dd
Moving to gRPC by default ( #1069 )
...
* Step 1
* Fix the test panics
2019-12-29 21:07:55 +00:00
Vasiliy Tolstov
943445270f
fix registry check issue ( #1067 )
...
fix #1066
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-28 11:11:46 +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
jamsonzan
22aa7d14b3
support streams pool for grpc ( #1062 )
...
* Update grpc_pool.go
* Update options.go
* Update grpc.go
* Update grpc_pool_test.go
* streams pool for grpc
* use busy list to speed up allocate while pool is very busy
* fix idle bug
2019-12-27 12:25:58 +00:00
Eagle Wu
a09b6729cc
Fix missing recover while occur panic in handler ( #1063 )
2019-12-27 10:53:11 +00:00
Asim Aslam
2fe64001c0
Start runtime services inline
2019-12-24 17:51:30 +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
Asim Aslam
81e20160f5
reorder
2019-12-23 08:49:53 +00:00
Asim Aslam
ef95b28e3d
add Write method to config source
2019-12-23 08:42:57 +00:00
shikbupt
1781542964
fix etcd LogConfig bug ( #1056 )
2019-12-23 07:29:13 +00:00
Asim Aslam
45208992b5
NewLog
2019-12-20 23:36:16 +00:00
Asim Aslam
847a01df82
Cleanup k8s logs
2019-12-20 23:34:08 +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
ae12fd1021
update crap logging
2019-12-19 18:25:22 +00:00
Asim Aslam
95ae2688a2
add formatters
2019-12-19 12:29:03 +00:00
Asim Aslam
2bcfb85613
Add log Format option
2019-12-19 12:20:33 +00:00
Asim Aslam
d52a111735
add requests/errors to stats
2019-12-18 18:36:42 +00:00
Asim Aslam
d4bec24eb7
Add os log buffer
2019-12-18 17:06:29 +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
a82af19d43
strip newline
2019-12-18 15:19:20 +00:00
Asim Aslam
5d7254e79a
fix the os logger
2019-12-18 15:06:25 +00:00
Asim Aslam
7c21a1b92a
go fmt
2019-12-18 15:06:02 +00:00
Asim Aslam
587f64a87a
Merge pull request #1051 from micro/event
...
publisher => event
2019-12-18 15:04:38 +00:00
Asim Aslam
cb9c4c3aef
publisher => event
2019-12-17 23:05:46 +00:00
Asim Aslam
dda96cb87e
Merge pull request #976 from micro/auth
...
First interface for auth
2019-12-17 21:38:11 +00:00
Asim Aslam
ebae497a72
use service rather than resource
2019-12-17 21:37:20 +00:00
Asim Aslam
515014fbeb
update with resource
2019-12-17 21:27:05 +00:00
Asim Aslam
e9efcbe8dc
strip logger
2019-12-17 18:34:21 +00:00
Asim Aslam
5a52593e66
go fmt
2019-12-17 18:24:00 +00:00
Asim Aslam
c61e12d5ee
add event proto for runtiem
2019-12-17 18:17:32 +00:00
Asim Aslam
c2d59c1f4d
Move logger
2019-12-17 18:16:45 +00:00
Jake Sanders
812fe9e640
Merge pull request #1049 from micro/kubernetes-logging
...
Kubernetes logging
2019-12-17 17:44:24 +00:00
Jake Sanders
f95bccce84
Use UTC in tests
2019-12-17 17:36:01 +00:00
Jake Sanders
81e7edd666
Adhere to new interfaces
2019-12-17 17:24:01 +00:00
Asim Aslam
46fd205eda
rename files
2019-12-17 17:08:38 +00:00
Jake Sanders
c2b307e5bb
Merge branch master of https://github.com/micro/go-micro into kubernetes-logging
2019-12-17 17:08:31 +00:00
Jake Sanders
b7ac62f7d2
Merge branch 'master' of https://github.com/micro/go-micro into kubernetes-logging
2019-12-17 17:06:07 +00:00
Asim Aslam
50d5c6402b
Merge pull request #1048 from micro/logging
...
Move stream to interface
2019-12-17 17:05:13 +00:00
Asim Aslam
d2a3fd0b04
Move stream to interface
2019-12-17 16:56:55 +00:00
Jake Sanders
51f4bc6d56
Add logs to Interface
2019-12-17 16:30:09 +00:00
Jake Sanders
c3607c23e7
Fix after merge
2019-12-17 16:27:17 +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
Asim Aslam
91e057440d
Merge pull request #1047 from micro/decruft-logger
...
Decruft logger
2019-12-17 16:13:20 +00:00
Jake Sanders
53ca742c66
Update the util/kubernetes client to retrieve logs
2019-12-17 16:09:51 +00:00
Asim Aslam
b35dfb1086
fix further breaks
2019-12-17 15:56:49 +00:00
Asim Aslam
d502e2f58a
fix breaks
2019-12-17 15:46:09 +00:00
Asim Aslam
bc30efcf70
Decruft the debug logger interface
2019-12-17 15:38:03 +00:00
Jake Sanders
0415ead504
First commit for Kubernetes logger
2019-12-17 12:11:26 +00:00
Jake Sanders
e95f44d3f8
Move runtime/kubernetes/client to util/kubernetes/client
2019-12-17 11:32:38 +00:00
Asim Aslam
0489ae91e9
Merge pull request #1021 from unistack-org/registry_check
...
add RegisterCheck web server option for internal health checks
2019-12-17 08:49:00 +00:00
Asim Aslam
4e02f444fd
Merge pull request #1024 from unistack-org/server
...
add server Context option to pass own context
2019-12-17 08:48:39 +00:00
Asim Aslam
6027a81f06
Update router comments
2019-12-17 08:28:45 +00:00
Asim Aslam
01f0e70213
add some commented out stuff
2019-12-16 17:37:11 +00:00
Asim Aslam
cb15fadcee
go fmt
2019-12-16 17:36:47 +00:00
Asim Aslam
1c8d15fe4b
Merge pull request #1046 from micro/storefix
...
Fix cockroachdb store implementation
2019-12-16 17:24:53 +00:00
Jake Sanders
55f5937c8b
Remove debug
2019-12-16 17:16:10 +00:00
Jake Sanders
56619f2745
Fix cockroachdb store implemetation
2019-12-16 17:11:13 +00:00
Asim Aslam
0b59e2ce3d
Merge pull request #1028 from Astone-Chou/fix
...
named return value for error defer modify.
2019-12-16 15:39:58 +00:00
Asim Aslam
1ea6390eae
Add proxy string method
2019-12-16 15:18:20 +00:00
Asim Aslam
303adca500
rename postgres to cockroach
2019-12-16 15:09:59 +00:00
Asim Aslam
03700ae6c0
Replace proxy options
2019-12-16 14:55:47 +00:00
Asim Aslam
a1ddfa827e
Merge pull request #1045 from micro/store-options
...
change store options
2019-12-16 14:46:15 +00:00
Asim Aslam
59751c02e6
change store options
2019-12-16 14:38:51 +00:00
Jake Sanders
e8e112144f
Create database should take the name of the database
2019-12-16 14:15:30 +00:00
Asim Aslam
59246e0412
Merge pull request #1044 from micro/store-namespace
...
change use of store namespace/prefix in sql store
2019-12-16 12:20:57 +00:00
Asim Aslam
0131e9468f
change use of store namespace/prefix in sql store
2019-12-16 12:13:18 +00:00
Asim Aslam
d5951f1d7c
Merge pull request #1042 from ZGeomantic/feat-client-mock
...
support ctx as input params, error as output for MockClient.Call
2019-12-15 15:12:17 +00:00
Asim Aslam
f33b562c16
Merge pull request #1043 from jamsonzan/branch0
...
comment
2019-12-15 10:50:52 +00:00
jamsonzan
572fe58314
comment
2019-12-15 15:05:19 +08:00
gemantic
5602b93d7a
support ctx as input params, error as output for MockClient.Call
2019-12-14 10:36:12 +08:00
Asim Aslam
64e438a8d4
Merge pull request #1038 from micro/tun
...
Next level tunnel optimisation
2019-12-13 15:34:03 +00:00
Asim Aslam
b0b6b8fce2
final updates
2019-12-13 15:27:47 +00:00
Asim Aslam
417a05db60
Merge pull request #1039 from xpunch/etcdLogConfig
...
Etcd log config
2019-12-13 09:23:54 +00:00
johnson
11e42aac69
etcd can set log config
...
default log level is info, which will log o log of unused logs
2019-12-13 11:22:05 +08:00
potato
885ba8f905
Merge pull request #6 from micro/master
...
Pull latest go-micro
2019-12-13 11:10:29 +08:00
Asim Aslam
caa74d1b5f
fix build
2019-12-12 23:29:44 +00:00
Asim Aslam
f6b4a9da1c
strip some code
2019-12-12 23:20:31 +00:00
Asim Aslam
74c5102e41
strip a couple things
2019-12-12 21:49:39 +00:00
Asim Aslam
7bd50cd251
fix more broken cruft
2019-12-12 17:10:32 +00:00
Asim Aslam
df728aaddd
remove go routines from tunnel, fire network messages in go routines
2019-12-12 13:34:08 +00:00
Asim Aslam
ae934c19f1
fix tunnel test
2019-12-12 13:04:34 +00:00
Asim Aslam
e260cc4a24
save cruft
2019-12-12 12:27:46 +00:00
Asim Aslam
631faff7b8
Merge pull request #1035 from alrs/fix-grpc-test-goroutines
...
Fix service/grpc Test Goroutines
2019-12-11 16:39:22 +00:00
Lars Lehtonen
fd531349d7
service/grpc: t.Fatal out of TestGRPCTLSService() goroutine
2019-12-11 08:29:23 -08:00
Lars Lehtonen
27bab29e3c
service/grpc: t.Fatal out of TestGRPCService() goroutine
2019-12-11 08:29:14 -08:00
Asim Aslam
27af221fd2
batch metric updates
2019-12-11 15:23:08 +00:00
Asim Aslam
6e28e7a86f
Save current state of the world
2019-12-11 14:37:03 +00:00
Asim Aslam
ff69d46c98
strip some cruft from config/cmd
2019-12-10 18:12:29 +00:00
Asim Aslam
e966944ae5
sort resolved node list in network by lowest priority
2019-12-10 17:57:04 +00:00
Asim Aslam
8da77a3ddc
use fixed port names for runtime k8s
2019-12-10 14:05:05 +00:00
Asim Aslam
8289dbabc4
Merge pull request #1034 from micro/strip-handlers
...
Strip handlers
2019-12-10 11:54:06 +00:00
Asim Aslam
d50f30d743
strip handlers
2019-12-10 11:46:13 +00:00
Asim Aslam
f8533551a4
move debug to trace for network peer refresh
2019-12-10 09:09:24 +00:00
Asim Aslam
7e46ff5d92
strip some more logging down
2019-12-10 09:08:03 +00:00
Asim Aslam
6b1eef5354
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-09 22:56:33 +00:00
Asim Aslam
b29da80539
Move a few things around
2019-12-09 22:56:26 +00:00
Asim Aslam
a725ab2c94
Merge pull request #1032 from jankremlacek/patch-1
...
nlopes/slack dep update to fix broken unmarshal
2019-12-09 21:17:34 +00:00
Jan Kremlacek
1582aa1572
proper go.mod, go.sum
2019-12-09 22:08:57 +01:00
Jan Kremlacek
5352d53346
nlopes/slack dep update to fix broken unmarshal
...
About a month ago Slack introduced the updated structure of RTM messages which resulted in an inability to unmarshal received msg (original issue: https://github.com/nlopes/slack/issues/630 ). It's not an issue of micro itself, but of the github.com/nlopes/slack lib. The fix was already merged into master (https://github.com/nlopes/slack/pull/618 ), but the lib has not been released in any new version.
Thus so I propose to update directly to the commit:
go get github.com/nlopes/slack@d06c2a2b3249b44a9c5dee8485f5a87497beb9ea
The MicroBot does now work now with any Slack client newer than around a month old.
2019-12-09 21:52:28 +01:00
Asim Aslam
7d884eff9d
Merge pull request #1031 from alrs/fix-web-test-goroutines
...
web: fix test goroutines
2019-12-09 18:03:07 +00:00
Lars Lehtonen
c9af88184b
web: fix test goroutine in TestService()
2019-12-09 09:44:14 -08:00
Lars Lehtonen
f25ad35f0a
web: fix test goroutine in TestTLS()
2019-12-09 09:28:42 -08:00
Asim Aslam
55ab44c8be
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-09 09:32:33 +00:00
Asim Aslam
59c1680594
Move Debug to Trace in router
2019-12-09 09:32:17 +00:00
Asim Aslam
b804303aa0
Merge pull request #1029 from Astone-Chou/lint_fix_fix
...
fix tiny error in linting fixes
2019-12-09 07:47:46 +00:00
Astone
55a15ecf12
fix tiny error in linting fixes
2019-12-09 11:18:45 +08:00
Astone
caa1bcf9fe
named return value for error defer modify.
2019-12-09 11:08:21 +08:00
Asim Aslam
e2b2a30668
add net/http/pprof profiler
2019-12-08 20:31:16 +00:00
Asim Aslam
a9be1288d2
Merge pull request #1026 from micro/tun
...
Network & Tunnel refactor
2019-12-08 16:01:46 +00:00
Asim Aslam
679214e598
just return filtered routes
2019-12-08 15:39:45 +00:00
Asim Aslam
6064e1426c
fix some potential go routine leaks
2019-12-08 15:02:54 +00:00
Asim Aslam
d28a868e46
Fix network startup connect
2019-12-08 14:37:17 +00:00
Asim Aslam
398acc67ca
fix broken test
2019-12-08 13:45:24 +00:00
Asim Aslam
ce578800d0
n.initNodes
2019-12-08 12:17:31 +00:00
Asim Aslam
6307d6ba51
further cleanup of tunnel/network
2019-12-08 12:12:20 +00:00
Asim Aslam
283c85d256
done
2019-12-08 00:53:55 +00:00
Asim Aslam
9bd0fb9125
save changes
2019-12-07 23:28:39 +00:00
Asim Aslam
c445aed6b1
Cleanup and speedup network convergence along with direct messaging for connect and solicit
2019-12-07 19:54:29 +00:00
Asim Aslam
1d8c66780e
save working solution
2019-12-06 00:18:40 +00:00
Asim Aslam
219efd27e9
Optimise the multicast to use one session in the tunnel
2019-12-05 23:11:42 +00:00
Asim Aslam
ac9001ac74
advert ttl inline with router table tick
2019-12-05 17:50:32 +00:00
Asim Aslam
2896614595
Merge pull request #1025 from milosgajdos83/router-knobs
...
Changed a few router knobs to avoid storms ⛈
2019-12-05 17:50:02 +00:00
Milos Gajdos
bca12a7003
Changed a few router knobs to avoid storms ⛈
2019-12-05 17:11:17 +00:00
Vasiliy Tolstov
1c5a4c470f
add server Context option to pass own context
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-05 19:37:03 +03:00
Asim Aslam
744b19d625
Merge pull request #1023 from milosgajdos83/dead-code
...
Fixing dead code and go vet moaning
2019-12-05 16:18:13 +00:00
Milos Gajdos
5865e89bed
Fixing dead code and go vet moaning
2019-12-05 16:10:49 +00:00
Asim Aslam
3a10b1cdde
Merge pull request #1022 from milosgajdos83/tunnel-races
...
This PR fixes various tunnel race conditions
2019-12-05 15:59:29 +00:00
Milos Gajdos
5db7514a91
This PR fixes various tunnel race conditions
2019-12-05 15:50:32 +00:00
Vasiliy Tolstov
a957e90ca8
add RegisterCheck web server option for internal health checks
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-05 17:28:11 +03:00
Asim Aslam
18cf025056
Merge pull request #1020 from Allenxuxu/master
...
Avoid excessive memory usage
2019-12-05 11:56:44 +00:00
Allenxuxu
b55b7d6b20
replace map with list
2019-12-05 19:29:48 +08:00
Asim Aslam
26b5d1994a
Merge pull request #1019 from tboerger/no-newlin
...
No newlines at end of log messages
2019-12-05 10:08:16 +00:00
Thomas Boerger
30aec5b872
No newlines at end of log messages
...
Log messages should not end with a new line, this should be entirely
handled by the underlying log library.
Signed-off-by: Thomas Boerger <thomas@webhippie.de >
2019-12-05 10:56:45 +01: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
af3d4e595f
in memory stats buffer
2019-12-05 00:08:46 +00:00
Asim Aslam
40c09eed1c
Logs to Log
2019-12-05 00:01:17 +00:00
Asim Aslam
fe46e7a9e9
Logs to Log
2019-12-04 23:58:29 +00:00
Asim Aslam
78647c7027
add timestamp to stats
2019-12-04 23:51:07 +00:00
Asim Aslam
26755f86b1
Merge pull request #1018 from micro/debug-service
...
Debug service
2019-12-04 14:40:58 +00:00
Asim Aslam
898848795b
tab indent
2019-12-04 12:28:16 +00:00
Asim Aslam
24efbe6a41
Move debug handler to service dir
2019-12-04 12:27:30 +00:00
Asim Aslam
97433f716f
add service name to debug proto
2019-12-04 12:02:44 +00:00
Asim Aslam
5200febaea
add stats debug interface
2019-12-04 11:53:20 +00:00
Vasiliy Tolstov
a1eaf9cc20
linting fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-04 00:22:02 +03:00
Asim Aslam
3f8af8c1e0
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-03 20:32:10 +00:00
Asim Aslam
becaeefcba
Revert. DO NOT peer solicit until we know better
2019-12-03 20:32:02 +00:00
Vasiliy Tolstov
7d5bdcf993
fix pointer dereference in memory registry
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-03 23:05:03 +03:00
Asim Aslam
81a7cf458c
Merge pull request #1013 from unistack-org/linting
...
add golanglint-ci
2019-12-03 16:57:00 +00:00
Asim Aslam
a4ea61334b
Merge pull request #1015 from milosgajdos83/router-race
...
Fix router race condition
2019-12-03 16:55:56 +00:00
Asim Aslam
3fbba9f83d
Merge pull request #1014 from milosgajdos83/memreg-race
...
Fix memory registry race
2019-12-03 16:51:36 +00:00
Milos Gajdos
4a11a4c546
Fix router race condition
2019-12-03 15:22:54 +00:00
Milos Gajdos
265233517e
Fix memory registry race
2019-12-03 14:53:07 +00:00
Vasiliy Tolstov
c581ceb1dc
add golanglint-ci
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-03 16:31:43 +03:00
Asim Aslam
bb1a1358b7
Merge pull request #1012 from Astone-Chou/lint
...
improve code quality
2019-12-03 13:10:04 +00:00
Astone
29fb58db39
improve code quality
2019-12-03 20:59:02 +08:00
Asim Aslam
b6f0164501
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-03 08:11:46 +00:00
Asim Aslam
2c0801fc1c
couple bug fixes in tunnel
2019-12-03 08:11:36 +00:00
Asim Aslam
34c92f4964
Merge pull request #1011 from Astone-Chou/master
...
optimize: a better way for return error
2019-12-03 07:48:21 +00:00
Astone
f9b900b2ca
optimize: a better way for return error
2019-12-03 12:47:29 +08:00
Asim Aslam
b5d65305db
Merge pull request #1009 from unistack-org/panics
...
recover panics
2019-12-02 23:30:17 +00:00
Vasiliy Tolstov
b8e96f45d4
add recovery in case of panics
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-03 02:25:40 +03:00
Vasiliy Tolstov
90f9b0d0c9
initialize client options context if not provided
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-12-03 01:35:59 +03:00
Asim Aslam
972c0989af
Merge pull request #1008 from micro/connect-fast
...
Optimizations to connect fast
2019-12-02 19:09:56 +00:00
Asim Aslam
5f04fd58ab
optimizations to connect fast
2019-12-02 18:48:19 +00:00
Asim Aslam
da04aa8ae8
Switch to AdvertiseLocal by default
2019-12-02 17:36:20 +00:00
Asim Aslam
62bf0df864
Merge pull request #1007 from micro/ultra-hacks
...
ultra hacks to make debug handler work in proxy
2019-12-02 15:11:56 +00: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
795ec509fd
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-12-01 19:43:45 +00:00
Asim Aslam
93d66afe8c
fix that broken logic
2019-12-01 19:43:36 +00:00
Asim Aslam
c840cee404
A variety of fixes to try combat the multicast issue
2019-12-01 19:36:16 +00:00
Milos Gajdos
e48cce6485
Merge pull request #1005 from milosgajdos83/nano-seconds
...
Time resolution change to be in line with debug/handler.Handler
2019-12-01 18:39:59 +00:00
Milos Gajdos
b2ecd93404
Time resolution change to be in line with debug/handler.Handler
2019-12-01 18:33:08 +00:00
Asim Aslam
2928c66624
Merge pull request #1004 from milosgajdos83/debug-logs
...
[WIP] Debug logs
2019-12-01 17:40:40 +00:00
Milos Gajdos
4613a820ca
Small refactoring og logs
...
* log.Write now accepts log.Record
* we stream last 10 records first
* regenerate proto because of the above
2019-12-01 13:16:44 +00:00
Milos Gajdos
ecdadef633
Added hack support for logs streaming cruft
2019-12-01 13:16:44 +00:00
Milos Gajdos
7f1dea72f2
Simplified Logs RPC. Cleaned up code. Added comments.
2019-12-01 13:16:44 +00:00
Milos Gajdos
612f872f76
Server should not close the stream when done
2019-12-01 13:16:44 +00:00
Milos Gajdos
13d2a9ec7a
Register proto handler properly
2019-12-01 13:16:44 +00:00
Milos Gajdos
9fab47ecdb
Added DefaultLog variables
2019-12-01 13:16:44 +00:00
Milos Gajdos
265e8ade05
Embed DebugHandler proto
2019-12-01 13:16:44 +00:00
Milos Gajdos
60e0e81523
Added debug/service to grab the logs from a service
2019-12-01 13:16:43 +00:00
Milos Gajdos
b01357058a
Regenerate proto cruft
2019-12-01 13:16:43 +00:00
Milos Gajdos
7deafbc5ce
Added ReadOptions; Changed proto; Reimplemented Log(er)
2019-12-01 13:16:43 +00:00
Milos Gajdos
9e177be560
Embed logger into debug.Handler
2019-12-01 13:16:43 +00:00
Milos Gajdos
ee9776e7b2
Added debug.Logger interface
2019-12-01 13:16:43 +00:00
Milos Gajdos
3f7f2afc7b
Dont be stupid -- stream does not require pointer.
2019-12-01 13:16:43 +00:00
Milos Gajdos
4e965e4ce5
First commit. Modified proto. Added empty handler method.
2019-12-01 13:16:43 +00:00
Asim Aslam
6f1c30aef5
remove unused value in router
2019-11-30 21:39:03 +00:00
Asim Aslam
00bbb3ac61
revert some protocol changes for now
2019-11-30 21:20:33 +00:00
Asim Aslam
ce1942c578
why didn't we think of this before...single service name for http broker
2019-11-30 21:00:36 +00:00
Asim Aslam
df7169c9f2
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-30 01:16:53 +00:00
Asim Aslam
5e59db4c6d
revert mdns timeout
2019-11-30 01:16:32 +00:00
Asim Aslam
25b3fda25b
Merge pull request #1002 from micro/tun-fix
...
fix bug in the tunnel which causes multicast connections to be closed
2019-11-30 01:16:12 +00:00
Asim Aslam
9678daeafa
fix bug in the tunnel which causes multicast connections to be closed
2019-11-30 01:14:40 +00:00
Asim Aslam
9ed257f151
Merge pull request #1001 from micro/storm
...
Changes for the storm
2019-11-29 17:33:23 +00:00
Asim Aslam
107124e5dc
Changes for the storm
2019-11-29 17:27:29 +00:00
Asim Aslam
ce4acfa892
fix type filtering for k8s runtime
2019-11-29 13:05:18 +00:00
Asim Aslam
6bf4828296
triple the mdns timeout
2019-11-29 13:05:07 +00:00
Asim Aslam
76b4e78a6a
fix command to accept variadic args
2019-11-29 11:55:25 +00:00
Asim Aslam
8b6475b8d4
Merge pull request #1000 from micro/runtime-type
...
Support service types in runtime
2019-11-29 11:46:21 +00:00
Asim Aslam
c3ed83dfba
Support service types in runtime
2019-11-29 11:35:00 +00:00
Asim Aslam
114bc1e18b
Merge pull request #995 from micro/rpc-leak
...
Fix rpc go routine leak
2019-11-27 17:24:19 +00:00
Asim Aslam
af94899b54
Fix rpc go routine leak
2019-11-27 17:12:07 +00:00
Asim Aslam
266b6dbc64
add debug buffer time based access
2019-11-27 13:57:19 +00:00
Asim Aslam
5932dd753c
Merge pull request #981 from unistack-org/subscriber
...
subscriber recovery
2019-11-27 10:28:51 +00:00
Vasiliy Tolstov
86a6328254
subscriber recovery
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-27 13:21:20 +03:00
Asim Aslam
0d33c029a9
Merge pull request #994 from milosgajdos83/validator-regexp
...
Remove validator regexp as its no longer needed.
2019-11-27 08:10:00 +00:00
Milos Gajdos
8ecd2381a4
Remove validator regexp as its no longer needed.
2019-11-26 23:10:45 +00:00
Asim Aslam
7318807dce
Merge pull request #993 from micro/k8s-fixes
...
Add fixes for label selector and skipping things that don't match
2019-11-26 22:32:58 +00:00
Asim Aslam
811275be26
Add fixes for label selector and skipping things that don't match
2019-11-26 22:28:08 +00:00
Asim Aslam
3f3fd38601
Add spec.template.metadata.annotations to the k8s template
2019-11-26 18:14:49 +00:00
Asim Aslam
44dd0b1302
Merge pull request #991 from micro/k8s-update
...
Patch spec template annotations and use event timestmap
2019-11-26 17:38:56 +00:00
Asim Aslam
6475c1f3ad
Patch spec template annotations and use event timestmap
2019-11-26 17:33:41 +00:00
Asim Aslam
deabf0b8c9
fix entry into nil map
2019-11-26 14:56:23 +00:00
Asim Aslam
04ee4b04ad
Merge pull request #990 from micro/buffer
...
Add debug/buffer package as a simple ring buffer
2019-11-26 14:27:39 +00:00
Asim Aslam
2892686c5f
Merge pull request #988 from micro/k8s-update
...
Change the k8s runtime notifier update to get the deployment and upda…
2019-11-26 14:21:42 +00:00
Asim Aslam
8ee31a63f1
Add debug/buffer package as a simple ring buffer
2019-11-26 14:20:45 +00:00
Asim Aslam
4e363da91f
Merge pull request #989 from micro/proto
...
Regenerate the protos
2019-11-26 13:57:49 +00:00
Asim Aslam
8b63df7a98
regenerate the protos
2019-11-26 13:53:33 +00:00
Asim Aslam
b06854b0d5
Change the k8s runtime notifier update to get the deployment and update build
2019-11-26 13:49:52 +00:00
Jake Sanders
39bf71376a
Add some more issue templates ( #987 )
...
* Add some more issue templates
* Update bug_report.md
* Update bug_report.md
2019-11-26 11:48:14 +00:00
Jake Sanders
12d9c5b187
Merge pull request #986 from micro/bug-report-template
...
Create Bug Report Issue Template
2019-11-26 11:25:42 +00:00
Jake Sanders
d2eba3f8f9
Create Bug Report Issue Template
...
To encourage users to provide context with bug reports
2019-11-26 11:17:32 +00:00
Milos Gajdos
19f2f8b161
Merge pull request #982 from xmlking/master
...
go-micro docker now includes unprivileged user
2019-11-26 10:54:18 +00:00
Sumanth Chinthagunta
d41185eb84
go-micro docker now includes unprivileged user
2019-11-25 18:42:24 -08:00
Asim Aslam
c420fa2dec
Merge pull request #979 from milosgajdos83/tunnel-encrypt
...
[WIP] Tunnel encryption
2019-11-25 19:12:24 +00:00
Asim Aslam
db03a564fb
Merge pull request #980 from unistack-org/issue-940
...
grpc client goroutine leak fix
2019-11-25 19:10:34 +00:00
Vasiliy Tolstov
9763820c75
grpc client goroutine leak fix
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-25 22:02:24 +03:00
Milos Gajdos
9095b99f6b
Token has been stripped; Headers are encrypted
2019-11-25 18:56:00 +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
252667398e
Update the runtime for k8s name formatting and move Get to Read endpoint ( #978 )
...
* Update the runtime for k8s name formatting and move Get to Read endpoint
* strip regex validation
2019-11-25 16:31:14 +00:00
Milos Gajdos
f82c267d81
Encrypt session communication
2019-11-25 15:37:38 +00:00
Milos Gajdos
61fe552ac4
First commit: Outline of tunnel encryption code
2019-11-25 14:58:12 +00:00
Asim Aslam
7013e7467f
Undefined time
2019-11-25 09:33:30 +00:00
Asim Aslam
dbc537007d
First interface for auth
2019-11-25 09:30:26 +00:00
Asim Aslam
95045be83d
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-23 22:50:45 +00:00
Asim Aslam
52ccd900c7
reorder service struct fields
2019-11-23 22:50:13 +00:00
罗泽轩
64a251d69a
improve the syncMap.Iterate test to make it 100% reproducible ( #970 )
...
* improve the syncMap.Iterate test to make it 100% reproducible
* rename store/mocks/Store.go
* rename mocks/store to mock/store
2019-11-23 14:13:17 +00:00
Asim Aslam
cae4148594
Fix platform specific os/process build
2019-11-23 08:25:56 +00:00
Milos Gajdos
38e29c5101
Svc metadata ( #972 )
...
* Added service metadata
* Added metadata to runtime service
* Add Annotations metadata to service metadata
* Add micro/micro as default service owners
* Update runtime/kubernetes/client/kubernetes.go
Change comment
Co-Authored-By: Jake Sanders <i@am.so-aweso.me >
2019-11-22 17:10:00 +00:00
Milos Gajdos
8dc3fb964e
Pass source of service to Deployment API; render templates properly ( #969 )
...
* Pass source of service to Deployment API; render templates properly
* Enable Go modules by default. Honor runtime.Service.Exec
* Make sure you remove go.mod and go.sum
2019-11-21 17:31:13 +00:00
Asim Aslam
212144d658
fix windows compilation error
2019-11-21 11:19:52 +00:00
Milos Gajdos
11d81221cc
Runtime service implementation ( #965 )
2019-11-20 14:54:42 +00:00
Milos Gajdos
55252cbc32
Fix the router test; get rid of time dependency ( #964 )
2019-11-20 14:53:12 +00:00
Asim Aslam
c87a58db0a
add ability to set web icon
2019-11-20 12:43:43 +00:00
Vasiliy Tolstov
49d73faa5f
return error to caller on grpc server request processing ( #962 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-20 10:28:30 +00:00
Vasiliy Tolstov
da6c1be607
dont panic on missing headers in broker event ( #963 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-20 07:55:47 +00:00
Milos Gajdos
94d409b180
Change DefaultImage to micro/go-micro
2019-11-19 20:49:01 +00:00
Milos Gajdos
d6e97c5970
Service.Exec is a slice of strings ( #960 )
2019-11-19 19:36:29 +00:00
Asim Aslam
64d5a528ca
fix broken build
2019-11-19 16:55:33 +00:00
Milos Gajdos
538d3752f9
Added Dockerfile for go-micro ( #959 )
2019-11-19 16:50:31 +00:00
Asim Aslam
fb5b358ae2
fix mdns test
2019-11-19 16:50:16 +00:00
Milos Gajdos
6a0082741c
Packager is now builder ( #958 )
2019-11-19 16:09:43 +00:00
Shu xian
5744050943
api event supports for GET url params ( #956 )
2019-11-18 16:37:45 +00:00
Asim Aslam
168cc06827
increase timeout on travis
2019-11-18 12:58:06 +00:00
Asim Aslam
fa01cadc35
lower the mdns timeout to 10ms ( #955 )
2019-11-18 12:50:51 +00:00
Asim Aslam
342c29de7d
fix TestMemoryRegistryTTLConcurrent test
2019-11-16 21:13:06 +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
Erik Hollensbe
a1c6cdf193
Now specify HandleSignal as an option to toggle signal handling. ( #948 )
...
Signed-off-by: Erik Hollensbe <github@hollensbe.org >
2019-11-16 11:13:34 +00:00
Erik Hollensbe
bec13a45cd
Attempt to fix the timing error in the memory concurrency test ( #952 )
...
Only shows in travis
Signed-off-by: Erik Hollensbe <github@hollensbe.org >
2019-11-16 11:11:13 +00:00
Erik Hollensbe
4107733453
Memory registry from #801 with additional tweaks ( #951 )
...
* PoC: memory registry using maps instead of slice madness
* Updated proto and handlers. Fixed tests across codebase.
* Implemented ttl pruning for memory registry
* Added extensive memory registry tests
* Squased a bunch of bugs
* Proto indent; memory.Registry.String() returns "memory"
* Write a test to prove memory registry TTLs are busted
Signed-off-by: Erik Hollensbe <github@hollensbe.org >
* Additional memory testing and fixups:
* DefaultTTL removed
* When TTL == 0, it is automatically removed from expiry conditions
* Additional improvements to new tests
Signed-off-by: Erik Hollensbe <github@hollensbe.org >
2019-11-16 10:55:11 +00:00
Milos Gajdos
97c1300f53
[WIP] Micro Runtime ( #947 )
...
* Add Get() and GetOptions.
* Removed watcher. Outline of client. YAML templates
* Added default service and deployment templates and types
* Added API tests and cleaned up errors.
* Small refactoring. Template package is no more.
* Ripped out existing code in preparation to small rework
* Reshuffled the source code to make it organized better
* Create service and deployment in kubernetes runtime
* Major cleanup and refactoring of Kubernetes runtime
* Service now handles low level K8s API calls across both K8s deployment
an service API objects
* Runtime has a task queue that serves for queueing runtime action
requests
* General refactoring
* No need for Lock in k8s service
* Added kubernetes runtime env var to default deployment
* Enable running different versions of the same service
* Can't delete services through labels
* Proto cruft. Added runtime.CreateOptions implementation in proto
* Removed proxy service from default env variables
* Make service name mandatory param to Get method
* Get Delete changes from https://github.com/micro/go-micro/pull/945
* Replaced template files with global variables
* Validate service names before sending K8s API request
* Refactored Kubernetes API client. Fixed typos.
* Added client.Resource to make API resources more explicit in code
2019-11-15 13:41:40 +00:00
mirwaisx
0af8be35bb
-bugfix #889 set body corretly in case of missing content-type ( #950 )
2019-11-15 13:03:45 +00:00
Asim Aslam
a91b3f3e8b
windows specific os tag
2019-11-15 08:20:05 +00:00
Asim Aslam
383658edf2
Fix a runtime deadlock as well as fixing some graceful exiting issues ( #945 )
2019-11-14 14:26:21 +00:00
Asim Aslam
16754a7477
Set theme jekyll-theme-architect
2019-11-14 11:55:07 +00:00
Asim Aslam
58b25d7241
Update CNAME
2019-11-14 11:54:16 +00:00
Asim Aslam
1c7d44282e
Set theme jekyll-theme-minimal
2019-11-14 11:17:02 +00:00
Asim Aslam
8e9eef794f
Set theme jekyll-theme-minimal
2019-11-14 11:15:50 +00:00
Asim Aslam
920c026f14
Create CNAME
2019-11-14 11:01:36 +00:00
Asim Aslam
946c76cb03
Delete CNAME
2019-11-14 11:01:27 +00:00
Asim Aslam
43d11a9b8d
Create CNAME
2019-11-14 10:50:51 +00:00
Asim Aslam
9f481542f3
Fix a codec race by locking the buffers. Include a buffer pool for perf. ( #941 )
...
* Fix a codec race by locking the buffers. Include a buffer pool for perf.
* Read Lock on buffer Read
2019-11-13 11:05:53 +00:00
Asim Aslam
cffa5b6b50
Make use of cloudflare 1.0.0.1 by default to resolve addresses
2019-11-12 15:46:30 +00:00
Asim Aslam
8867539d78
Update FUNDING.yml
2019-11-12 12:35:09 +00:00
Asim Aslam
671408b3a5
Create FUNDING.yml
2019-11-12 12:27:51 +00:00
Lars Lehtonen
bdb62e8ed1
store/postgresql: fix dropped error ( #938 )
2019-11-12 07:54:33 +00:00
Asim Aslam
72522a869a
fix endpoint extractor panic
2019-11-11 17:37:48 +00:00
Asim Aslam
fd5c29addc
Add the ability to only advertise local routes or don't advertise at all ( #932 )
...
* Add the ability to only advertise local routes or don't advertise at all
* Reorder processing to shortcircuit no advertising
2019-11-11 15:28:37 +00:00
Asim Aslam
65b1283459
add metadata.Get(context, key) as short hand
2019-11-11 09:13:02 +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
Till Knuesting
5ae3e179b9
preallocated slices ( #934 )
2019-11-11 00:03:51 +00:00
Vasiliy Tolstov
c696a859be
fix data race for server Wait option ( #931 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-09 21:52:41 +00:00
Asim Aslam
174b01ca29
update link in readme
2019-11-09 16:20:54 +00:00
Asim Aslam
c433de80cd
Update go mod
2019-11-09 15:44:52 +00:00
Asim Aslam
f2b4c07a00
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-09 15:37:54 +00:00
Asim Aslam
929ffdcc42
Update readme
2019-11-09 15:37:30 +00:00
Lars Lehtonen
5aa28dfb0d
store/cloudflare: fix dropped error ( #930 )
2019-11-09 15:18:51 +00:00
Asim Aslam
a9e8fc6039
Don't set stream unless its true
2019-11-09 10:32:52 +00:00
Milos Gajdos
0b1e6d7eaf
Simplified k8s API Body watcher code and test. ( #923 )
2019-11-08 15:57:32 +00:00
Milos Gajdos
1ffa289d39
Make build timestamp parsing errors clearer ( #929 )
2019-11-08 15:57:07 +00:00
Milos Gajdos
68419cc024
Patch deployment spec metadata ( #928 )
2019-11-08 14:12:03 +00:00
Vasiliy Tolstov
8227206208
use service id in profile file name ( #925 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org >
2019-11-08 09:11:55 +00:00
Milos Gajdos
6f28852e1b
K8s list deployments ( #921 )
...
* Outline of ListDeployments method
* Added implementation of DeploymentList
2019-11-07 07:44:57 +00:00
Asim Aslam
0e3550229b
update readme
2019-11-06 22:04:02 +00:00
Asim Aslam
f9400ba713
update readme
2019-11-06 22:03:35 +00:00
Asim Aslam
ce080d76c6
add debug/profile package ( #920 )
...
* add debug/profile package
* set service+version for profile
2019-11-06 19:36:04 +00:00
Asim Aslam
254045e9f3
Remove go routines for mdns watcher and cache registry ( #919 )
2019-11-06 15:49:40 +00:00
Milos Gajdos
b84134581c
Flap detection vol2 ( #915 )
...
* We now purge flapping routes before regular tick processes them
* Updated comments
* Record the timestamp as soon as you receive the event
* Set route Address to routing table test
* Fixed a bunch of deadlocks. Added basic Router tests.
2019-11-05 17:44:24 +00:00
Till Knuesting
f67c5e779f
preallocated slices ( #917 )
2019-11-05 17:43:12 +00:00
Milos Gajdos
4a694c9d02
Change flap detection configuration ( #914 )
...
* Change flap detection configuration
* Make PenaltyHalfLife a float, not int 🤦♂️
* Lower event suppression to 200
2019-11-04 19:01:52 +00:00
Till Knuesting
24b8d2a315
preallocating slices ( #904 )
...
* preallocated some slices when size is known
* gofmt
* gofmt
2019-11-04 10:33:53 +00:00
Asim Aslam
2f3c251b00
Recovery should be < 500
2019-11-03 17:10:00 +00:00
Asim Aslam
c1b0a968ae
Augment the router penalty and decay as a hack fix ( #912 )
...
* Augment the router penalty and decay as a hack fix
* increase recovery cost
2019-11-03 16:29:10 +00:00
Asim Aslam
81e9298be6
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-03 16:12:24 +00:00
Asim Aslam
45cd14c4b7
Suppress log messages
2019-11-03 16:12:17 +00:00
罗泽轩
8579c8b321
avoid deadlock in syncMap.Iterate ( #909 )
...
Previously, when syncMap iterates a list of records which have the same
content in different order, a deadlock might happen. By enforcing a certain
order, the deadlock can be avoided.
2019-11-03 08:18:48 +00:00
罗泽轩
bd37e67839
fix a typo in sync/lock/memory package ( #910 )
2019-11-03 08:17:01 +00:00
Asim Aslam
d3151f1f0f
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-11-02 23:13:10 +00:00
Asim Aslam
c45ea62ea8
Do not deregister services in the monitor unless Reap is called
2019-11-02 23:13:01 +00:00
Yang Shi
c14bf5dc4e
improve the log of panic recovering ( #906 )
2019-11-02 23:08:54 +00:00
Asim Aslam
292da40886
runtime handler/proto placeholder
2019-11-02 22:54:35 +00:00
Milos Gajdos
6f7702a093
[WIP] K8s update and runtime package changes ( #895 )
...
* First commit: outline of K8s runtime package
* Added poller. Added auto-updater into default runtime
* Added build and updated Poller interface
* Added comments and NewRuntime that accepts Options
* DefaultPoller; Runtime options
* First commit to add Kubernetes cruft
* Add comments
* Add micro- prefix to K8s runtime service names
* Get rid of import cycles. Move K8s runtime into main runtime package
* Major refactoring: Poller replaced by Notifier
POller has been replaced by Notifier which returns a channel of events
that can be consumed and acted upon.
* Added runtime configuration options
* K8s runtime is now Kubernetes runtime in dedicated pkg. Naming kung-fu.
* Fix typo in command.
* Fixed typo
* Dont Delete service when runtime stops.
runtime.Stop stops services; no need to double-stop
* Track runtime services
* Parse Unix timestamps properly
* Added deployments into K8s client. Debug logging
2019-11-02 13:25:10 +00:00
Asim Aslam
a94a95ab55
Merge pull request #908 from hb-chen/fix-907
...
fix-907
2019-11-02 08:59:14 +00:00
Hobo86
e8d2f207d8
fix-907
...
web service need modify registry service nodes while register interval
2019-11-02 16:39:56 +08:00
Asim Aslam
bd1918900e
Merge pull request #901 from micro/sqlstore
...
Implementation of PostgreSQL for micro store
2019-11-01 15:48:47 +00:00
Asim Aslam
cf3af68e31
Merge pull request #903 from tegk/gofmt
...
used gofmt with -s flag on whole project
2019-11-01 15:25:53 +00:00
Jake Sanders
15e3b9b4c0
Let people connect with just a hostname
2019-11-01 15:16:05 +00:00
Asim Aslam
107a7ab07f
Merge pull request #902 from micro/runtime-panic
...
Fix panic caused when ctrl+c a non started service
2019-11-01 15:12:33 +00:00
Asim Aslam
e9dfccc616
Fix panic caused when ctrl+c a non started service
2019-11-01 15:08:01 +00:00
tegk
f88518d994
used gofmt with -s flag on whole project
2019-11-01 15:07:53 +00:00
Jake Sanders
ee35fe61af
update go.mod for postgres
2019-11-01 14:13:47 +00:00
Jake Sanders
dee63b2b2c
Implementation of postgres store
2019-11-01 14:13:21 +00:00
Asim Aslam
0aa01b2ebf
Output the build error in plugin
2019-11-01 08:33:14 +00:00
Asim Aslam
f089a89e8a
Merge pull request #897 from micro/route-filtering
...
add ability to filter routes based on headers
2019-11-01 08:15:23 +00:00
Asim Aslam
174fbde049
add ability to filter routes based on headers
2019-10-31 22:34:06 +00:00
Asim Aslam
967d7ecda7
fix runtime panic
2019-10-31 22:30:21 +00:00
Asim Aslam
fb76755684
Merge branch 'master' of ssh://github.com/micro/go-micro
2019-10-31 17:22:45 +00:00
Asim Aslam
cf593e7c50
fix link panic
2019-10-31 17:22:38 +00:00
Asim Aslam
74286c2939
Merge pull request #893 from yandd/master
...
fix rcache ttl
2019-10-30 21:31:08 +00:00
yandd
f9c639af4e
fix rcache ttl
2019-10-30 14:01:51 +08:00
Asim Aslam
dab0f3223f
Add Update/List endpoints to runtime
2019-10-29 12:29:21 +00:00
Asim Aslam
d89256d8d5
add network resolver record priority field
2019-10-28 15:31:46 +00:00
Asim Aslam
99b410c81b
fix metadata test
2019-10-25 23:28:43 +01:00
Asim Aslam
92b7d2db3b
Rename to Merge
2019-10-25 23:27:59 +01:00
Asim Aslam
20c6c36bc4
Merge pull request #883 from xmlking/master
...
PatchContext method added
2019-10-25 23:23:37 +01:00
Asim Aslam
1f626a55ed
Merge pull request #887 from micro/collapse-routes
...
hash address based on service name + node address
2019-10-25 23:12:56 +01:00
Asim Aslam
b42d242ec1
hash address based on service name + node address
2019-10-25 23:06:49 +01:00
Asim Aslam
51922c1763
Refresh route metrics in the proxy
2019-10-25 22:46:43 +01:00
Sumanth Chinthagunta
1c6b85e05d
AppendContext with overwrite flag
2019-10-25 08:27:28 -07:00
Sumanth Chinthagunta
1f658cfbff
adding PatchContext - this will create new context with original + patch metadata
2019-10-24 17:51:54 -07:00
potato
f933457cc1
Merge pull request #5 from micro/master
...
pull request from go-micro
2019-09-30 17:22:51 +08:00