versions resource uses host_url which may be incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Cinder |
Undecided
|
wanghao | ||
| Glance |
High
|
Unassigned | ||
| Icehouse |
High
|
Unassigned | ||
| Juno |
High
|
Unassigned | ||
| Ironic |
Fix Released
|
Medium
|
Lucas Alvares Gomes | |
| OpenStack Compute (nova) |
High
|
Radomir Dopieralski | ||
| OpenStack DBaaS (Trove) |
Fix Released
|
Medium
|
Zhao Chao | |
| OpenStack Heat |
Triaged
|
Medium
|
shihanzhang | |
| OpenStack Shared File Systems Service (Manila) |
High
|
Deliang Fan |
Bug Description
The versions resource constructs the links by using host_url, but the glance api endpoint may be behind a proxy or ssl terminator. This means that host_url may be incorrect. It should have a config option to override host_url like the other services do when constructing versions links.
Changed in glance: | |
status: | New → Confirmed |
Changed in glance: | |
status: | Confirmed → Fix Committed |
Changed in glance: | |
milestone: | none → kilo-1 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
importance: | Undecided → High |
tags: | added: icehouse-backport-potential juno-backport-potential |
Changed in trove: | |
importance: | Undecided → Medium |
assignee: | nobody → Nikhil Manchanda (slicknik) |
milestone: | none → kilo-3 |
status: | New → Triaged |
Fix proposed to branch: master
Review: https:/
Changed in trove: | |
status: | Triaged → In Progress |
Changed in nova: | |
assignee: | nobody → shihanzhang (shihanzhang) |
Changed in heat: | |
assignee: | nobody → shihanzhang (shihanzhang) |
Changed in cinder: | |
assignee: | nobody → wanghao (wanghao749) |
Fix proposed to branch: master
Review: https:/
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in cinder: | |
status: | New → In Progress |
Fix proposed to branch: master
Review: https:/
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in heat: | |
status: | New → In Progress |
Fix proposed to branch: master
Review: https:/
Ian Cordasco (icordasc) wrote : | #6 |
For anyone looking to pick this up, please read the conversation on the ML first: http://
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2eb25ab8803214c
Author: wanghao <email address hidden>
Date: Thu Feb 26 16:50:31 2015 +0800
Add config option to override url for versions
The versions url returns the wrong data when cinder api is behind
a proxy. This adds a new config option so it can be set properly.
DocImpact
Change-Id: I46a90120b21e43
Closes-Bug: #1384379
Changed in cinder: | |
status: | In Progress → Fix Committed |
Changed in trove: | |
milestone: | kilo-3 → kilo-rc1 |
Changed in cinder: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
Changed in trove: | |
importance: | Medium → High |
Changed in heat: | |
importance: | Undecided → Medium |
milestone: | none → liberty-1 |
tags: | added: kilo-rc-potential |
Changed in trove: | |
importance: | High → Medium |
milestone: | kilo-rc1 → liberty-1 |
Changed in nova: | |
milestone: | none → liberty-1 |
importance: | Low → High |
Changed in ceilometer: | |
assignee: | nobody → Deliang Fan (vanderliang) |
status: | New → In Progress |
Changed in ironic: | |
assignee: | nobody → Deliang Fan (vanderliang) |
status: | New → In Progress |
Changed in manila: | |
assignee: | nobody → Deliang Fan (vanderliang) |
Changed in manila: | |
status: | New → In Progress |
Steve Baker (steve-stevebaker) wrote : | #8 |
I would much prefer solutions which build the versions URL from X-Forwarded-Host and X-Forwarded-Proto header values.
See this bug for a similar issue which was fixed by changing haproxy configuration:
https:/
Deliang Fan (vanderliang) wrote : | #9 |
@Steve Baker Hello, Steve, I think it's still a problem for many other component except heat. Because we implement heat.filter_factory = heat.api.
For many other OpenStack component, we still need to choose a method(like heat or glance) to solve this problem.
Deliang Fan (vanderliang) wrote : | #10 |
After I have read the webob source, I think we should solve this problem like heat https:/
Changed in ironic: | |
assignee: | Deliang Fan (vanderliang) → Ramakrishnan G (rameshg87) |
Changed in ironic: | |
milestone: | none → liberty-1 |
importance: | Undecided → Medium |
Changed in glance: | |
milestone: | kilo-1 → 2015.1.0 |
Changed in cinder: | |
milestone: | kilo-3 → 2015.1.0 |
tags: | removed: kilo-rc-potential |
Fix proposed to branch: master
Review: https:/
Fix proposed to branch: master
Review: https:/
Change abandoned by shihanzhang (<email address hidden>) on branch: master
Review: https:/
Change abandoned by shihanzhang (<email address hidden>) on branch: master
Review: https:/
Changed in trove: | |
milestone: | liberty-1 → liberty-2 |
John Garbutt (johngarbutt) wrote : | #15 |
update nova as patch was abandoned.
Changed in nova: | |
assignee: | shihanzhang (shihanzhang) → nobody |
milestone: | liberty-1 → liberty-2 |
status: | In Progress → Triaged |
Changed in heat: | |
milestone: | liberty-1 → liberty-2 |
Changed in nova: | |
assignee: | nobody → Yukinori Sagara (sagara177) |
Change abandoned by Mike Perez (<email address hidden>) on branch: stable/juno
Review: https:/
Changed in trove: | |
milestone: | liberty-2 → liberty-3 |
Changed in nova: | |
milestone: | liberty-2 → liberty-3 |
Fix proposed to branch: master
Review: https:/
Changed in nova: | |
assignee: | Yukinori Sagara (sagara177) → Radomir Dopieralski (thesheep) |
status: | Triaged → In Progress |
Changed in heat: | |
milestone: | liberty-2 → next |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit ab35779238658ad
Author: Radomir Dopieralski <email address hidden>
Date: Tue Jul 28 12:54:20 2015 +0200
Handle SSL termination proxies for version list
Return correct scheme in version URLs if service
behind an SSL termination proxy.
This is done by adding a new configuration option,
secure_
the wsgi application take the host_url scheme from
that header. By default, when this option is not
specified, there is no difference in behavior.
The intention is to configure any ssl-decrypting
proxy to set that header, so that nova-api knows
which protocol to use in the URLs in response.
This patch is largely based on
https:/
DocImpact
Closes-Bug: #1384379
Change-Id: I27ba166902ecc1
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in heat: | |
status: | In Progress → Triaged |
Changed in trove: | |
milestone: | liberty-3 → ongoing |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in ironic: | |
assignee: | Ramakrishnan G (rameshg87) (rameshg87) → nobody |
Changed in manila: | |
milestone: | none → liberty-rc1 |
importance: | Undecided → High |
Changed in trove: | |
milestone: | ongoing → liberty-rc1 |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit 32295b5c3c2f68c
Author: Deliang Fan <email address hidden>
Date: Wed May 6 18:37:29 2015 +0800
Add SSL middleware to fix incorrect version host_url
The Manila API does not behave properly if it is behind an SSL
termination proxy. If this is the case, the host_url in version
resource are build using http protocol instead of https.
To handle to correct host_url with proxy, first, we should enable
X-Forwarded
ip. Second, we should enable X-Forwarded-Proto, with the new SSL
middleware, Manila will get original protocol.
Change-Id: I2dac983481718e
Closes-Bug: #1384379
Changed in manila: | |
status: | In Progress → Fix Committed |
Changed in ironic: | |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
Fix proposed to branch: master
Review: https:/
Changed in ironic: | |
assignee: | Lucas Alvares Gomes (lucasagomes) → Jim Rollenhagen (jim-rollenhagen) |
assignee: | Jim Rollenhagen (jim-rollenhagen) → Lucas Alvares Gomes (lucasagomes) |
Changed in ironic: | |
milestone: | none → 4.2.0 |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit eec96136be1e8d8
Author: Lucas Alvares Gomes <email address hidden>
Date: Tue Sep 15 13:58:30 2015 +0100
Add config option to override url for links
The versions url returns the wrong data when Ironic API is behind a
proxy. This adds a new config option called "public_endpoint" so it can
be set properly.
Closes-Bug: #1384379
Change-Id: I6d1b59db3ce09a
Changed in ironic: | |
status: | In Progress → Fix Committed |
Changed in ceilometer: | |
assignee: | Deliang Fan (vanderliang) → nobody |
importance: | Undecided → Low |
status: | In Progress → Triaged |
Nikhil Manchanda (slicknik) wrote : | #22 |
This is not a blocker for Liberty-RC1 for Trove.
Changed in trove: | |
milestone: | liberty-rc1 → ongoing |
Changed in manila: | |
status: | Fix Committed → Fix Released |
Changed in ironic: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-3 → 12.0.0 |
Changed in manila: | |
milestone: | liberty-rc1 → 1.0.0 |
tags: | removed: icehouse-backport-potential juno-backport-potential |
Change abandoned by amrith (<email address hidden>) on branch: master
Review: https:/
Reason: abandoning for inactivity.
Change abandoned by Chris Dent (<email address hidden>) on branch: master
Review: https:/
Reason: No activity in over six months. If it still matters feel free to restore.
no longer affects: | ceilometer |
Amrith Kumar (amrith) wrote : | #25 |
Nikhil, any word on this?
Changed in trove: | |
status: | In Progress → New |
Changed in trove: | |
assignee: | Nikhil Manchanda (slicknik) → Zhao Chao (zhaochao1984) |
status: | New → In Progress |
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: master
commit 1667ad5e80be7d0
Author: Zhao Chao <email address hidden>
Date: Wed Feb 7 11:07:02 2018 +0800
Allow host URL for versions to be configurable
The versions resource constructs the links by using application_url,
but it's possible that the API endpoint is behind a load balancer
or SSL terminator. This means that the application_url might be
incorrect. This fix provides a config option (similar to other
services) which lets us override the host URL when constructing
links for the versions API.
Co-Authored-By: Nikhil Manchanda <email address hidden>
Change-Id: I23f06c6c2d52ba
Closes-bug: 1384379
Changed in trove: | |
status: | In Progress → Fix Released |
This issue was fixed in the openstack/trove 10.0.0.0b1 development milestone.
Reviewed: https:/ /review. openstack. org/130311 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=fa3b691011b 8f24cb447f0ce1c 62270b19b18110
Committed: https:/
Submitter: Jenkins
Branch: master
commit fa3b691011b8f24 cb447f0ce1c6227 0b19b18110
Author: Vishvananda Ishaya <email address hidden>
Date: Wed Oct 22 11:59:32 2014 -0700
Add config option to override url for versions
The versions url returns the wrong data when glance api is behind
a proxy. This adds a new config option so it can be set properly.
DocImpact
Change-Id: I5ab53d608a6667 435a4b03b0c8328 70716baaeb8
Closes-Bug: #1384379