Who can reach this computer
curl --request GET \
--url http://127.0.0.1:8765/people \
--header 'x-engine-capability: <x-engine-capability>'import requests
url = "http://127.0.0.1:8765/people"
headers = {"x-engine-capability": "<x-engine-capability>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-engine-capability': '<x-engine-capability>'}};
fetch('http://127.0.0.1:8765/people', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8765",
CURLOPT_URL => "http://127.0.0.1:8765/people",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-engine-capability: <x-engine-capability>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:8765/people"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-engine-capability", "<x-engine-capability>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://127.0.0.1:8765/people")
.header("x-engine-capability", "<x-engine-capability>")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:8765/people")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["x-engine-capability"] = '<x-engine-capability>'
response = http.request(request)
puts response.read_body{
"name": "<string>",
"members": [
{
"email": "<string>",
"accountId": "<string>",
"apps": [
"<string>"
]
}
],
"publishedApps": [
"<string>"
]
}Everyone with access, plus publishedApps — the labels an invitation may hand over. Filter to the apps you actually serve: listing everybody with access to the computer would tell the owner that somebody who cannot open your app has access to it.
GET
/
people
Who can reach this computer
curl --request GET \
--url http://127.0.0.1:8765/people \
--header 'x-engine-capability: <x-engine-capability>'import requests
url = "http://127.0.0.1:8765/people"
headers = {"x-engine-capability": "<x-engine-capability>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-engine-capability': '<x-engine-capability>'}};
fetch('http://127.0.0.1:8765/people', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8765",
CURLOPT_URL => "http://127.0.0.1:8765/people",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-engine-capability: <x-engine-capability>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:8765/people"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-engine-capability", "<x-engine-capability>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://127.0.0.1:8765/people")
.header("x-engine-capability", "<x-engine-capability>")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:8765/people")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["x-engine-capability"] = '<x-engine-capability>'
response = http.request(request)
puts response.read_body{
"name": "<string>",
"members": [
{
"email": "<string>",
"accountId": "<string>",
"apps": [
"<string>"
]
}
],
"publishedApps": [
"<string>"
]
}⌘I