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

oauth2 filter: Make OAuth scopes configurable. #14034

Closed

Conversation

andreyprezotto
Copy link
Contributor

Commit Message: Makes OAuth scopes configurable.
New optional parameter 'auth_scopes' added to the filter. The default value is 'user' (if not provided) to avoid breaking changes to users updating to the latest version.

Additional Description: Added log line to help debugging.
Risk Level: Low
Testing: Unit tests updated to match and cover the new parameter. Locally tested the generated docker image.
Docs Changes: Added the new parameter to the docs
Release Notes: Updated current.rst file
Platform Specific Features:
Fixes #13766

andreyprezotto and others added 25 commits November 16, 2020 08:24
Signed-off-by: andreyprezotto <andreypp@gmail.com>

Signed-off-by: andreyprezotto <andreyprezotto@iheartmedia.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
This reverts commit 73d3ce1f343f36690b4a995c885fe0035f176b9e.

Signed-off-by: andreyprezotto <andreypp@gmail.com>
This reverts commit a421de1628d5ae6591958fe1f2e61768927d4271.

Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
@repokitteh-read-only
Copy link

Hi @andreyprezotto, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #14034 was opened by andreyprezotto.

see: more, trace.

@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #14034 was opened by andreyprezotto.

see: more, trace.

Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
kyessenov and others added 18 commits November 24, 2020 16:46
Signed-off-by: Kuat Yessenov <kuat@google.com>
I ended up burning several hours dealing with issues around this the
other day, I'm hoping others don't :)

Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
The client request stream can be deleted under the call stack of Envoy::IntegrationCodecClient::startRequest if the proxy replies quickly enough. Attempts to send an end stream on that request result in use-after-free on the client stream in cases where the client processed the full reply inside startRequest.

Fixes envoyproxy#12960

Signed-off-by: Antonio Vicente <avd@google.com>
Signed-off-by: Greg Greenway <ggreenway@apple.com>
Signed-off-by: Sotiris Nanopoulos <sonanopo@microsoft.com>
Signed-off-by: JaredTan95 <jian.tan@daocloud.io>
…14099)

This is a regression test to cover the issue underlying
envoyproxy#14066.

Risk level: Low
Testing: Validating manually verify.sh passes, CI.

Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Christoph Pakulski <christoph@tetrate.io>
Co-authored-by: Matt Klein <mklein@lyft.com>
Co-authored-by: Christoph Pakulski <christoph@tetrate.io>
Signed-off-by: Bill Chung <bill@mercari.com>
- Requires removing --output_base flag to Bazel startup options
- The TEST_TMPDIR and BUILD_DIR bind mounts from the host are where
  Bazel will place build output etc.
- Allowing Bazel to place build and test output there will give the host
  access to the data to upload

Signed-off-by: Sunjay Bhatia <sunjayb@vmware.com>
Co-authored-by: William A Rowe Jr <wrowe@vmware.com>
…#14131)

This fixes a regression which resulted in the downstreamRemoteAddress
on the StreamInfo for a connection not having the address supplied by
the proxy protocol filter, but instead having the address of the
directly connected peer.

This issue does not affect HTTP filters.

Fixes envoyproxy#14087

Signed-off-by: Greg Greenway <ggreenway@apple.com>
… is marked dead by Lua GC (envoyproxy#14092)

Fixes envoyproxy#14091

The problem and fix is similiar to envoyproxy#4312

Risk Level: Low
Testing: regression test, manual testing
Docs Changes: N/A
Release Notes: N/A

Signed-off-by: Marcin Falkowski <marcin.falkowski@allegro.pl>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
Signed-off-by: andreyprezotto <andreypp@gmail.com>
- auth_scopes is now repeated string
- scope values are now URL encoded in the request

Signed-off-by: andreyprezotto <andreypp@gmail.com>
@repokitteh-read-only repokitteh-read-only bot added the deps Approval required for changes to Envoy's external dependencies label Nov 24, 2020
@repokitteh-read-only
Copy link

CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to (bazel/.*repos.*\.bzl)|(bazel/dependency_imports\.bzl)|(api/bazel/.*\.bzl)|(.*/requirements\.txt)|(.*\.patch).

🐱

Caused by: #14034 was synchronize by andreyprezotto.

see: more, trace.

@andreyprezotto
Copy link
Contributor Author

Closing this PR as I pushed my rebased branch into it, and the changes are now messy.
I will issue a new PR to replace this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api deps Approval required for changes to Envoy's external dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make OAuth scopes configurable