forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make envoy_esp talk to Mixer. (envoyproxy#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.
- Loading branch information
1 parent
e941522
commit 4e25948
Showing
11 changed files
with
211 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
This Proxy will use Envoy and talk to Mixer server. | ||
|
||
|
||
## Build Mixer server | ||
|
||
* Follow https://github.com/istio/mixer/blob/master/doc/devel/development.md to set up environment, and build via: | ||
|
||
``` | ||
cd $(ISTIO)/mixer | ||
bazel build ...:all | ||
``` | ||
|
||
## Build Envoy proxy | ||
|
||
* Build target envoy_esp: | ||
|
||
``` | ||
bazel build //src/envoy/prototype:envoy_esp | ||
``` | ||
|
||
## How to run it | ||
|
||
* Start mixer server. In mixer folder run: | ||
|
||
``` | ||
bazel-bin/cmd/server/mixs server | ||
``` | ||
|
||
The server will run at port 9091 | ||
|
||
* Start backend Echo server. At ESP repo (https://github.com/cloudendpoints/esp) | ||
|
||
``` | ||
cd test/echo | ||
npm install | ||
node echo.js | ||
``` | ||
|
||
* Start Envoy proxy, run | ||
|
||
``` | ||
bazel-bin/src/envoy/prototype/envoy_esp -c src/envoy/prototype/envoy-esp.conf | ||
``` | ||
|
||
* Then issue HTTP request to proxy. | ||
|
||
``` | ||
curl http://localhost:9090/echo?key=API-KEY -d "hello world" | ||
``` | ||
|
||
## How to add attributes or facts | ||
|
||
Now only some of attributes are passed to mixer. If you want to add more attributes, you can | ||
modify this [file](https://gcp-apis.git.corp.google.com/esp/+/test/envoy-mixer/src/api_manager/mixer/mixer.cc). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.