Commit Graph

39 Commits

Author SHA1 Message Date
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
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
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 0804a07680 Not to use api_key if its service is not actived. (#109) 2017-02-21 12:46:14 -08:00
Lizan Zhou 6e372fc510 Update grpc and protobuf (#70)
* protobuf v3.2.0
* grpc v1.1.1
* Align auth lib with grpc 1.1.1
2017-02-08 19:18:26 -08:00
Wayne Zhang 76355366e4 Remove mixer_client from api_manager. (#72) 2017-02-08 09:34:56 -08:00
Wayne Zhang 27962094ad Add targetService attribute. (#59) 2017-01-31 16:12:56 -08:00
Qian Sun 2c9c1af3d6 Update buckets for UI. (#58)
* Update buckets for UI.

* Only update time_distribution.
2017-01-30 15:03:42 -08:00
Wayne Zhang 6d7f0eebec Add originIp and originHost attributes. (#56) 2017-01-26 23:38:51 -08:00
Wayne Zhang cea8827993 Integrate with mixer client. (#55)
* Integrate with mixer client.

* Restore  repositories.bzl back.
2017-01-26 22:02:18 -08:00
Qian Sun ee3cdeeb33 Handle HEAD request. (#34)
* Handle HEAD request.

* Try with GET if HEAD fails.

* Address comments.

* Format file.
2017-01-13 08:49:25 -08:00
enricoschiattarella 78b931b935 Simple TCP server to show how to retrieve original dest IP:port after an iptables redirect (#38)
* Simple TCP server to show how to retrieve original dest IP:port after an iptables redirect

* Fixed style.
2017-01-10 13:26:08 -08:00
Qian Sun 4e25948364 Make envoy_esp talk to Mixer. (#29)
* Make enovy_esp can talk to Mixer.

* Fix file format.

* Add mixer_options in server_config.

* Address comments.

* Update log info.

* Add TE to grpc headers.
2017-01-05 15:00:00 -08:00
Qian Sun bb3c4d4097 Add mixer interface in api manager. (#25)
* Add mixer interface in api manager.

* Store service_name in mixer class.

* Remove getter function for service_name.
2017-01-03 15:27:36 -08:00
Qian Sun decf6c6703 Add GRPCRequest class for envoy. (#22) 2016-12-29 14:22:13 -08:00
Wayne Zhang 64c89530ed Add check_style in presubmit test. (#23)
* Add check_style in presubmit test.

* Checks clang-format version.

* Install required clang-fromat version.

* Download the clang-format for ubuntu.

* Cache the clang-format folder.

* Use ubuntu 16.4

* Revert ubuntu version back to 14.04.

* Make sure clang-format can be run.
2016-12-28 21:40:28 -08:00
Qian Sun 9bdb76b655 Fix t test failures in esp. (#21) 2016-12-28 14:56:59 -08:00
Qian Sun 4089484b13 Do not report latency for streaming requests. (#20) 2016-12-28 11:56:07 -08:00
Lizan Zhou 6ff26f3af6 remove protobuf_repositories from contrib/endpoints 2016-12-20 14:08:18 -08:00
Lizan Zhou 64ecf7b87e Build envoy as dependency 2016-12-20 13:31:58 -08:00
Tao Li e6d2b74164 Validate if contents of x-jwks_uri contains a public key and some clean up 2016-12-16 11:08:01 -08:00
Lizan Zhou 0475fe33fb Extract dependencies into .bzl file
- Easier loading from repos depending on istio proxy
- Extract third_party BUILD files into it so no need to copy around
2016-12-15 18:22:31 -08:00
Sarvani Vakkalanka db51059faa Start using AuthProvider audiences. (#14)
* Start using AuthProvider audiences.

This change consumes the new audiences field that has been added
in the AuthProvider message. The change is backward compatible
and does the following:
1) Check if audiences is present in AuthProvider
2) If present, use it. Otherwise, use the audiences in
AuthRequirement

* Address code review comment

* More code review comments addressed
2016-12-13 15:10:40 -08:00
Wayne Zhang 22546df677 Fix lint format 2016-12-07 12:27:37 -08:00
Wayne Zhang d45343633b Add utils::Version object. 2016-12-07 10:54:54 -08:00
Lizan Zhou bbc8eaa1be Fix license header of transcoding 2016-12-06 16:32:32 -08:00
Lizan Zhou 0b1e1def0f Make transcoding buildable 2016-12-06 16:21:12 -08:00
Wayne Zhang ee7dd6b0cb Replace copyright header for proto files. 2016-12-06 14:58:50 -08:00
Wayne Zhang ad1fd2e400 Remove bazel BUILD. 2016-12-06 14:50:50 -08:00
Wayne Zhang b10aa230d7 Replace copyright header. 2016-12-06 14:41:34 -08:00
Wayne Zhang cb764509f5 Initial copy of transcoding code. 2016-12-06 14:41:07 -08:00
Louis Ryan 3eea5ea83b Create README.md for endpoints code dump
Describe intent of directory.
2016-12-06 10:41:51 -08:00
Wayne Zhang 248bb43c28 Add exports_files for contrib/endpoints/include/version 2016-12-05 11:40:34 -08:00
Wayne Zhang 7e3477ec60 Add contrib/endpoints prefix to all includes. 2016-12-05 00:09:53 -08:00
Wayne Zhang a335231edd Supports bazel builds. 2016-12-01 16:41:12 -08:00
Wayne Zhang e0eee24c2f Replace copyright header 2016-12-01 12:09:32 -08:00
Wayne Zhang 2f94903e69 Initial copy of the codes. 2016-12-01 12:05:16 -08:00