aboutsummaryrefslogtreecommitdiff
path: root/go.mod
Commit message (Collapse)AuthorAgeFilesLines
* fix: Ensure rate-limits are on for get-entriesmainRasmus Dahlberg12 days1-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 } ```
* prometheus: Add basic metrics for alertingRasmus Dahlberg2025-01-041-0/+8
| | | | | - Detect if we're falling behind while downloading - Detect if there are any found certificates alerting
* ci: Use go verison 1.23Rasmus Dahlberg2025-01-031-2/+0
| | | | | Unfortunately larger than what's in Debian backports, but it appears that github.com/google/certificate-transparency-go requires it.
* chore: Bump github.com/google/certificate-transparency-go to v1.3.0Rasmus Dahlberg2025-01-031-10/+12
| | | | | go get github.com/google/certificate-transparency-go@v1.3.0 go mod tidy
* chore: Bump gitlab.torproject.org/rgdd/ct to v0.0.0Rasmus Dahlberg2025-01-031-1/+1
| | | | | go get gitlab.torproject.org/rgdd/ct@v0.0.0 go mod tidy
* chore: Bump golang.org/x/crypto to v0.3.1Rasmus Dahlberg2025-01-031-2/+2
| | | | | go get golang.org/x/crypto@v0.31.0 go mod tidy
* chore: Tidy go.mod and go.sumRasmus Dahlberg2025-01-031-4/+7
| | | | go mod tidy
* chore: Bump go version to 1.22Rasmus Dahlberg2025-01-031-1/+1
| | | | The Debian-backports version.
* chore: Remove dash in project nameRasmus Dahlberg2024-06-021-1/+1
| | | | To be consistent with naming of the tools in cmd/.
* chore: Add transparency-dev/merkleRasmus Dahlberg2024-05-261-0/+1
|
* Add drafty prototypeRasmus Dahlberg2024-01-071-1/+1
|
* Add drafty skeletonRasmus Dahlberg2023-12-101-1/+15
|
* Initial commitRasmus Dahlberg2023-12-021-0/+3