GH-23686: SOAP: redact more headers by default, add keep_headers option - #23698
DanielEScherzer wants to merge 4 commits into
Conversation
|
@php/release-managers-86 can you please let me know if this needs to be in by the branch cut? I'm unsure if this counts as a new feature that would be blocked by the feature freeze - it adds more options, but the motivation is to allow opting out of the bug fix |
This comment was marked as resolved.
This comment was marked as resolved.
0b45594 to
0cfbf95
Compare
This comment was marked as resolved.
This comment was marked as resolved.
9d85384 to
c03aa23
Compare
|
@mbeccati and I agree this can go into 8.6 |
c03aa23 to
16464a7
Compare
|
This should be ready for review, ideally we should merge it in the next two weeks so that it is in RC3 |
16464a7 to
c25f6dd
Compare
c25f6dd to
ab9f64b
Compare
|
Okay
hopefully should be ready for another round of review |
| redaction &= ~REDACT_COOKIE; | ||
| } | ||
| if (redaction == REDACT_NONE) { | ||
| zend_string_release(lc_headers); |
There was a problem hiding this comment.
| zend_string_release(lc_headers); | |
| zend_string_release(lc_headers); | |
| zend_string_release(flat_headers); |
|
If I'm reading the suggestions correctly, they are to handle headers that are stored as arrays properly - but the tests suggests that they are already handled? Looks like this is because $context = stream_context_create([
'http' => [
// having a protocol here means that SOAP won't add it itself
'protocol_version' => 1.1,
'header' => [
"X-Authorization: This should be kept",
"Authorization: This should be removed",
"X-Proxy-Authorization: This should also be kept",
"Proxy-Authorization: This should also be removed",
"X-Cookie: Last one to keep",
"Cookie: Last one to remove",
]
],
]);good catch - I hadn't addressed array headers originally since on #23686 I was told that they could be ignored, but you're right that we should probably address them, done |
ab9f64b to
b96d6d1
Compare
No description provided.