soapi

command module
v0.0.0-...-1fa63d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

README

soapi is an implementation of an HTTP service for querying a sauteed onion monitor for sauteed onion certificates.

Spec

The specification for version 0 (v0) of the API can be found at https://gitlab.torproject.org/rgdd/sauteed-onions/-/blob/main/monitor/doc/api.md

Try it out

$ curl -LOs https://www.sauteed-onions.org/db/index
$ go build
$ ./soapi &
[1] 75771
$ curl -s http://localhost:8080/search?in= | json_pp
[
   {
      "domain_name" : "www.sauteed-onions.org",
      "identifiers" : [
         "2",
         "3",
         "24",
         "25",
         "28",
         "29",
         "37"
      ],
      "onion_addr" : "qvrbktnwsztjnbga6yyjbwzsdjw7u5a6vsyzv6hkj75clog4pdvy4cyd.onion"
   }
]
$ curl -s http://localhost:8080/get?id=37 | json_pp
{
   "cert_path" : "db/logs/Oak2022/339159779.pem",
   "domain_name" : "www.sauteed-onions.org",
   "log_id" : "36Veq2iCTx9sre64X04+WurNohKkal6OOxLAIERcKnM=",
   "log_index" : 339159779,
   "onion_addr" : "qvrbktnwsztjnbga6yyjbwzsdjw7u5a6vsyzv6hkj75clog4pdvy4cyd.onion"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL