a45b672c98
drop uuid and use modified nanoid
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-08-20 22:40:48 +03:00
86626c5922
fieldalignment of all structs to save memory
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-04-27 08:32:47 +03:00
8742b55305
auth: fix Init method
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-03-24 13:12:03 +03:00
bbbcb22565
fieldalignment of all structs to save memory
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-03-06 19:45:13 +03:00
4ec4c277b7
lint: fix all major issues
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-14 16:16:01 +03:00
125646d89b
add Name func option
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-29 14:07:35 +03:00
c7bafecce3
add meter and tracer across all options
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-22 23:32:33 +03:00
f6c0728a59
fix context usage across codebase
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-17 22:52:00 +03:00
a754ff7c0c
more lint fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-09 12:10:25 +03:00
b7b28f6b9a
lint
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-08 00:38:37 +03:00
daffa9e548
use metadata.Metadata ( #8 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-18 16:50:41 +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
caec730248
move out tracers
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-09-10 00:06:29 +03:00
53654185ba
add logger to options
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-29 17:44:49 +03:00
2c136b005e
resurrect default for auth
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-28 11:55:18 +03:00
8076e410a9
fix repocard issues ( #20 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 14:33:36 +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
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
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
647ce61dec
some renaming of types in auth
2020-07-19 14:41:31 +01:00
Asim Aslam
d3326efd4b
Move out the token package to util
2020-07-19 13:41:23 +01:00
Asim Aslam
6920677f1e
Move rules.Verify to auth.VerifyAccess
2020-07-19 13:12:03 +01:00
Asim Aslam
1838e4a1ee
remove auth provider
2020-07-19 11:37:40 +01:00
Asim Aslam
96233b2d9b
auth jwt / service package comments
2020-07-19 10:53:38 +01:00
ben-toogood
0287ab8751
auth/service/proto: add Delete RPC ( #1836 )
...
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-07-14 13:41:35 +01:00
ben-toogood
a2bb0bea2d
auth: add token issuer option ( #1835 )
2020-07-14 13:44:51 +02:00
ben-toogood
9f9c748f9b
auth/service: fix account issuer bug ( #1834 )
2020-07-14 12:16:52 +01:00
ben-toogood
07fbb06ed8
auth/service: fix jwt blank refresh bug ( #1827 )
2020-07-13 17:12:03 +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
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
ben-toogood
2b506b1a2a
auth/service: use address option since router may not be configured ( #1734 )
2020-06-24 13:47:43 +01:00
ben-toogood
9d3365c4be
auth: rename auth.Namespace to auth.Issuer ( #1710 )
2020-06-17 12:26:27 +01:00
huanghuan.27@bytedance.com
219d29f664
fix jwt revoke
2020-06-02 10:26:33 +08: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
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
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
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
e876cb917d
auth/service support for micro clients (rules from mutltiple namespaces
2020-05-21 12:25:47 +01:00