commit 5af046fd4e6387cdbf8bf65ea4c2039a4019b64b
Author: Brian Haley <email address hidden>
Date: Thu Feb 27 17:33:28 2020 -0500
Remove extra header fields in proxied metadata requests
If a user specifies a header in their request for metadata,
it could override what the proxy would have inserted on their
behalf. Make sure to remove any headers we don't want, and
override something that might be present in the request.
If the agent somehow gets a request with both headers it will
silently drop it.
Reviewed: https:/ /review. opendev. org/710458 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=5af046fd4e6 387cdbf8bf65ea4 c2039a4019b64b
Committed: https:/
Submitter: Zuul
Branch: master
commit 5af046fd4e6387c dbf8bf65ea4c203 9a4019b64b
Author: Brian Haley <email address hidden>
Date: Thu Feb 27 17:33:28 2020 -0500
Remove extra header fields in proxied metadata requests
If a user specifies a header in their request for metadata,
it could override what the proxy would have inserted on their
behalf. Make sure to remove any headers we don't want, and
override something that might be present in the request.
If the agent somehow gets a request with both headers it will
silently drop it.
Change-Id: Id6c103b7bcebe4 41c27c6049d349d 84ba7fd15a6
Closes-bug: #1865036