Skip to content

protobuf: update for google import#1321

Merged
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
hennna:transcoder-import
Jul 25, 2017
Merged

protobuf: update for google import#1321
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
hennna:transcoder-import

Conversation

@hennna
Copy link
Copy Markdown
Contributor

@hennna hennna commented Jul 24, 2017

This PR allows mapping from protobuf::util to other util namespaces in addition to plumbing through some other protobuf related mapping. Also one IPv6 related change. Needed for google import.

Http::Utility::sendLocalReply(*decoder_callbacks_, stream_reset_, Http::Code::BadRequest,
request_status.error_message().ToString());
request_status.error_message());

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@lizan @htuch it seems the ToString here is redundant. Is that correct?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think so if this is already a std::string.

Copy link
Copy Markdown
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Looks good.

if (!request_status.ok()) {
ENVOY_LOG(debug, "Transcoding request error " + request_status.ToString());
ENVOY_LOG(debug, "Transcoding request error " +
ProtobufTypes::FromString(request_status.ToString()));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This seems an identity function..

Http::Utility::sendLocalReply(*decoder_callbacks_, stream_reset_, Http::Code::BadRequest,
request_status.error_message().ToString());
request_status.error_message());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think so if this is already a std::string.

if (!request_status.ok()) {
ENVOY_LOG(debug, "Transcoding request error " + request_status.ToString());
ENVOY_LOG(debug,
"Transcoding request error " + ProtobufTypes::FromString(request_status.ToString()));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same deal here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Do you mean just can just have request_status without to and from string conversions?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why would you convert std::string to Protobuf::String and then back in the same expression?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My understanding is that this is util::Status -> Protobuf::String -> std::string.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh, I see, yes, make sense.


"admin": { "access_log_path": "/dev/null", "address": "tcp://{{ ip_loopback_address }}:0" },
"statsd_local_udp_port": 8125,
"statsd_udp_ip_address": "{{ ip_loopback_address }}:8125",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not protobuf related but this test fails in IPv6 only environments.

@mattklein123 mattklein123 merged commit e9bed79 into envoyproxy:master Jul 25, 2017
@hennna hennna deleted the transcoder-import branch July 26, 2017 15:02
rshriram pushed a commit to rshriram/envoy that referenced this pull request Oct 30, 2018
Automatic merge from submit-queue.

Sanitize JWT verification result in HTTP headers

**What this PR does / why we need it**: To defend the attack of injecting forged JWT verification results in HTTP headers, sanitize the JWT verification result when jwt_auth filter starts.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes envoyproxy#1321

**Special notes for your reviewer**:

**Release note**:

```release-note
```
nezdolik pushed a commit to nezdolik/envoy that referenced this pull request May 4, 2024
mathetake pushed a commit that referenced this pull request Mar 3, 2026
**Description**

AWS knowledge MCP server is subject to rate limits which causes flakey
tests.

If we need another public MCP, there are 39 others not including shopify
sites.


**Related Issues/PRs (if applicable)**
Fixes #1320

Signed-off-by: Adrian Cole <adrian@tetrate.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants