Skip to content

Instantly share code, notes, and snippets.

@JaredTan95
Last active December 14, 2022 06:26
Show Gist options
  • Save JaredTan95/2162b1b477541dfe1be3c3715f838147 to your computer and use it in GitHub Desktop.
Save JaredTan95/2162b1b477541dfe1be3c3715f838147 to your computer and use it in GitHub Desktop.
envoy crashed with invalid sw8 header

hi, I recently found that if envoy received header with invalid sw8 format will be crashed.

wecom-temp-742021-76e879f53bd3f8948c1e63b9336d372c

  • Envoy version testd: 1.22 and latest
  • Envoy config yaml with tracing provider:
tracing:
            provider:
              name: envoy.tracers.skywalking
              typed_config:
                "@type": type.googleapis.com/envoy.config.trace.v3.SkyWalkingConfig
                grpc_service:
                  envoy_grpc:
                    cluster_name: skywalking
                  timeout: 0.250s
                client_config:
                  service_name: envoy-proxy-front
                  instance_name: envoy-proxy-front
  • reduce request:
curl http://localhost:10000 -XPOST -H "sw8:1-YTI1MjM0N2ItNTU0Yi00YTM2LWFhOWEtM2U3MGIyYzY5NGMx--653885944261705919-L21lbWJlcmluZm8vb3AvdG9JbmFjdGl2ZVN0YXR1cw==---"  -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment