-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat: add option debug to conf headers to disable kong_debug header function #10054
Conversation
468e806
to
15f1f39
Compare
15f1f39
to
47525fd
Compare
Should we add a change log entry for this new config item? |
I think we need a change log entry for it. |
I suggest we add And not enable it by default, rather than introduce a new configuration option (perhaps even then only send these when requested with KONG_DEBUG request header). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest we add debug option here: [...]
I agree with @bungle on this one. We already have too many config options. I'd rather modify headers
to have a debug
option.
I'm sympathetic to our situation of too many configuration options and I'm generally fully onboard with situations around reusing configuration properties. In this specific case, I'm -1 and recommend adding a new configuration field instead. Here is my rationale:
What do you all think? |
I see both points that @hbagdi is saying. It will be very easy to miss that instead of I missed that this particular option will only act when the consumer request has the These two things separately would not change my opinion, but together they made me change my mind. Thank you, Harry. @attenuation could you please restore this PR to its previous state, using a single global variable for debugging?. Apologies for the back-and-forth. (I would recommend keeping a local copy of this PR as it is - with headers just in case) |
82229ff
to
274b103
Compare
274b103
to
532b3f7
Compare
5aa2f14
to
44aa8f0
Compare
@kikito Hi Enrique, I have restored the code base to the old version, please help me review it |
e352740
to
05635e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm preapproving this in case we are adding enable_debug_header because we cannot use debug_header directly. (Perhaps KONG_DEBUG_HEADER is already used for something else).
If we can rename it without issues, please rename it before merging.
If we must use something other than debug_header for some reason, then please merge as-is.
a0e472d
to
cdec7cb
Compare
4ff56d3
to
1be6dcf
Compare
Summary
add option debug to conf headers to disable kong_debug header function
Checklist
Full changelog
Issue reference
FTI-4521