Skip to content

Add integration test that covers STS flow from Envoy to Auth backend#20173

Merged
istio-testing merged 8 commits intoistio:masterfrom
JimmyCYJ:proxy-sts-test
Jan 21, 2020
Merged

Add integration test that covers STS flow from Envoy to Auth backend#20173
istio-testing merged 8 commits intoistio:masterfrom
JimmyCYJ:proxy-sts-test

Conversation

@JimmyCYJ
Copy link
Copy Markdown
Member

@JimmyCYJ JimmyCYJ commented Jan 14, 2020

Added a test framework which starts a STS server, a auth backend, a XDS server and an Envoy.
Envoy loads bootstrap config, and the config specifies gRPC connection to XDS server. The gRPC connection config specifies secure token exchange (STS) for dynamic token.
The gRPC library has a client that sends a STS request to the STS server. STS server calls auth backend for dynamic token, and STS server returns the dyanmic token to the client.
On receiving the dyanmic token, Envoy sets up XDS stream to the XDS server, and the server validates that dynamic token. After token validation, the XDS server starts pushing config over that stream.
A basic test is added using this framework.

#20133

@JimmyCYJ JimmyCYJ requested review from a team and liminw January 14, 2020 19:37
@JimmyCYJ JimmyCYJ requested a review from a team as a code owner January 14, 2020 19:37
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Jan 14, 2020
@istio-testing istio-testing added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jan 14, 2020
@JimmyCYJ
Copy link
Copy Markdown
Member Author

/test unit-tests_istio

@howardjohn
Copy link
Copy Markdown
Member

howardjohn commented Jan 14, 2020 via email

Copy link
Copy Markdown
Contributor

@liminw liminw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Copy Markdown
Contributor

@mandarjog mandarjog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

This STS server can be used for telemetry STS testing as well.

@JimmyCYJ
Copy link
Copy Markdown
Member Author

Thanks a lot for the review! @liminw and @mandarjog

@istio-testing istio-testing merged commit 6ce1313 into istio:master Jan 21, 2020
@JimmyCYJ JimmyCYJ deleted the proxy-sts-test branch January 21, 2020 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/security cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants