<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word;line-break:after-white-space"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">On July 23, 2017 at 2:27:34 PM, Haravikk (<a href="mailto:opensim@haravikk.me">opensim@haravikk.me</a>) wrote:</div> <blockquote type="cite" class="clean_bq"><span><div style="word-wrap:break-word" class=""><div></div><div>



<title></title>


<div class="">After digging around it's starting to look like the
answer is a "no" to this capability at present (do feel free to
correct me if that's wrong, pretty please!) so I'm thinking about
what it would take to add it.</div>
<div class=""><br class=""></div>
<div class="">There are only really two key features needed to
support it however:</div>
<div class=""><b class=""><br class=""></b></div>
<div style="text-align:center" class=""><b class="">Add an
X-OpenSim-Grid header to llHTTPRequest()</b></div>
<div style="text-align:center" class=""><b class=""><br class=""></b></div>
<div class="">The idea here is to add a new X-OpenSim-Grid header
to all llHTTPRequest() calls, automatically containing the current
grid's login URI, nickname and full name, in a format resembling
the following:</div>
<div class=""><br class=""></div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px" class="">
<div class=""><span style="font-family:Monaco" class="">X-OpenSim-Grid: <a href="http://mygrid.com/login" class="">http://mygrid.com/login</a>; nick_name=my_grid; name="My
Grid"</span></div></blockquote></div></div></span></blockquote><div><br></div><div>x-grid-info:// makes a better resource identifier for grids: <a href="https://alchemy.atlassian.net/wiki/pages/viewpage.action?pageId=28737538">https://alchemy.atlassian.net/wiki/pages/viewpage.action?pageId=28737538</a> The nick and the name can be easily pulled from get_grid_info/</div><br><blockquote type="cite" class="clean_bq"><span><div style="word-wrap:break-word" class="">

<div style="text-align:center" class=""><b class="">Enable
Querying of IP and Region Name</b></div>
<div style="text-align:left" class=""><b class=""><br class=""></b></div>
<div class="">
<div class="">My thinking is that a new request would be supported
on a grid's login URI (if possible); whereby, instead of logging
in, the sender queries the grid about whether a given region name
exists with a given IP address or not, with the server responding
either true or false. There should be no viable risk of
exploitation here as the call will only return true if the sender
already knows both a valid IP address and region name; all it can
therefore do is confirm that <region name> is currently
provided by a server at <IP address>.</div></div></div></span></blockquote><div><br></div><div>You can already POST to the grid service to get this information, although the grid service isn’t always exposed publicly: <a href="http://opensimulator.org/wiki/GridService">http://opensimulator.org/wiki/GridService</a> </div><br><div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span><div class="" style="word-wrap:break-word;line-break:after-white-space"><div class="">Adding this to the login URI seems like the simplest option, but it may not be the cleanest (is it polluting the login URI to have it handle other things like this?), however, with the login URI being the primary point of contact for a grid it seems like the most logical way to do it to me. If anyone has any other ideas where the query should be performed (and how the necessary info can be passed to a web-service) please let comment!</div></div></span></blockquote></div><p>Please don’t pollute the endpoint. While it may be convenient, the login service may not even have access to the grid service and it doesn’t belong there. The services are tangled up enough as it is. I would think the Gatekeeper service would be more appropriate, but don’t quote me on that.</p><div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span><div class="" style="word-wrap:break-word;line-break:after-white-space"><div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span><div class="" style="word-wrap:break-word;line-break:after-white-space"><div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span><div class="" style="word-wrap:break-word;line-break:after-white-space"><div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span><div class="" style="word-wrap:break-word;line-break:after-white-space"><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap:break-word;line-break:after-white-space"><div class="">Okay, so I just found that there's no way to retrieve a region's UUID in a script so you can ignore that part; though I had thought it would be a better way to identify a region (in case a region is renamed).</div></div></div></blockquote></div></span></blockquote></div></div></span></blockquote></div></div></span></blockquote></div></div></span></blockquote><div><br></div><div>Also, bear in mind having one, two, five, or one hundred regions with the same name on the same ip address is perfectly valid in OpenSim.</div><br><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span><div class="" style="word-wrap:break-word;line-break:after-white-space"><div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span><div class="" style="word-wrap:break-word;line-break:after-white-space"><div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span><div class="" style="word-wrap:break-word;line-break:after-white-space"><div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span><div class="" style="word-wrap:break-word;line-break:after-white-space"><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap:break-word;line-break:after-white-space"><div class="">Though that does raise the separate question; would there be any harm in making a region's UUID available to scripts and/or sending it as a HTTP header? It just seems like it would be a good way to handle any region that is renamed, because as long as the GUID is kept the same then web-services (and grids) could recognise that it's the same region and treat it accordingly.</div></div></div></blockquote></div></span></blockquote></div></div></span></blockquote></div></div></span></blockquote></div></div></span></blockquote><div><br></div><div>Changing a region’s UUID is as easy as changing its name, and just as easy to spoof in most cases.</div><br></div></body></html>