Skip to content

Graceful handling of empty :authority header #5944

Description

@htuch

Today, when nghttp2 observes an empty :authority, it rejects the HEADERS frame and resets the stream. It seems this is problematic, since it seems legitimate to have an empty :authority, similar to an empty host, see https://tools.ietf.org/html/rfc7230#section-5.4.

Should we have a default authority configurable for HCM that is used when :authority is empty? My inclination is to add this.

When a default authority is not configured, should we have Envoy do something sensible (pick default virtual host, pick first virtual host, etc.) or continue to reject the stream? I don't have a strong feeling on this one.

For context, we've seen this situation arise in one of our integration test probers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestions that are neither investigations, bugs, nor enhancementsstalestalebot believes this issue/PR has not been touched recently

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions