{
  "ok": true,
  "service": "certreq-broker (kadmin + netdb gate)",
  "base_url": "http://localhost:8080",
  "auth": {
    "required": true,
    "type": "HTTP Basic Auth"
  },
  "netdb_submit_gate": {
    "enabled": true,
    "hostname_keys": [
      "csr_server",
      "csrServer",
      "server",
      "server_name",
      "hostname",
      "fqdn",
      "host",
      "common_name",
      "cn",
      "node"
    ],
    "rule": "POST /submit allowed only if caller is a NetDB admin for target hostname"
  },
  "endpoints": [
    {
      "method": "GET",
      "path": "/health",
      "desc": "No auth"
    },
    {
      "method": "GET",
      "path": "/whoami",
      "desc": "Auth required"
    },
    {
      "method": "POST",
      "path": "/submit",
      "desc": "Auth + NetDB admin required"
    }
  ],
  "examples": [
    "curl -s http://localhost:8080/health | jq",
    "curl -u <SUNetID>:'<KADMIN_PASSWORD>' -s http://localhost:8080/whoami | jq",
    "curl -u <SUNetID>:'<KADMIN_PASSWORD>' -s http://localhost:8080/submit --data-binary @green.json -H 'Content-Type: application/json' | jq"
  ]
}
