Commit Graph

147 Commits

Author SHA1 Message Date
Zack e47cfc3038 Update attributes to match the canonical attribute list. (#232)
* Update response.http.code to response.code and response.latency to response.duration to line up with the canonical attributes in istio/istio.github.io/docs/concepts/attributes.md

* Format according to clang-format
2017-04-07 15:46:07 -07:00
Qian Sun 1bcfab4569 Send delta metrics for intermediate reports. (#219)
* Send delta metrics for intermediate reports.

* Move last_request_bytes/last_response_bytes to RequestContext.

* Handle final report.

* Address comment.
2017-04-07 10:08:48 -07:00
Jae Kim 1ef1b4a3ae Merge latest changes from rate_limiting to master (#221)
* Point to googleapi in service control client. (#91)

* Point to googleapi in service control client.

* Use git repository for service-control-client.

* Merge latest changes from master (#104)

* Get attributes from envoy config. (#87)

* Send all attributes.

* Remove unused const strings.

* Address comment.

* updated SHA to point to newer envoy with RDS API feature (#94)

* Disable travis on stable branches (#96)

* Publish debug binaries (no release yet) (#98)

* Copies the binary instead of linking for release (#102)

* Extract quota config from service config. (#101)

* Add metric_cost in config.

* Remove group rules.

* Call loadQuotaConfig in config::create.

* Update latest update from master branch (#106)

* Get attributes from envoy config. (#87)

* Send all attributes.

* Remove unused const strings.

* Address comment.

* updated SHA to point to newer envoy with RDS API feature (#94)

* Disable travis on stable branches (#96)

* Publish debug binaries (no release yet) (#98)

* Copies the binary instead of linking for release (#102)

* Added quota contoll without the service control client library (#93)

* Added quota contoll without the service control client library

* Applied code review

* Applied code review

* Resolve conflicts

* Resolve conflicts

* Fixed format error reported by script/check-style

* Fixed a bug at Aggregated::GetAuthToken that causes Segmentation Fault

* Changed usage of template funcion

* Applied latest changes from the repo

* Applied latest changes from the repo

* Applied latest changes from the repo

* Adde comments

* Updated log information

* Applied #101

* Changed metric_cost_map to metric_cost_vector

* Fixed test case compilation error

* Fixed test case compilation error

* Add unit test for quota config. (#108)

* Add unit test for quota config.

* Add comments.

* Update test specifics.

* Merge latest changes from master branch (#112)

* Get attributes from envoy config. (#87)

* Send all attributes.

* Remove unused const strings.

* Address comment.

* updated SHA to point to newer envoy with RDS API feature (#94)

* Disable travis on stable branches (#96)

* Publish debug binaries (no release yet) (#98)

* Copies the binary instead of linking for release (#102)

* Not to use api_key if its service is not actived. (#109)

* If QuotaControl service is not available, return utils::Status::OK (#113)

* If QuotaControl service is not available, return utils::Status::OK

* Updated comment

* Return HTTP status code 429 on google.rpc.Code.RESOURCE_EXHAUSTED (#119)

* Fixed incorrectly resolved conflicts (#123)

* Added unit test cases for rate limiting (#124)

* Fixed incorrectly resolved conflicts

* Added unit test cases for rate limiting

* Added unit test cases for rate limiting

* Added unit test cases for rate limiting

* Added unit test cases for rate limiting

* Added unit test cases for rate limiting

* Added unit test cases for rate limiting

* Rename response.http.code (#125) (#128)

* Added handling of error code QUOTA_SYSTEM_UNAVAILABLE (#148)

* Integrated service control client library with quota cache aggregation (#149)

* Fixed error on merge (#151)

* Integrated service control client library with quota cache aggregation

* Fixed error on merge

* Fixed the compatibility issue with the latest update on esp (#152)

* Removed copied proto files (#208)

* Set default allocate quota request timeout to 1sec and applied latest service control client library change (#211)

* Merged key_restriction related changes from master (#213)

* Merge latest changes from master branch (#217)

* Not call report if decodeHeaders is not called. (#150)

* Update mixerclient with sync-ed grpc write and fail-fast. (#155)

* Update mixerclient with sync-ed write and fail-fast.

* Update to latest test.

* Update again

* Update envoy to PR553 (#156)

* Update envoy to PR553

* Update libevent to 2.1.8

* Uses a specific version of the Shared Pipeline lib (#158)

* Update lyft/envoy commit Id to latest. (#161)

* Update lyft/envoy commit Id to latest.

* Remove the comment about pull request

* Add new line - will delete in next commit.

* Update repositories.bzl (#169)

* Always set response latency (#172)

* Update mixerclient to sync_transport change. (#178)

* Use opaque config to turn on/off forward attribute and mixer filter (#179)

* Modify mixer filter

* Swap defaults

* Make the filter decoder only

* cache mixer disabled decision

* Fix a bug in opaque config change and test it out (#182)

* Fix a bug and test it out

* Update filter type

* Update README.md

* Update mixer client to mixer api with gogoproto. (#184)

* Move .bazelrc to tools/bazel.rc (#186)

* Move .bazelrc to tools/bazel.rc

* Update Jenkinsfile with latest version of pipeline

* Support apikey based traffic restriction (#189)

* b/36368559 support apikey based traffic restriction

* Fixed code formatting

* Fix crash in unreachable/overloaded RDS (#190)

* Add mixer client end to end integration test. (#177)

* Add mixer client end to end integration test.

* Split some repositories into a separate file.

* use real mixer for fake mixer_server.

* Test repository

* use mixer bzl file.

* Use mixer repositories

* Not to use mixer repository.

* Add return line at the end of WORKSPACE.

* Fix broken link (#193)

* Make quota call (#192)

* hookup quota call

* Make quota call.

* Update indent.

* Update envoy and update configs (#195)

* Update envoy and update configs

* Use gcc-4.9 for travis

* Use bazel 0.4.5

* Fix SHA of lightstep-tracer-common

* Enable check cache and refactory mixer config loading  (#197)

* Refactory the mixer config loading.

* fix format

* Add integration test.

* updated README.md

* s/send/sent/

* Split into separate tests. (#201)

* Update README on how to enable check cache. (#204)

* Update README on how to enable check cache.

* Update the comment.

* build: support Envoy native Bazel build. (#210)

* build: support Envoy native Bazel build.

This patch switches the Envoy build from src/envoy/repositories.bzl to
using the upstream native build.

See https://github.com/lyft/envoy/pull/663 for the corresponding changes
on the Envoy side.

* Use Envoy master with BUILD.wip rename merged.

* Fix clang-format issues.

* Fixes bazel.rc issues (#212)

* Fixes bazel rc issues

* Update Jenkins to latest pipeline version

* Updated the commit id of cloudendpoints/service-control-client-cxx (#218)

* Update commitid of cloudendpoints/service-control-client-cxx repo (#220)
2017-04-06 23:04:52 -07:00
Lizan Zhou 987223f6ce Use TranscoderInputStream to reduce confusion around ByteCount() (#225)
* Add TranscoderInputStream to reduce confusion

* fix_format
2017-04-06 17:30:47 -07:00
Lizan Zhou f71ef23663 Fix go build (#224) 2017-04-06 17:01:40 -07:00
Sebastien Vas 2fae2d7893 Fixes bazel.rc issues (#212)
* Fixes bazel rc issues

* Update Jenkins to latest pipeline version
2017-04-01 13:40:28 -07:00
htuch 8c2bbceb28 build: support Envoy native Bazel build. (#210)
* build: support Envoy native Bazel build.

This patch switches the Envoy build from src/envoy/repositories.bzl to
using the upstream native build.

See https://github.com/lyft/envoy/pull/663 for the corresponding changes
on the Envoy side.

* Use Envoy master with BUILD.wip rename merged.

* Fix clang-format issues.
2017-04-01 11:48:36 -07:00
Wayne Zhang c93dcc5d76 Update README on how to enable check cache. (#204)
* Update README on how to enable check cache.

* Update the comment.
2017-03-25 19:09:45 -07:00
Wayne Zhang 3bcb6c4096 Split into separate tests. (#201) 2017-03-24 12:25:48 -07:00
Wayne Zhang 5e601ca364 Enable check cache and refactory mixer config loading (#197)
* Refactory the mixer config loading.

* fix format

* Add integration test.

* updated README.md

* s/send/sent/
2017-03-23 12:48:29 -07:00
Lizan Zhou 61a53a46cf Update envoy and update configs (#195)
* Update envoy and update configs

* Use gcc-4.9 for travis

* Use bazel 0.4.5

* Fix SHA of lightstep-tracer-common
2017-03-22 16:41:28 -07:00
Wayne Zhang d2bc18a5b8 Make quota call (#192)
* hookup quota call

* Make quota call.

* Update indent.
2017-03-21 19:14:25 -07:00
wattli 57419f1a2a Fix broken link (#193) 2017-03-21 13:48:11 -07:00
Wayne Zhang 955d54a055 Add mixer client end to end integration test. (#177)
* Add mixer client end to end integration test.

* Split some repositories into a separate file.

* use real mixer for fake mixer_server.

* Test repository

* use mixer bzl file.

* Use mixer repositories

* Not to use mixer repository.

* Add return line at the end of WORKSPACE.
2017-03-20 14:12:20 -07:00
Kuat 978b9678d5 Fix crash in unreachable/overloaded RDS (#190) 2017-03-20 14:04:37 -07:00
Jae Kim 557d0c6a7f Support apikey based traffic restriction (#189)
* b/36368559 support apikey based traffic restriction

* Fixed code formatting
2017-03-20 13:42:37 -07:00
Lizan Zhou 20c5bab707 Move .bazelrc to tools/bazel.rc (#186)
* Move .bazelrc to tools/bazel.rc

* Update Jenkinsfile with latest version of pipeline
2017-03-20 11:04:55 -07:00
Wayne Zhang 93ea507f3a Update mixer client to mixer api with gogoproto. (#184) 2017-03-17 12:38:39 -07:00
Kuat 95535f5fb6 Fix a bug in opaque config change and test it out (#182)
* Fix a bug and test it out

* Update filter type

* Update README.md
2017-03-16 18:29:47 -07:00
Kuat 531cfa0072 Use opaque config to turn on/off forward attribute and mixer filter (#179)
* Modify mixer filter

* Swap defaults

* Make the filter decoder only

* cache mixer disabled decision
2017-03-16 17:03:05 -07:00
Wayne Zhang 52ef466a3f Update mixerclient to sync_transport change. (#178) 2017-03-16 10:15:18 -07:00
Wayne Zhang 4d1dbe0120 Always set response latency (#172) 2017-03-15 12:10:22 -07:00
Kuat 76d96cd4d2 Update repositories.bzl (#169) 2017-03-14 12:21:24 -07:00
Sarvani Vakkalanka f0e541fdc2 Update lyft/envoy commit Id to latest. (#161)
* Update lyft/envoy commit Id to latest.

* Remove the comment about pull request

* Add new line - will delete in next commit.
2017-03-13 12:59:15 -07:00
Sebastien Vas 5bf8276f86 Uses a specific version of the Shared Pipeline lib (#158) 2017-03-13 09:24:07 -07:00
Wayne Zhang 25f43e36e7 Update envoy to PR553 (#156)
* Update envoy to PR553

* Update libevent to 2.1.8
2017-03-09 17:54:38 -08:00
Wayne Zhang c0c317dc0b Update mixerclient with sync-ed grpc write and fail-fast. (#155)
* Update mixerclient with sync-ed write and fail-fast.

* Update to latest test.

* Update again
2017-03-09 15:16:52 -08:00
Wayne Zhang a5567b9c2a Not call report if decodeHeaders is not called. (#150) 2017-03-07 14:42:58 -08:00
Wayne Zhang 6e29abce8a Update to latest mixer_client. (#145)
* Update to latest mixer_client.

* Updated the sha.
2017-03-03 15:28:26 -08:00
wattli 9d10adc109 Populate origin.user attribute from the SAN field of client cert (#142)
* Test

* test

* test

* revert file

* address comments

* test

* fix typo

* fix format

* fix format
2017-03-02 15:00:52 -08:00
wattli a118aea249 Update nghttp2 to sync with envoy (#140)
* Fix src/envoy/mixer/README.md

* Update nghttp2 to sync with envoy

* update

* fix typo
2017-03-01 19:00:35 -08:00
Wayne Zhang 83e1d58c8e Get mixerclient with response parsing. (#138) 2017-03-01 16:30:27 -08:00
Wayne Zhang fc9497a8d9 Fix mixer client crash. (#136) 2017-02-28 17:11:01 -08:00
Sebastien Vas 0c7c549dd7 Adding config release for bazel build (#135) 2017-02-28 16:54:00 -08:00
Sebastien Vas f5281adb8e Update postsubmit to create docker images (#132) 2017-02-28 15:12:53 -08:00
Jason Young d71d5f3d2b update base debug docker image reference (#133) 2017-02-28 14:21:18 -08:00
Jason Young 3d402e6def unify bazel's docker build targets with other istio repos (#127) 2017-02-24 17:50:23 -08:00
Wayne Zhang fdfb73f4ea Send headers as string map. (#129)
* Send headers as string map.

* Remove origin.ip and origin.host.

* Fix format
2017-02-24 17:21:27 -08:00
Wayne Zhang 7fe10df1ef Rename response.http.code (#125) 2017-02-23 16:04:30 -08:00
Qian Sun 20e19d217b Fail request if api_key is not valid. (#116)
* Fail request if api_key is not valid.

* Format code.

* Update comments.

* Address comment.
2017-02-22 12:50:08 -08:00
Wayne Zhang ef1aecf0f1 Add send_attribute filter. (#115)
* Add send_attribute filter.

* Fix format

* rename variable serialized_attributes_

* Address the comments.
2017-02-22 10:04:36 -08:00
Qian Sun d09325482e Send StatusCode Attributes to Mixer. (#110) 2017-02-21 18:29:40 -08:00
Kuat 7444da1c3c Update envoy and add c-ares (#107)
* Update envoy and add c-ares depedencies

* Update release script with debug and normal binary

* remove debug ls

* formatting
2017-02-21 17:36:10 -08:00
Wayne Zhang 0804a07680 Not to use api_key if its service is not actived. (#109) 2017-02-21 12:46:14 -08:00
Sebastien Vas 84881332f5 Copies the binary instead of linking for release (#102) 2017-02-16 13:38:01 -08:00
Kuat 2f69cc985f Publish debug binaries (no release yet) (#98) 2017-02-15 14:36:06 -08:00
Sebastien Vas 1cdc2ac135 Disable travis on stable branches (#96) 2017-02-14 16:35:15 -08:00
GregHanson 25adae9db6 updated SHA to point to newer envoy with RDS API feature (#94) 2017-02-14 13:51:40 -08:00
Qian Sun d5a878a10b Get attributes from envoy config. (#87)
* Send all attributes.

* Remove unused const strings.

* Address comment.
2017-02-13 16:27:14 -08:00
wattli 88cfb2474f Fix src/envoy/mixer/README.md (#85) 2017-02-10 15:49:13 -08:00