Support Host header in REST queries
Bug #1446387 reported by
Cedric Brandily
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
Fix Released
|
Wishlist
|
Mimi Lee |
Bug Description
Designate uses the static api_base_uri option (service:api section) as base url when returning urls through REST.
But Designate could/should use (when api_base_uri is not configured?) Host request-header which the Internet host and port number of the resource being requested, as obtained from the original URI given by the user or referring resource:
when Host header == $myhost:$myport, designate should return urls prefixed by http(s)
Using Host request-header allows to reduce deployer work and to return urls with the correct domain when Designate is reachable from multiple hosts/ports.
Changed in designate: | |
assignee: | nobody → Cedric Brandily (cbrandily) |
Changed in designate: | |
importance: | Undecided → Wishlist |
milestone: | none → liberty-1 |
Changed in designate: | |
status: | New → Opinion |
tags: | added: low-hanging-fruit |
Changed in designate: | |
assignee: | Cedric Brandily (cbrandily) → Mimi Lee (mimi-lee) |
status: | Triaged → In Progress |
Changed in designate: | |
milestone: | liberty-2 → liberty-3 |
Changed in designate: | |
status: | Fix Committed → Fix Released |
Changed in designate: | |
milestone: | liberty-3 → 1.0.0 |
To post a comment you must log in.
Opinion is a "closed" status and my understanding is that this is not finished (hence the milestone targeting ?)