Commit Graph

1100 Commits

Author SHA1 Message Date
Yangmin Zhu 5ea236aa3f Fix header parsing in JWT filter (#2291) (#2293)
* Fix header parsing in JWT filter

* fix lint
2019-06-26 17:12:01 -07:00
Yan Xue ae671c53f6 Report StopIteration if connection is closed (#2270) (#2277)
* Report StopIteration if connection is closed (#2270)

* Report StopIteration if connection is closed

* Change ENVOY_LOG to ENVOY_CONN_LOG

* Fix lint (#2279)
2019-06-14 12:34:08 -07:00
Joshua Blatt d26534e192
Update istio/envoy to pick up https://github.com/envoyproxy/envoy/pull/7050 (#2274) 2019-06-13 16:16:01 -07:00
lei-tang e9dd2a0668 [Cherry pick] "Add the support of bypassing JWT authn for CORS requests" to release 1.1 (#2165)
* Add the support of bypassing JWT authn for CORS requests (#2139)

* Add the support of bypassing JWT authn for CORS requests

* Bail out earlier for CORS preflight requests

* Use OPTIONS constant value from Envoy

* Remove changing to lowercase

* Add more checks for CORS preflight requests (#2140)
2019-06-13 14:25:06 -07:00
Joshua Blatt 102e286f1f
Build 1.1.8 part 2 (#2259)
* Update istio/envoy sha to pick up https://github.com/envoyproxy/envoy/pull/6994

* Pick up https://github.com/istio/envoy/pull/76
2019-06-03 20:21:49 -07:00
Joshua Blatt a60cf8cb14
Switch from envoyproxy/envoy to istio/envoy repo to pick up three commits from jplev related to reducing 503s from connection reuse. (#2257)
See ac7aa5ac8a...istio:8193a430e75f69dc2bc6fa1ddca5976f5853c954 for the diff.
2019-06-03 12:05:31 -07:00
Yan Xue 9f054092e2 Replace qiwzhang who has left the project with crazyxy. (#2241) (#2247) 2019-05-29 16:19:07 -07:00
Yan Xue 364c9e9bb2 remove bazel shutdown command (#2209) (#2246) 2019-05-29 15:24:03 -07:00
Pengyuan Bian 56242cdcb6 Retrieve tracing header from request headers during report (#2182)
* Retrieve tracing header at report time

* add license header

* format

* add an integration test

* format

* clean comment
2019-05-07 15:12:03 -07:00
Maria Skidanova 73fa9b1f29
Updating API sha for proxy. (#2181)
* API sha for proxy

* Updating sha for API in Proxy
2019-04-23 11:47:24 -07:00
Joshua Blatt a169a0c0cd
Sync istio/api for 1.1.3 (#2170) 2019-04-11 19:54:22 -07:00
Yuchen Dai bf8b9cdce7 release 1.1: Update envoy to enable path normalization (#2166)
* Update envoy and build opt

envoy commit date: 04/10/2019
bazel version: 0.22.0

Signed-off-by: Yuchen Dai <silentdai@gmail.com>

* align envoy SHA in istio.deps with WORKSPACE

Signed-off-by: Yuchen Dai <silentdai@gmail.com>

* add comment above the uncomment local_repository

Signed-off-by: Yuchen Dai <silentdai@gmail.com>
2019-04-10 18:40:57 -07:00
Lizan Zhou 5a9945b4f0 update envoy to latest (#2158)
* update envoy to latest

Signed-off-by: Lizan Zhou <lizan@tetrate.io>

* update envoy with latest build fixes (#2147)

* fix build

Signed-off-by: Lizan Zhou <lizan@tetrate.io>

* fix build

Signed-off-by: Lizan Zhou <lizan@tetrate.io>

* fix formatting

* fix status match

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
2019-04-10 14:39:59 -07:00
Joshua Blatt 55c80965ea
Update API and import https://github.com/envoyproxy/envoy/pull/6263 (#2157)
* Update API and import https://github.com/envoyproxy/envoy/pull/6263

* Update istio/api
2019-03-21 21:41:12 -07:00
Dmitri Dolguikh 9d52640a64 Fixes environment-dependent failures in MixerFaultTest (#2144) 2019-03-21 21:00:52 -07:00
Joshua Blatt a5d5a46425
Update istio/api for 1.1rc5 (#2153) 2019-03-13 21:07:30 -07:00
Joshua Blatt 8ddb2aab27
Building 1.1rc4 (#2150) 2019-03-12 11:22:08 -07:00
Maria Skidanova 9d0bda2f57 Rc3. new API sha for proxy. (#2146)
* API sha for proxy

* API sha for proxy
2019-03-07 16:27:12 -08:00
Joshua Blatt f95f8530df
Revert "implement upstream secure bit (#2133)" (#2135)
This reverts commit d857bdd02a.
2019-03-01 16:34:55 -08:00
Maria Skidanova 1962d52c70
API sha for proxy (#2136) 2019-03-01 16:18:38 -08:00
Joshua Blatt d93b2a87b4
Deflake macos MixerFaultTest by broadening assertion ranges. (#2126)
* Deflake macos MixerFaultTest by broadening assertion ranges.

Fix flake in macos tests that was introduced by #2113

* Cleanup a few readability issues and add an assertion.

* More redability changes.
2019-02-28 21:59:54 -08:00
Kuat d857bdd02a implement upstream secure bit (#2133)
Signed-off-by: Kuat Yessenov <kuat@google.com>
2019-02-28 21:27:15 -08:00
Maria Skidanova 0b0d2c5319
API sha just changed, chanign it again for proxy (#2131) 2019-02-25 15:36:05 -08:00
Maria Skidanova d2073edd11
New api sha for proxy (#2130) 2019-02-25 14:23:41 -08:00
Joshua Blatt c442767be7
Add additional telemetry report counters (#2128)
* Added counters to track telemetry report result.

* reformat

* replace tabs with spaces

* Replace more tab with spaces.
2019-02-25 10:34:17 -08:00
Kuat b116ee7397 clang-6/gcc: compiler barking fix (#2123)
* compiler barking

Signed-off-by: Kuat Yessenov <kuat@google.com>

* piotrs fix

Signed-off-by: Kuat Yessenov <kuat@google.com>
2019-02-22 07:43:23 -08:00
Yangmin Zhu 9d6f2d3a5b log authn permissive mode only when config is received (#2125)
* log authn permissive mode only when config is received

Signed-off-by: Yangmin Zhu <ymzhu@google.com>

* fix format

* fix build
2019-02-20 18:56:28 -08:00
Jimmy Chen 97d17a545e Add Joshua into proxy OWNER (#2121) 2019-02-19 14:52:26 -08:00
Joshua Blatt fc273e117a
Pull in latest istio/api from release-1.1 branch (#2120) 2019-02-19 13:35:29 -08:00
Joshua Blatt c521e9a067
Add retries to policy checks on failed transport error (#2113)
* Add configurable retry to policy/quota checks that failed due to transport error.

* Added assertions on mixer filter stats to mixer fault test.

* Reformat

* Fix inaccurate comment.
`

* Fix asan warning (thanks @silentdai!) and exclude mixer_fault_test from
the asan and tsan sanitizers since it always times out.

* Fix bad prefix check
2019-02-19 11:59:20 -08:00
Joshua Blatt d086f97cf3
Additional counters for mixer policy check (#2118)
* Coalesce all memory for policy check requests and telemetry reports into shared pointers that live as long as a request's mixer filter instance.

* A few small fixups for the code review.

* Added finer-grained counters to mixer policy check
2019-02-15 16:17:58 -08:00
Joshua Blatt db38d03d0e
Coalesce all memory for checks and reports into shared pointers (#2117)
* Coalesce all memory for policy check requests and telemetry reports into shared pointers that live as long as a request's mixer filter instance.

* A few small fixups for the code review.

* Address some minor nits from code review.
2019-02-15 14:41:58 -08:00
Joshua Blatt f93cee690d
Added simple logging abstraction so mixer client logs can be relayed to envoy logs. (#2116)
* Added simple logging abstraction so mixer client logs can be relayed to envoy logs when running inside envoy, stderr when running standalone.

* Log threshold guards that prevent needless serialization of logging arguments are now embedded in the log macros.

* Format

* Added do/while guards around logging statements.
2019-02-15 12:20:20 -08:00
Joshua Blatt ea5e8afb79
Update to latest istio/api on release-1.1 branch (#2115)
* Update to latest istio/api on release-1.1 branch

* Update istio/api to latest release-1.1
2019-02-12 15:48:04 -08:00
Yangmin Zhu 879f8d5f31 Warn user of using mTLS PERMISSIVE mode and suggest to upgrade to STRICT mode (#2114)
* Warn user of using mTLS PERMISSIVE mode and suggest to upgrade to STRICT mode.

Signed-off-by: Yangmin Zhu <ymzhu@google.com>

* fix format

* check in constructor
2019-02-12 14:45:58 -08:00
Joshua Blatt fd4d3d5e10
Added client/server load test framework to find mixer faults. (#2105)
This is a load generator client + origin server I created to test the Mixer filter under various fault conditions using Envoy's client and server stacks. This work falls under [istio/istio#8224](https://github.com/istio/istio/issues/8224)

@PiotrSikora @jplevyak would love your feedback because it could be used for the wasm work and especially because this is the first >=C++11 code I've written

See test/integration/int_client_server_test.cc if you want to start with an example for context.

Another example that uses this framework to sandwich Envoy+Mixer filter between the load generator and multiple origin servers simulating Mixer servers can be found in [istio/istio#8224](https://github.com/istio/istio/issues/8224)
2019-02-12 10:58:34 -08:00
Piotr Sikora f999ede41a Update Envoy SHA to latest with deterministic hash (release-1.1). (#2109)
* Update Envoy SHA to latest with deterministic hash (release-1.1).

Signed-off-by: Piotr Sikora <piotrsikora@google.com>

* review: use lld linker for clang-asan and clang-tsan.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>

* review: export PATH.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2019-02-11 18:35:05 -08:00
Douglas Reid 3509b29a51 Add flag indicating current semantics of report batch (#2111)
* Add flag indicating current semantics of report batch

* Fix Unit Test
2019-02-08 16:29:15 -08:00
mandarjog 1ae5ab2ce8 whitelist kSourceNamespace attribute (#2100) 2019-01-31 12:37:01 -08:00
Lizan Zhou 95bec11b18 ignore istio.mixer in report (#2098)
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
2019-01-30 17:50:45 -08:00
mandarjog b6b4b5dd64 Forwarded attributes override statically configured Local Attributes (#2097)
* WIP

* add local and override tests

* revert attributes_builder

* white list forward attributes

* add tests with whitelist

* fix builder test for white listed attributes
2019-01-30 11:35:18 -08:00
Lizan Zhou 8f8c32138a add mixer error details into metadata (#2093)
* add mixer error details into metadata

Signed-off-by: Lizan Zhou <lizan@tetrate.io>

* format

Signed-off-by: Lizan Zhou <lizan@tetrate.io>

* review

Signed-off-by: Lizan Zhou <lizan@tetrate.io>

* comment

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
2019-01-25 17:12:08 -08:00
Lizan Zhou c8a1bf5d5c Fix build on macOS. (#2090) (#2094)
sha256sum shouldn't be necessary, since we use gsha256sum on macOS.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2019-01-25 11:04:34 -08:00
Venil Noronha 7738fa3d50 Upgrade Envoy to b3be5713f (#2091)
* Upgrade Envoy to b3be5713f

This updates Envoy SHA to b3be5713f2100ab5c40316e73ce34581245bd26a.

Signed-off-by: Venil Noronha <veniln@vmware.com>

* Update tls_utility paths

This updates the tls_utility library and include paths.

Signed-off-by: Venil Noronha <veniln@vmware.com>

* Fix http mixer filter

This adds the encodeMetadata implementation to the http mixer filter to
fix a build issue.

Signed-off-by: Venil Noronha <veniln@vmware.com>

* Fix sha256sum overwrite error

This removes the ln command from the CircleCI configuration to fix a
file overwrite error on macOS jobs.

Signed-off-by: Venil Noronha <veniln@vmware.com>
2019-01-24 17:32:01 -05:00
Kuat baf45ef2f6 use route directive regardless of rpc status (#2087)
* use route directive regardless of rpc status

Signed-off-by: Kuat Yessenov <kuat@google.com>

* log response code

Signed-off-by: Kuat Yessenov <kuat@google.com>
2019-01-23 10:44:43 -08:00
Yangmin Zhu cc6dc4abac Update Istio API to latest (1.1 branch) (#2084)
Signed-off-by: Yangmin Zhu <ymzhu@google.com>
2019-01-17 16:47:49 -08:00
Piotr Sikora d2d0c62a04 Update Envoy SHA to latest with protobuf.Any configs (release-1.1). (#2082)
* Update Envoy SHA to latest with protobuf.Any configs (release-1.1).

For istio/istio#10993.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>

* review: don't open /dev/stdout in tests.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2019-01-16 16:05:50 -08:00
Jimmy Chen 065e0ddfaf Use shared_ptr to protect members which are passed to capture list of lambda function. (#2083)
* fix bug

* introduce ControlData

* fix format

* update

* fix format

* Revise

* Pass ControlDataSharedPtr into Control and hold ref

* pass JwtAuthenticationConstSharedPtr into JwtAuthStore to hold ref

* Revise
2019-01-16 15:33:49 -08:00
Jimmy Chen 702ee43dea Removes dangling pointer in capture list of lambda function. (#2080)
* Replace this with members in capture list.

* update

* fix format
2019-01-15 11:39:50 -08:00
Quanjie Lin c98f781ea9 rename rbac permissive related attributes key due to envoy recent change (#2076)
* rename rbac permissive related attributes key due to envoy recent change

* rename
2019-01-07 16:02:44 -08:00