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

Backport of Add truncation to body into release/1.16.x #17746

Conversation

hc-github-team-consul-core
Copy link
Collaborator

Backport

This PR is auto-generated from #17723 to be assessed for backporting due to the inclusion of the label backport/1.16.

The below text is copied from the body of the original PR.


Description

There is a bug in the error logs where the entire body of the request is output. Instead of using the request body in the error we should be using the body of the response and truncating it to a reasonable size and add an ellipsis.

Testing & Reproduction steps

We see this in our error codes with a large payload of metrics (https://go.hashi.co/cc-5248)

Links

DD Link to example of issue: https://go.hashi.co/cc-5248

PR Checklist

  • updated test coverage
  • [n/a] external facing docs updated
  • appropriate backport labels added
  • not a security concern

Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/chappie/CC-5248/externally-relative-blowfish branch from c7d9075 to 7e881ed Compare June 14, 2023 18:17
@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/chappie/CC-5248/externally-relative-blowfish branch from 54146ee to b00f833 Compare June 14, 2023 18:17
@hc-github-team-consul-core hc-github-team-consul-core enabled auto-merge (squash) June 14, 2023 18:17
Copy link
Collaborator

Choose a reason for hiding this comment

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

Auto approved Consul Bot automated PR

@vercel vercel bot temporarily deployed to Preview – consul June 14, 2023 18:23 Inactive
@hc-github-team-consul-core hc-github-team-consul-core merged commit 437e3c0 into release/1.16.x Jun 14, 2023
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/chappie/CC-5248/externally-relative-blowfish branch June 14, 2023 18:31
@chapmanc chapmanc added the theme/enterprise Related to the Enterprise version of Consul (see https://www.consul.io/docs/enterprise) label Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/enterprise Related to the Enterprise version of Consul (see https://www.consul.io/docs/enterprise)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants