Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Reject invalid server names #3480

Merged
merged 5 commits into from
Jul 3, 2018
Merged

Reject invalid server names #3480

merged 5 commits into from
Jul 3, 2018

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jul 3, 2018

Make sure that server_names used in auth headers are sane, and reject them with
a sensible error code, before they disappear off into the depths of the system.

Make sure that server_names used in auth headers are sane, and reject them with
a sensible error code, before they disappear off into the depths of the system.
@richvdh richvdh requested a review from a team July 3, 2018 12:17
Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

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

It'd be quite nice if it checked if it was a valid domain or IP literal, but that can wait I suppose

'localhost': ('localhost', None),
'my-example.com:1234': ('my-example.com', 1234),
'1.2.3.4': ('1.2.3.4', None),
'[0abc:1def::1234]': ('[0abc:1def::1234]', None),
Copy link
Member

Choose a reason for hiding this comment

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

I'd quite like to see a couple of tests for IPv4 and IPv6 literals with ports specified; I don't think IPv6 literal with port works.

Copy link
Member Author

Choose a reason for hiding this comment

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

:/ thank you...

@richvdh richvdh assigned erikjohnston and unassigned richvdh Jul 3, 2018
@richvdh richvdh merged commit 508196e into develop Jul 3, 2018
@hawkowl hawkowl deleted the rav/sanity_check_server_names branch September 20, 2018 14:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants