29 Commits

Author SHA1 Message Date
Renovate Bot
0daa8b3609 Update module unistack-org/micro/v3 to v3.2.9 2021-02-12 13:23:22 +00:00
3b17f89403 update renovate.json
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-12 12:38:04 +03:00
d9980df3f3
Merge pull request #4 from unistack-org/renovate/all
Update module unistack-org/micro/v3 to v3.2.8
2021-02-10 20:27:55 +03:00
b8a11c9d06
Merge pull request #5 from unistack-org/renovate/major-all
Update all deps to v2 (major)
2021-02-10 20:27:45 +03:00
Renovate Bot
9547fa47aa
Update all deps to v2 2021-02-10 11:06:17 +00:00
Renovate Bot
0b0bbce44c
Update module unistack-org/micro/v3 to v3.2.8 2021-02-10 11:06:10 +00:00
444bff06a4 move renovate.json
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-02-10 14:05:14 +03:00
2dac9c47f9
Merge pull request #1 from unistack-org/renovate/configure
Configure Renovate
2021-02-10 13:52:00 +03:00
Renovate Bot
c1a79922f7
Add renovate.json 2021-02-08 23:28:55 +00:00
167c276bca update for latest micro
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
v3.2.2
2021-01-29 15:46:17 +03:00
e8b9086eb8 update for latest micro
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
v3.2.1
2021-01-29 14:56:39 +03:00
637dcb5cc1 update micro to v3.1.1
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
v3.1.1
2021-01-16 01:24:38 +03:00
b9ccb43243 use own fork
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-10 14:30:04 +03:00
Asim Aslam
cf3186c481 Move api/router/util to util/router (#1909) 2021-01-10 14:28:08 +03:00
Asim Aslam
ac0f3bcbd5 dont process endpoint unless absolutely necessary 2021-01-10 14:28:08 +03:00
Asim Aslam
a4a73bac67 v3 refactor (#1868)
* Move to v3

Co-authored-by: Ben Toogood <bentoogood@gmail.com>
2021-01-10 14:28:08 +03:00
Asim Aslam
cf117e2b46 fix typo (#1789) 2021-01-10 14:28:08 +03:00
ben-toogood
9a13b816be api/router/registry: use resolved domain (#1774) 2021-01-10 14:28:08 +03:00
ben-toogood
7c4047a900 api/resolver: update resolver to enable subdomain routing (#1747)
* api/resolver: update domain / service prefix usage

* api/resolver/subdomain: implement subdomain resolver for domain resolution

* api/handler: fix tests
2021-01-10 14:28:08 +03:00
Dominic Wong
a1d60688e1 Fix regex detection. Fixes #1663 (#1696) 2021-01-10 14:28:08 +03:00
750283cefd 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>
2021-01-10 14:28:08 +03:00
930b329310 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>
2021-01-10 14:28:08 +03:00
2f5eaa0127 api/router/registry: extract path based parameters from url to req (#1530)
* 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>
2021-01-10 14:28:08 +03:00
Asim Aslam
f34a4d29de Strip namespace from registry router 2021-01-10 14:28:08 +03:00
7970ee41af 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>
2021-01-10 14:28:08 +03:00
Asim Aslam
d5927581d2 Move error for api validation to trace level (#1432)
* remove error on endpoint validation

* trace level
2021-01-10 14:28:08 +03:00
c580879955 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>
2021-01-10 14:28:08 +03:00
e15ad46e01 fix import paths for v2 release
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-10 14:28:08 +03:00
Asim Aslam
e43ffb92a3 Further consolidate the libraries 2021-01-10 14:28:08 +03:00