commit b8de1e6ef01a45f75ad14d0d96cbcf40a8767f5d
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: Id6c103b7bcebe441c27c6049d349d84ba7fd15a6
Closes-bug: #1865036
(cherry picked from commit 5af046fd4e6387cdbf8bf65ea4c2039a4019b64b)
Reviewed: https:/ /review. opendev. org/711103 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=b8de1e6ef01 a45f75ad14d0d96 cbcf40a8767f5d
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit b8de1e6ef01a45f 75ad14d0d96cbcf 40a8767f5d
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 dbf8bf65ea4c203 9a4019b64b)
Closes-bug: #1865036
(cherry picked from commit 5af046fd4e6387c