| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Backoff on 4XX and 5XX. See related issue:
https://github.com/google/certificate-transparency-go/issues/898
Test manually hints:
```
$ cat srv.py
from http.server import HTTPServer, BaseHTTPRequestHandler
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(429)
self.send_header("Content-Type", "text/plain")
self.end_headers()
self.wfile.write(b"429 something something...")
def do_POST(self):
self.do_GET()
def do_PUT(self):
self.do_GET()
def do_DELETE(self):
self.do_GET()
if __name__ == "__main__":
server_address = ('localhost', 9090)
httpd = HTTPServer(server_address, RequestHandler)
print("Server running on http://localhost:9090")
httpd.serve_forever()
```
And a transport for http.Client that redirects to localhost:
```
type statusRR struct {
inner http.RoundTripper
}
func (s *statusRR) RoundTrip(req *http.Request) (*http.Response, error) {
if strings.Contains(req.URL.Path, "ct/v1/get-entries") {
req.URL.Scheme = "http"
req.URL.Host = "localhost:9090"
}
rsp, err := s.inner.RoundTrip(req)
return rsp, err
}
```
|
|
|
|
|
| |
- Detect if we're falling behind while downloading
- Detect if there are any found certificates alerting
|
|
|
|
|
| |
Unfortunately larger than what's in Debian backports, but it appears
that github.com/google/certificate-transparency-go requires it.
|
|
|
|
|
| |
go get github.com/google/certificate-transparency-go@v1.3.0
go mod tidy
|
|
|
|
|
| |
go get gitlab.torproject.org/rgdd/ct@v0.0.0
go mod tidy
|
|
|
|
|
| |
go get golang.org/x/crypto@v0.31.0
go mod tidy
|
|
|
|
| |
go mod tidy
|
|
|
|
| |
The Debian-backports version.
|
|
|
|
| |
To be consistent with naming of the tools in cmd/.
|
| |
|
| |
|
| |
|
|
|