<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 27, 2016 at 1:47 PM, michael mccune <span dir="ltr"><<a href="mailto:msm@redhat.com" target="_blank">msm@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi all,<br>
<br>
there have been a few reviews recently where the issue of service type versus project name have come up for use in the headers. as usual this conversation can get quite murky as there are several good examples where service type alone is not sufficient (for example if a service exposes several api controllers), and as has been pointed out project name can also be problematic (for example projects can change name).<br>
<br>
i'm curious if we could come to a consensus regarding the use of service type *or* project name for headers. i propose leaving the ultimate decision up to the projects involved to choose the most appropriate identifier for their custom headers.<br>
<br>
i am not convinced that we would ever need to have a standard on how these names are chosen for the header values, or if we would even need to have header names that could be deduced. for me, it would be much better for the projects use an identifier that makes sense to them, *and* for each project to have good api documentation.<br>
<br>
so, instead of using examples where we have header names like "OpenStack-Some-[SERVICE_TYPE]-Header", maybe we should suggest "OpenStack-Some-[SERVICE_TYPE or PROJECT_NAME]-Header" as our guideline.<br>
<br>
for reference, here are the current reviews that are circling around this issue:<br>
<br>
<a href="https://review.openstack.org/#/c/243429" rel="noreferrer" target="_blank">https://review.openstack.org/#/c/243429</a><br>
<a href="https://review.openstack.org/#/c/273158" rel="noreferrer" target="_blank">https://review.openstack.org/#/c/273158</a><br>
<a href="https://review.openstack.org/#/c/243414" rel="noreferrer" target="_blank">https://review.openstack.org/#/c/243414</a><br>
<br>
and one that has already been merged:<br>
<br>
<a href="https://review.openstack.org/#/c/196918" rel="noreferrer" target="_blank">https://review.openstack.org/#/c/196918</a><br>
<br>
thoughts?<br>
<br></blockquote><div><br></div><div>Why does the service type or name need to be in the header at all? The request goes to a specific service so the server and client already know the service type or name. - Brant<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
regards,<br>
mike<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div></div>