7c9a7e84c7
not use selfsigned certs
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-05 23:55:53 +03:00
31180758b4
move avay grpc stuff to micro-server-grpc
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-05 23:46:11 +03:00
e41bb5ebc5
rewrite logger
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-05 00:23:05 +03:00
8a2b122015
many fixes for lint and context.Context usage ( #5 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-03 02:02:32 +03:00
40b0870cf8
fix linting ( #4 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-03 01:08:23 +03:00
a9eff06976
fix repocard issues ( #2 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-02 13:25:29 +03:00
14c97d59c1
many improvements with options and noop stuff
...
* add many options helpers
* fix noop client to allow publish messages to topic in broker
* fix noop server to allow registering in registry
* fix noop server to allow subscribe to topic in broker
* fix new service initialization
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-16 09:38:57 +03:00
2fc47782cf
use metadata helper
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-09 16:51:58 +03:00
34d93306d6
new registry util func
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-10-09 16:49:29 +03:00
9c55b1d06a
fix metadata issues with uppercase letters
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-30 16:14:54 +03:00
1cbd1d2bad
fix
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-20 16:57:54 +03:00
7e3fac8937
fix store context issues
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-17 15:41:49 +03:00
c576749b57
noop impl ( #32 )
...
* improve logger usage
* add noop client and server
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-05 02:11:29 +03:00
ef773d8d49
remove util/log in favour of logger ( #23 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 17:31:28 +03:00
67ab44593b
fix repocard issues ( #21 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 15:41:48 +03:00
8076e410a9
fix repocard issues ( #20 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 14:33:36 +03:00
0f4b1435d9
move implementations to external repos ( #17 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 13:44:41 +03:00
c4a303190a
lint fixes ( #14 )
...
* lint fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-21 14:53:21 +03:00
199ff66bd4
enable cache for build, closes #8 ( #12 )
...
* enable cache for build, closes #8
* goimports
* lint fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-20 15:23:41 +03:00
ben-toogood
cf084b410f
util/file: allow context to be passed ( #1950 )
2020-08-20 14:18:52 +03:00
06136312bb
regen files with never protoc ( #6 )
...
* regen files with never protoc
* rewrite import path
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-19 17:47:17 +03:00
Asim Aslam
50ec6c748f
cleanup client/selector/lookup ( #1937 )
...
* cleanup client/selector/lookup
* add mdns router, remove registry from client
* fix roundtripper
* remove comment
* fix compile issue
* fix mucp test
* fix api router
2020-08-17 22:44:45 +01:00
ben-toogood
5a88ea7247
runtime: resource limits (kubernetes implementation) ( #1931 )
...
* runtime: add resource limit CreateOptions
* util/kubernetes/client: implement support for resource limits
* runtime/kubernetes: set resource limits for k8s deployments
* util/kubernetes: remove template check for ints
* util/kubernetes: fix incorrect yaml syntax
* runtime/kubernetes: fix incorrect units
* runtime: update create options to use Resources struct
2020-08-14 11:47:28 +01:00
Asim Aslam
c51ef6fc29
move wrapper to client
2020-08-11 11:25:49 +01:00
ben-toogood
1263806a39
util/kubernetes: add readiness check to deployments ( #1923 )
2020-08-11 08:38:30 +01:00
Asim Aslam
13f495587e
cleanup debug and transport ( #1920 )
2020-08-10 15:58:39 +01:00
Asim Aslam
a6d7b1d710
Move api/router/util to util/router ( #1909 )
2020-08-07 13:30:29 +01:00
Asim Aslam
8ee31b94a1
remove handler/util package in favour of util/router ( #1908 )
2020-08-07 12:47:20 +01:00
Asim Aslam
24e5b2a034
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-08-03 22:21:13 +01:00
Asim Aslam
971a962894
Fix typo
2020-08-03 22:20:30 +01:00
ben-toogood
0b73d411ad
client: rename WithServiceToken => WithAuthToken ( #1887 )
2020-07-31 11:36:33 +01:00
ben-toogood
e9fc5b1671
client: add proxy option ( #1885 )
...
* client: add proxy option
* client: add WithProxy CallOption
* use address option
* ProxyAddress => Proxy
2020-07-30 15:22:36 +01:00
yu
d66803a136
fix bug https://github.com/micro/go-micro/issues/1883 ( #1884 )
...
* fix #1883
* fix #1883
Co-authored-by: 杨羽 <yangyu@doumi.com>
2020-07-29 12:45:25 +01:00
c6163bb22f
fix qson parsing on invalid input, close #1874 ( #1880 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-07-28 12:34:50 +01:00
Asim Aslam
563768b58a
v3 refactor ( #1868 )
...
* Move to v3
Co-authored-by: Ben Toogood <bentoogood@gmail.com>
2020-07-27 13:22:00 +01:00
Asim Aslam
d3326efd4b
Move out the token package to util
2020-07-19 13:41:23 +01:00
Di Wu
f9bf562393
fix typo in comments ( #1840 )
...
* remove global error tracking
* rpc_server: fix invalid register err
* fix typo
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-07-16 16:33:11 +01:00
ben-toogood
73a3f596e8
util/kubernetes/client: set imagePullPolicy to always ( #1838 )
2020-07-14 15:17:23 +01:00
ben-toogood
a5e9dc21ca
util/wrapper: allow enforcing a specific namespace when verifying requests ( #1832 )
...
* auth/jwt: add debugging
* auth: more debugging
* auth: more debugging
* util/wrapper: don't use request context
* util/wrapper: AuthHandlerNamespace
* remove debugging
2020-07-14 10:27:15 +01:00
ben-toogood
2e04fcd718
config/cmd: don't fatally error if auth account cannot be generated ( #1824 )
2020-07-13 12:52:54 +01:00
ben-toogood
7355455020
auth/service: generate accounts client side if JWT credentials present ( #1823 )
2020-07-13 10:20:31 +01:00
ben-toogood
09ec20fded
runtime: provide credentials to services ( #1817 )
...
* runtime: inject credentials into service
* util/auth: self generate accounts (needed for jwt)
* runtime/kubernetes: add logging for creds
* runtime/kubernetes: serialize secret name
* runtime/kubernetes: remove unused code
* runtime/kubernetes: base64 encode secret
* runtime/kubernetes: remove metadata from secret
* util/kubernetes/client: omit empty secret metadata
* util/kubernetes/client: fix secret template
* util/kubernetes/client: fix secrets
* web: update auth util
* util/auth: fix missing arg
* extend token expiry
* extend token expiry
2020-07-10 16:25:46 +01:00
ben-toogood
6d9a38a747
kubernetes: fixes for production ( #1812 )
...
* util/kubernetes/client: add secrets to deployments
* util/kubernetes/client: remove ServiceAccountName override
* debugging
* runtime/kubernetes: fix error
* runtime/kubernetes: remove test secret
* util/kubernetes/client: update default image
* util/kubernetes/client: remove default command for deployments
* runtime/kubernetes: pass source as arg
* runtime/kubernetes: remove debugging
* util/kubernetes/client: revert default image change
2020-07-09 16:29:01 +01:00
ben-toogood
0a937745cd
auth: pass namespace options in auth service requests ( #1800 )
...
* auth: pass namespace options in auth service requests
* auth/service/proto: update field index
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-07-07 08:30:25 +01:00
97ae2979ad
pass request context from request rpc endpoints ( #1799 )
...
http middleware can add additional metadata to context,
for example tracing wrappers, pass down it to underlining
services
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-07-06 13:55:17 +01:00
ben-toogood
174e44b846
Deprecate client/selector ( #1767 )
...
* client/{grpc,rpc}: depricate selector (wip)
* {client,cmd}: remove client/selector
* deprecate client/selector
* router/static: fix lookup
* config/cmd: add support for legacy static selector flag
* config/cmd: add support for legacy dns selector flag
2020-07-01 17:06:59 +01:00
Dominic Wong
6532b6208b
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-06-30 11:12:52 +01:00
ben-toogood
0f5c53b6e4
selector: use custom domain ( #1760 )
...
* util/wrapper: improve auth errors
* client: add network call option
* client/selector: add domain select option
* client/grpc: pass network option to selector
2020-06-30 10:07:52 +01:00
ben-toogood
687a5e2e58
util/wrapper: fix 401 error when requesting the default namespace ( #1741 )
2020-06-25 10:19:03 +01:00
ben-toogood
00cd07a3a6
util/wrapper: set auth credentials on streams ( #1735 )
2020-06-24 16:45:34 +01:00
ben-toogood
ece02a6d21
util/wrapper: fix noop auth nil account bug ( #1721 )
...
* util/wrapper: fix noop nil account
* util/wrapper: improve comments
* util/wrapper: update tests
2020-06-19 12:16:39 +01:00
ben-toogood
9d3365c4be
auth: rename auth.Namespace to auth.Issuer ( #1710 )
2020-06-17 12:26:27 +01:00
Di Wu
6add74b4f6
Custom private blocks ( #1705 )
...
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-06-16 17:05:42 +01:00
Janos Dobronszki
00b76e0a64
Initialize selector before we make an auth.Generate call ( #1693 )
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
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
27e41c4ad5
fix locking of socket pool
2020-05-27 20:18:26 +01:00
Dominic Wong
e7ad031eb8
Check ipv4 or ipv6 address is valid before assigning
2020-05-27 15:47:12 +01:00
Ben Toogood
e2d662608c
Fix tests
2020-05-27 09:14:16 +01:00
Ben Toogood
c3b404bab0
Fix server calling across namespace
2020-05-26 17:35:06 +01:00
Ben Toogood
5712cc9c62
Merge master
2020-05-26 15:52:21 +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
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
f939200b34
Improve service auth log
2020-05-22 12:24:37 +01:00
Ben Toogood
fbb91c6cb7
Auth wrapper tests
2020-05-22 10:44:18 +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
287992cef3
Fix service => service namespace bug
2020-05-21 11:35:07 +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
Ben Toogood
f6d9416a9e
Add Rule to Auth interface
2020-05-20 11:59:01 +01:00
Ben Toogood
dc10f88c12
Replace auth account.Namespace with account.Scopes
2020-05-19 18:17:17 +01:00
Ben Toogood
6b451a2197
Refactor auth setup to util/auth
2020-05-14 16:10:14 +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
1ca1fd411a
Auth: Fix recursive bug
2020-05-13 18:17:04 +01:00
Pieter Voorwinden
b14d63b4a1
Check if auth is nil to prevent nilpointer
2020-05-13 16:13:23 +02:00
Ben Toogood
47c1cb433e
Store account credentials
2020-05-13 13:48:25 +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
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
e0863bb7eb
K8s: Add Secret Type to yaml template
2020-05-12 14:10:39 +01:00
Ben Toogood
66d3e4a595
Fix k8s secret template (yaml)
2020-05-12 11:40:54 +01:00
Janos Dobronszki
1eb63635b5
Adding file upload and download capabilities ( #1610 )
2020-05-11 14:08:27 +02: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
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
Asim Aslam
f908110fb6
swap out context access for account ( #1589 )
2020-04-28 17:35:18 +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