Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kickoff sds api #1933

Merged
merged 83 commits into from
Aug 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
0646709
update envoy
kyessenov Jul 3, 2018
5b05f36
Merge pull request #1838 from kyessenov/extra_field
hklai Jul 3, 2018
0bfb526
update Envoy's SHA to latest
vadimeisenbergibm Jul 4, 2018
eb2afdd
Merge branch 'release-1.0' into update_envoy_sha_3b05bffcbaedaf6d112b…
vadimeisenbergibm Jul 8, 2018
09a0919
Merge pull request #1839 from vadimeisenbergibm/update_envoy_sha_3b05…
hklai Jul 9, 2018
f004f04
implement destination.principal
kyessenov Jul 9, 2018
0bbb1a0
missing test
kyessenov Jul 9, 2018
ff0bddd
review
kyessenov Jul 9, 2018
93e6641
add AttributeName::kConnectionRequestedServerName
vadimeisenbergibm Jul 10, 2018
777b38f
fix format
vadimeisenbergibm Jul 10, 2018
cb543c1
add GetRequestedServerName() to TCP CheckData
vadimeisenbergibm Jul 10, 2018
2ead919
add building attribute ConnectionRequestedServerName
vadimeisenbergibm Jul 10, 2018
b45b25d
test building attribute ConnectionRequestedServerName
vadimeisenbergibm Jul 10, 2018
83dd6a0
add GetRequestedServerName() to tcp mixer filter
vadimeisenbergibm Jul 10, 2018
0091e10
fix compilation errors
vadimeisenbergibm Jul 10, 2018
79fa89f
use explicit conversion from absl::string_view to std::string
vadimeisenbergibm Jul 10, 2018
336a0f0
check that the requested server name is not emtpy in attributes builder
vadimeisenbergibm Jul 10, 2018
1389681
fixed a compilation error
vadimeisenbergibm Jul 10, 2018
a129dbf
add GetRequestedServerName to http mixer filters (check_data)
vadimeisenbergibm Jul 10, 2018
b1967a2
add GetRequestedServerName to http MockCheckData
vadimeisenbergibm Jul 10, 2018
b874c59
specify the class of a method
vadimeisenbergibm Jul 10, 2018
43e4bea
add setting connection.requested_server_name to the http attributes
vadimeisenbergibm Jul 10, 2018
715ce48
qualify Return by testing::
vadimeisenbergibm Jul 10, 2018
c3ab69c
use connection_ as a pointer
vadimeisenbergibm Jul 10, 2018
76fe1d8
add explicit conversion from absl::string_view to std::string
vadimeisenbergibm Jul 10, 2018
3da5327
add missing mock call
vadimeisenbergibm Jul 10, 2018
1464e5e
Merge pull request #1843 from vadimeisenbergibm/add_connection_reques…
hklai Jul 10, 2018
4ea0ea0
Revert "Add connection requested server name attribute to TCP read fi…
hklai Jul 10, 2018
1a62f8b
Merge pull request #1844 from istio/revert-1843-add_connection_reques…
hklai Jul 10, 2018
4a02b92
update the API SHA (https://github.com/istio/api/pull/575)
vadimeisenbergibm Jul 11, 2018
5aab569
Merge pull request #1846 from vadimeisenbergibm/update_api_sha_294a44…
hklai Jul 11, 2018
d7ec5e0
add the connection.requested_server_name attribute to tcp and http fi…
vadimeisenbergibm Jul 11, 2018
74ea402
add missing parentheses
vadimeisenbergibm Jul 11, 2018
8f73bfd
add AttributeName::kConnectionRequestedServerName
vadimeisenbergibm Jul 11, 2018
1c88ca6
fix cardinality of a mock method
vadimeisenbergibm Jul 11, 2018
eab545d
fix the signature of TCP Filter::GetRequestedServerName()
vadimeisenbergibm Jul 11, 2018
5c1a000
add declarations of GetRequestedServerName() to tcp Filter/http Check…
vadimeisenbergibm Jul 11, 2018
dd2b0ea
Merge pull request #1848 from vadimeisenbergibm/add_connection_reques…
hklai Jul 11, 2018
15115c6
add peer and local distinction
kyessenov Jul 11, 2018
817e3f9
Merge pull request #1842 from kyessenov/destination_user
hklai Jul 11, 2018
a5b4876
Add connection open event.
bianpengyuan Jul 12, 2018
6e4dc12
update comment.
bianpengyuan Jul 12, 2018
210783d
Replace boolean with enum.
bianpengyuan Jul 12, 2018
5122daa
Merge pull request #1849 from bianpengyuan/connection-open-report
hklai Jul 13, 2018
4c5d94b
extract origin IP
kyessenov Jul 13, 2018
f85f49c
Update Envoy SHA to latest. (#1852)
PiotrSikora Jul 13, 2018
91f9566
Merge pull request #1851 from kyessenov/origin_ip
hklai Jul 16, 2018
121faee
Revert "Update Envoy SHA to latest. (#1852)" (#1854)
mandarjog Jul 17, 2018
6eb534e
update api sha (#1855)
rkpagadala Jul 18, 2018
d259ac4
Update Envoy SHA to latest. (#1857)
PiotrSikora Jul 18, 2018
f47be07
Update Envoy SHA for WebSocket fix (#1859)
rshriram Jul 18, 2018
b4cbeb2
Revert "Update Envoy SHA for WebSocket fix (#1859)" (#1860)
rshriram Jul 18, 2018
01e1626
Update Envoy SHA to latest. (#1862)
PiotrSikora Jul 19, 2018
8f33827
Update istio.dep as valid json (#1863)
chxchx Jul 19, 2018
528ae4e
Merge pull request #1870 from rshriram/master
rshriram Jul 23, 2018
c09169a
Update software in the build image used by CircleCI. (#1874)
PiotrSikora Jul 25, 2018
9c21253
Improve build times on CircleCI. (#1875)
PiotrSikora Jul 25, 2018
82e0790
Install ninja in the build image used by CircleCI. (#1888)
PiotrSikora Jul 30, 2018
61f5a41
merge 1.0 branch to master (#1885)
rkpagadala Aug 1, 2018
c42e08b
Remove fallback for attribute builder when authn filter is not availa…
diemtvu Aug 2, 2018
1da6523
Update Envoy SHA to latest with ORIGINAL_DST_LB fix. (#1894)
PiotrSikora Aug 6, 2018
afc72d7
Using request dynamic metadata to pass data from JWT filter to authn …
diemtvu Aug 7, 2018
1d3e77f
Add the groups claim to the attribute request.auth.groups (#1896)
lei-tang Aug 7, 2018
3f528b4
add context.proxy_error_code to report attributes (#1897)
mandarjog Aug 7, 2018
74f0ee2
Add integration test with JWT+AuthN+Mixer filter chain (#1899)
diemtvu Aug 8, 2018
99229a8
send rbac shadow policies metrics to mixer (#1900)
quanjielin Aug 9, 2018
adea4d0
Use dynamic metadata to for authentication filter output. (#1901)
diemtvu Aug 9, 2018
5d09f41
Add two new attributes: request.url_path and request.queries (#1837)
bianpengyuan Aug 10, 2018
ec327ad
update ENVOY_SHA (#1904)
quanjielin Aug 10, 2018
7fde77a
skip empty sni (#1909)
kyessenov Aug 10, 2018
b1f4e7e
add rbac filter to istio http integration test. (#1907)
yangminzhu Aug 14, 2018
5d42471
Fix macOS build on CircleCI. (#1916)
PiotrSikora Aug 14, 2018
b49589a
Install clang-format in the build image used by CircleCI. (#1917)
PiotrSikora Aug 14, 2018
c63d841
Provide source version information in the binary. (#1915)
PiotrSikora Aug 14, 2018
585abec
fixed broken links to dev guide and contribution guide (#1913)
trabetti Aug 14, 2018
4ced9e7
Update clang to 6.0 and use it for release binaries. (#1914)
PiotrSikora Aug 14, 2018
c5282b6
Update Envoy SHA to latest with LcTrie optimizations. (#1918)
PiotrSikora Aug 15, 2018
1fc6253
add debug logs for collecting rbac attributes (#1922)
quanjielin Aug 15, 2018
4865583
populate source user without authn (#1926)
kyessenov Aug 17, 2018
4ee7e8e
update API sha. (#1927)
yangminzhu Aug 21, 2018
a32a587
Add a check cache test for string map sub keys (#1931)
qiwzhang Aug 21, 2018
9d18908
update Envoy SHA
JimmyCYJ Aug 21, 2018
6143e19
fix compile issue.
JimmyCYJ Aug 21, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .circleci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ FROM circleci/openjdk:latest

# clang is used for TSAN and ASAN tests
RUN sudo sh -c 'curl http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -'
RUN sudo sh -c 'echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-5.0 main" > /etc/apt/sources.list.d/llvm.list'
RUN sudo sh -c 'echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-6.0 main" > /etc/apt/sources.list.d/llvm.list'

RUN sudo apt-get update && \
sudo apt-get -y install \
wget software-properties-common make cmake python python-pip \
wget software-properties-common make cmake python python-pip pkg-config \
zlib1g-dev bash-completion bc libtool automake zip time g++-6 gcc-6 \
clang-5.0 rsync
clang-6.0 clang-format-6.0 rsync ninja-build

# ~100M, depends on g++, zlib1g-dev, bash-completions
RUN curl -Lo /tmp/bazel.deb https://github.com/bazelbuild/bazel/releases/download/0.11.0/bazel_0.11.0-linux-x86_64.deb && \
RUN curl -Lo /tmp/bazel.deb https://github.com/bazelbuild/bazel/releases/download/0.15.2/bazel_0.15.2-linux-x86_64.deb && \
sudo dpkg -i /tmp/bazel.deb && rm /tmp/bazel.deb


# Instead of "apt-get -y install golang"
RUN cd /tmp && \
wget https://redirector.gvt1.com/edgedl/go/go1.9.2.linux-amd64.tar.gz && \
wget https://redirector.gvt1.com/edgedl/go/go1.10.3.linux-amd64.tar.gz && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf go1.9.2.linux-amd64.tar.gz && \
sudo tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz && \
sudo chown -R circleci /usr/local/go && \
sudo ln -s /usr/local/go/bin/go /usr/local/bin

Expand Down
2 changes: 1 addition & 1 deletion .circleci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ HUB ?=
PROJECT ?= istio

# Using same naming convention as istio/istio
VERSION ?= go1.9-bazel0.11
VERSION ?= go1.10-bazel0.15-clang6.0
IMG ?= ci

# Build a local image, can be used for testing with circleci command line.
Expand Down
71 changes: 53 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,62 +3,97 @@ version: 2
jobs:
build:
docker:
- image: istio/ci:go1.9-bazel0.11
- image: istio/ci:go1.10-bazel0.15-clang6.0
environment:
- BAZEL_TEST_ARGS: "--test_env=ENVOY_IP_TEST_VERSIONS=v4only --test_output=all"
resource_class: xlarge
steps:
- checkout
- restore_cache:
keys:
- bazel-cache-{{ checksum "WORKSPACE" }}
- restore_cache:
keys:
- repo-cache-{{ checksum "WORKSPACE" }}
- linux_fastbuild-bazel-cache-{{ checksum "WORKSPACE" }}
# To build docker containers or run tests in a docker
- setup_remote_docker
- run: rm ~/.gitconfig
- run: make check
- run: make deb BAZEL_BUILD_ARGS="-j 4"
- run: make deb
- run: make test
- run: make test_asan
- run: make test_tsan
- save_cache:
key: repo-cache-{{ checksum "WORKSPACE" }}
paths:
- /home/circleci/.repo
- save_cache:
key: bazel-cache-{{ checksum "WORKSPACE" }}
key: linux_fastbuild-bazel-cache-{{ checksum "WORKSPACE" }}
paths:
- /home/circleci/.cache/bazel
- store_artifacts:
path: /home/circleci/project/bazel-bin/tools/deb/istio-proxy.deb
destination: /proxy/deb
- store_artifacts:
path: /home/circleci/project/bazel-bin/src/envoy/mixer/envoy
path: /home/circleci/project/bazel-bin/src/envoy/envoy
destination: /proxy/bin
linux_asan:
docker:
- image: istio/ci:go1.10-bazel0.15-clang6.0
environment:
- BAZEL_TEST_ARGS: "--test_env=ENVOY_IP_TEST_VERSIONS=v4only --test_output=all"
resource_class: xlarge
steps:
- checkout
- restore_cache:
keys:
- linux_asan-bazel-cache-{{ checksum "WORKSPACE" }}
# To build docker containers or run tests in a docker
- setup_remote_docker
- run: rm ~/.gitconfig
- run: make test_asan
- save_cache:
key: linux_asan-bazel-cache-{{ checksum "WORKSPACE" }}
paths:
- /home/circleci/.cache/bazel
linux_tsan:
docker:
- image: istio/ci:go1.10-bazel0.15-clang6.0
environment:
- BAZEL_TEST_ARGS: "--test_env=ENVOY_IP_TEST_VERSIONS=v4only --test_output=all"
resource_class: xlarge
steps:
- checkout
- restore_cache:
keys:
- linux_tsan-bazel-cache-{{ checksum "WORKSPACE" }}
# To build docker containers or run tests in a docker
- setup_remote_docker
- run: rm ~/.gitconfig
- run: make test_tsan
- save_cache:
key: linux_tsan-bazel-cache-{{ checksum "WORKSPACE" }}
paths:
- /home/circleci/.cache/bazel
macos:
macos:
xcode: "9.3.0"
environment:
- BAZEL_STARTUP_ARGS: "--output_base /Users/distiller/.cache/bazel"
- BAZEL_TEST_ARGS: "--test_env=ENVOY_IP_TEST_VERSIONS=v4only --test_output=all"
- CC: clang
- CXX: clang++
steps:
- run: sudo ntpdate -vu time.apple.com
- run: brew install automake bazel cmake coreutils go libtool wget
- run: brew install bazel cmake coreutils go libtool ninja wget
- checkout
- restore_cache:
keys:
- bazel-cache-{{ checksum "WORKSPACE" }}-macos
- macos_fastbuild_v2-bazel-cache-{{ checksum "WORKSPACE" }}
- run: rm ~/.gitconfig
- run: make build_envoy
- run: make test
- save_cache:
key: bazel-cache-{{ checksum "WORKSPACE" }}-macos
key: macos_fastbuild_v2-bazel-cache-{{ checksum "WORKSPACE" }}
paths:
- /home/circleci/.cache/bazel
- /Users/distiller/.cache/bazel

workflows:
version: 2
all:
jobs:
- build
- linux_asan
- linux_tsan
- macos
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Contribution guidelines

So, you want to hack on the Istio proxy? Yay! Please refer to Istio's overall
[contribution guidelines](https://github.com/istio/istio/blob/master/DEV-GUIDE.md)
[contribution guidelines](https://github.com/istio/community/blob/master/CONTRIBUTING.md)
to find out how you can help.
27 changes: 20 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,42 @@ TOP := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
SHELL := /bin/bash
LOCAL_ARTIFACTS_DIR ?= $(abspath artifacts)
ARTIFACTS_DIR ?= $(LOCAL_ARTIFACTS_DIR)
BAZEL_STARTUP_ARGS ?= --batch
BAZEL_STARTUP_ARGS ?=
BAZEL_BUILD_ARGS ?=
BAZEL_TEST_ARGS ?=
HUB ?=
TAG ?=
ifeq "$(origin CC)" "default"
CC := clang-6.0
endif
ifeq "$(origin CXX)" "default"
CXX := clang++-6.0
endif

build:
@bazel $(BAZEL_STARTUP_ARGS) build $(BAZEL_BUILD_ARGS) //...
CC=$(CC) CXX=$(CXX) bazel $(BAZEL_STARTUP_ARGS) build $(BAZEL_BUILD_ARGS) //...
@bazel shutdown

# Build only envoy - fast
build_envoy:
bazel $(BAZEL_STARTUP_ARGS) build $(BAZEL_BUILD_ARGS) //src/envoy/mixer:envoy
CC=$(CC) CXX=$(CXX) bazel $(BAZEL_STARTUP_ARGS) build $(BAZEL_BUILD_ARGS) //src/envoy:envoy
@bazel shutdown

clean:
@bazel clean
@bazel shutdown

test:
bazel $(BAZEL_STARTUP_ARGS) test $(BAZEL_TEST_ARGS) //...
CC=$(CC) CXX=$(CXX) bazel $(BAZEL_STARTUP_ARGS) test $(BAZEL_TEST_ARGS) //...
@bazel shutdown

test_asan:
CC=clang-5.0 CXX=clang++-5.0 bazel $(BAZEL_STARTUP_ARGS) test $(BAZEL_TEST_ARGS) --config=clang-asan //...
CC=$(CC) CXX=$(CXX) bazel $(BAZEL_STARTUP_ARGS) test $(BAZEL_TEST_ARGS) --config=clang-asan //...
@bazel shutdown

test_tsan:
CC=clang-5.0 CXX=clang++-5.0 bazel $(BAZEL_STARTUP_ARGS) test $(BAZEL_TEST_ARGS) --config=clang-tsan //...
CC=$(CC) CXX=$(CXX) bazel $(BAZEL_STARTUP_ARGS) test $(BAZEL_TEST_ARGS) --config=clang-tsan //...
@bazel shutdown

check:
@script/check-license-headers
Expand All @@ -50,7 +62,8 @@ artifacts: build
@script/push-debian.sh -c opt -p $(ARTIFACTS_DIR)

deb:
@bazel build tools/deb:istio-proxy ${BAZEL_BUILD_ARGS}
CC=$(CC) CXX=$(CXX) bazel $(BAZEL_STARTUP_ARGS) build $(BAZEL_BUILD_ARGS) //tools/deb:istio-proxy
@bazel shutdown


.PHONY: build clean test check artifacts
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ bind(
)

# When updating envoy sha manually please update the sha in istio.deps file also
ENVOY_SHA = "93d96b52b47ac2f296379c15b03946cb33c58252"
ENVOY_SHA = "aa8053b1e8f7d02e1bb0c2a44e78688643248ad1"

http_archive(
name = "envoy",
strip_prefix = "envoy-" + ENVOY_SHA,
url = "https://github.com/envoyproxy/envoy/archive/" + ENVOY_SHA + ".zip",
url = "https://github.com/istio/envoy/archive/" + ENVOY_SHA + ".zip",
)

load("@envoy//bazel:repositories.bzl", "envoy_dependencies")
Expand Down
27 changes: 17 additions & 10 deletions include/istio/control/http/check_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <map>
#include <string>

#include "src/istio/authn/context.pb.h"
#include "google/protobuf/struct.pb.h"

namespace istio {
namespace control {
Expand All @@ -38,15 +38,18 @@ class CheckData {
// Get downstream tcp connection ip and port.
virtual bool GetSourceIpPort(std::string *ip, int *port) const = 0;

// If SSL is used, get origin user name.
virtual bool GetSourceUser(std::string *user) const = 0;
// If SSL is used, get peer or local certificate SAN URI.
virtual bool GetPrincipal(bool peer, std::string *user) const = 0;

// Get request HTTP headers
virtual std::map<std::string, std::string> GetRequestHeaders() const = 0;

// Returns true if connection is mutual TLS enabled.
virtual bool IsMutualTLS() const = 0;

// Get requested server name, SNI in case of TLS
virtual bool GetRequestedServerName(std::string *name) const = 0;

// These headers are extracted into top level attributes.
// This is for standard HTTP headers. It supports both HTTP/1.1 and HTTP2
// They can be retrieved at O(1) speed by environment (Envoy).
Expand Down Expand Up @@ -78,14 +81,18 @@ class CheckData {
virtual bool FindCookie(const std::string &name,
std::string *value) const = 0;

// If the request has a JWT token and it is verified, get its payload as
// string map, and return true. Otherwise return false.
virtual bool GetJWTPayload(
std::map<std::string, std::string> *payload) const = 0;
// Returns a pointer to the authentication result from request info dynamic
// metadata, if available. Otherwise, returns nullptr.
virtual const ::google::protobuf::Struct *GetAuthenticationResult() const = 0;

// Get request url path, which strips query part from the http path header.
// Return true if url path is found, otherwise return false.
virtual bool GetUrlPath(std::string *url_path) const = 0;

// If the request has authentication result in header, parses data into the
// output result; returns true if success. Otherwise, returns false.
virtual bool GetAuthenticationResult(istio::authn::Result *result) const = 0;
// Get request queries with string map format. Return true if query params are
// found, otherwise return false.
virtual bool GetRequestQueryParams(
std::map<std::string, std::string> *query_params) const = 0;
};

// An interfact to update request HTTP headers with Istio attributes.
Expand Down
8 changes: 8 additions & 0 deletions include/istio/control/http/report_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,20 @@ class ReportData {
uint64_t response_body_size;
std::chrono::nanoseconds duration;
int response_code;
std::string response_flags;
};
virtual void GetReportInfo(ReportInfo* info) const = 0;

// Get destination ip/port.
virtual bool GetDestinationIpPort(std::string* ip, int* port) const = 0;

// Get Rbac attributes.
struct RbacReportInfo {
std::string permissive_resp_code;
std::string permissive_policy_id;
};
virtual bool GetRbacReportInfo(RbacReportInfo* report_info) const = 0;

// Get upstream host UID. This value overrides the value in the report bag.
virtual bool GetDestinationUID(std::string* uid) const = 0;

Expand Down
7 changes: 5 additions & 2 deletions include/istio/control/tcp/check_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ class CheckData {
// Get downstream tcp connection ip and port.
virtual bool GetSourceIpPort(std::string* ip, int* port) const = 0;

// If SSL is used, get origin user name.
virtual bool GetSourceUser(std::string* user) const = 0;
// If SSL is used, get peer or local certificate SAN URI.
virtual bool GetPrincipal(bool peer, std::string* user) const = 0;

// Returns true if connection is mutual TLS enabled.
virtual bool IsMutualTLS() const = 0;

// Get requested server name, SNI in case of TLS
virtual bool GetRequestedServerName(std::string* name) const = 0;

// Get downstream tcp connection id.
virtual std::string GetConnectionId() const = 0;
};
Expand Down
8 changes: 8 additions & 0 deletions include/istio/control/tcp/report_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ class ReportData {

// Get upstream host UID. This value overrides the value in the report bag.
virtual bool GetDestinationUID(std::string* uid) const = 0;

// ConnectionEvent is used to indicates the tcp connection event in Report
// call.
enum ConnectionEvent {
OPEN = 0,
CLOSE,
CONTINUE,
};
};

} // namespace tcp
Expand Down
12 changes: 2 additions & 10 deletions include/istio/control/tcp/request_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,8 @@ class RequestHandler {
CheckData* check_data, ::istio::mixerclient::CheckDoneFunc on_done) = 0;

// Make report call.
// This can be called multiple times for long connection.
// TODO(JimmyCYJ): Let TCP filter use
// void Report(ReportData* report_data, bool is_final_report), and deprecate
// this method.
virtual void Report(ReportData* report_data) = 0;

// Make report call.
// If is_final_report is true, report all attributes. Otherwise, report delta
// attributes.
virtual void Report(ReportData* report_data, bool is_final_report) = 0;
virtual void Report(ReportData* report_data,
ReportData::ConnectionEvent event) = 0;
};

} // namespace tcp
Expand Down
2 changes: 1 addition & 1 deletion include/istio/utils/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ cc_library(
"attribute_names.h",
],
visibility = ["//visibility:public"],
)
)
Loading