Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							4fbbc5818e 
							
						 
					 
					
						
						
							
							Store log errors in state directory  
						
						 
						
						... 
						
						
						
						Instead of writing log errors to stderr, write them to a file in the state directory. When reporting a health check failure, include the path to the file and the last several lines.
Log files are named by date, and the last 7 days are kept.
Closes  #106  
						
						
							
						
					 
					
						2025-06-29 17:23:38 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							5a8dd2ca82 
							
						 
					 
					
						
						
							
							Improve -version and User-Agent  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-29 17:18:42 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							b649b399e4 
							
						 
					 
					
						
						
							
							Do not run actions on pull requests  
						
						 
						
						... 
						
						
						
						It's a security minefield.  Thanks to caching of the build environment,
not even read-only actions are safe. 
						
						
							
						
					 
					
						2025-06-23 23:20:54 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							aecfa745ca 
							
						 
					 
					
						
						
							
							Add GitHub Actions for test and lint  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-23 23:10:11 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							f5779c283c 
							
						 
					 
					
						
						
							
							Add staticcheck configuration  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-23 23:10:05 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							3e811e86d7 
							
						 
					 
					
						
						
							
							Decapitalize some error messages  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-23 22:33:57 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							a4048f47f8 
							
						 
					 
					
						
						
							
							Send helpful User-Agent string with all requests  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-23 16:32:35 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Daniel Peukert 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							187aed078c 
							
						 
					 
					
						
						
							
							Fix fmt typos  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-23 19:27:39 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							8ab03b4cf8 
							
						 
					 
					
						
						
							
							Release v0.20.1  
						
						 
						
						
						
						
							
  v0.20.1
 
						
					 
					
						2025-06-19 18:30:03 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							bcbd4e62d9 
							
						 
					 
					
						
						
							
							Improve error handling of hooks and sendmail  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-17 14:03:45 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							a2a1fb1dab 
							
						 
					 
					
						
						
							
							Set WaitDelay when executing sendmail and hooks  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-17 14:03:31 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							5430f737b0 
							
						 
					 
					
						
						
							
							Enforce a timeout when running sendmail  
						
						 
						
						... 
						
						
						
						postfix's sendmail command sometimes retries forever instead of terminating on error (see #100 ) 
						
						
							
						
					 
					
						2025-06-17 13:59:59 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							f0e8b18d9a 
							
						 
					 
					
						
						
							
							Improve code clarity  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-17 11:04:02 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							756782e964 
							
						 
					 
					
						
						
							
							Improve some comments  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-17 11:01:15 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							53029c2a09 
							
						 
					 
					
						
						
							
							Imrove some comments  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-17 10:52:32 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							b05a66f634 
							
						 
					 
					
						
						
							
							Only calculate root hash when needed to verify an STH  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-17 10:45:56 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							b87b33a41b 
							
						 
					 
					
						
						
							
							Upgrade dependencies  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-16 23:33:51 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							3279459be2 
							
						 
					 
					
						
						
							
							Add Compare to LogID and merkletree.Hash  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-16 14:24:26 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							d5bc1ef75b 
							
						 
					 
					
						
						
							
							Simplify certspotterVersion  
						
						 
						
						... 
						
						
						
						The old code is unnecessary now that go derives a version from the VCS info. 
						
						
							
						
					 
					
						2025-06-13 16:26:10 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							38bcd36d98 
							
						 
					 
					
						
						
							
							Release v0.20.0  
						
						 
						
						
						
						
							
  v0.20.0
 
						
					 
					
						2025-06-13 12:24:17 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							ca7b11ca96 
							
						 
					 
					
						
						
							
							Print a friendlier error message if -batch_size specified  
						
						 
						
						
						
						
							
						
					 
					
						2025-06-13 12:22:23 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							26439b4deb 
							
						 
					 
					
						
						
							
							Remove unused code  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-30 17:09:02 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							9544d8ab50 
							
						 
					 
					
						
						
							
							Imprve comment  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-21 14:59:56 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							694eb276a6 
							
						 
					 
					
						
						
							
							Also check timestamp when comparing STHs  
						
						 
						
						... 
						
						
						
						otherwise we might fail to delete unverified_sths if they have a different timestamp 
						
						
							
						
					 
					
						2025-05-21 14:33:58 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							90ead642b0 
							
						 
					 
					
						
						
							
							Simplify context cancellation checks  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-21 14:31:24 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							56af38ca70 
							
						 
					 
					
						
						
							
							Rewrite STH pipeline to avoid prematurely deleting STHs  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-21 14:08:12 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							0c22448e5f 
							
						 
					 
					
						
						
							
							Avoid spurious file not found errors loading STH dir if an STH is concurrently deleted  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-20 15:29:23 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							61b037a708 
							
						 
					 
					
						
						
							
							Improve docs for -verbose  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-19 13:47:04 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							15e35abdaa 
							
						 
					 
					
						
						
							
							Only print log errors to stderr if -verbose specified  
						
						 
						
						... 
						
						
						
						Log errors are so frequent that they are drowning out fatal errors. This commit will reserve stderr for fatal errors by default. See #104  for background.
This means that operators will need to enable -verbose if they want to get details about why a health check failed.  This seems better than making stderr noisy by default. The long-term solution is #106 . 
						
						
							
						
					 
					
						2025-05-19 13:46:16 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							ce80beb1d4 
							
						 
					 
					
						
						
							
							Document the directories used by certspotter in the man page  
						
						 
						
						... 
						
						
						
						Closes : #103  
						
						
							
						
					 
					
						2025-05-19 13:35:47 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							b06aecc56c 
							
						 
					 
					
						
						
							
							Improve man pages  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-19 13:35:43 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							46c8fc64fd 
							
						 
					 
					
						
						
							
							Improve verbose logging  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-19 13:24:51 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							b89afef32a 
							
						 
					 
					
						
						
							
							In verbose mode, print a message when exiting due to signal  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-19 13:13:18 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							e50476620c 
							
						 
					 
					
						
						
							
							sequencer: improve Godocs  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-14 18:44:25 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							63845b370d 
							
						 
					 
					
						
						
							
							sequencer: add Reserve method  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-14 18:44:16 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							bdc589762a 
							
						 
					 
					
						
						
							
							Improve http.Client configuration  
						
						 
						
						... 
						
						
						
						Ensure HTTP/2 can be used.
Set IdleConnTimeout to the net/http default.
Remove MaxIdleConns limit so that connections are more likely to be reused. 
						
						
							
						
					 
					
						2025-05-14 18:43:47 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							0ba3b07bd9 
							
						 
					 
					
						
						
							
							Remove -batch_size option  
						
						 
						
						... 
						
						
						
						It's obsolete due to the new parallel downloading system. 
						
						
							
						
					 
					
						2025-05-08 08:39:32 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							996068385f 
							
						 
					 
					
						
						
							
							Fail health check for logs have never been contacted  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-07 21:31:43 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							37531001bc 
							
						 
					 
					
						
						
							
							Improve formatting of an error message  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-07 18:26:18 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							cfe7df0b9f 
							
						 
					 
					
						
						
							
							Release v0.19.1  
						
						 
						
						
						
						
							
  v0.19.1
 
						
					 
					
						2025-05-07 18:06:42 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							2a499552ae 
							
						 
					 
					
						
						
							
							Retract v0.19.0  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-07 18:06:36 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							d0f48efa91 
							
						 
					 
					
						
						
							
							Make an error message less verbose  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-07 18:03:00 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							61b6c3bf2a 
							
						 
					 
					
						
						
							
							Add a space after colon in log message  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-07 18:01:19 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							62649aae08 
							
						 
					 
					
						
						
							
							Log errors contacting log  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-07 17:58:17 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							e9c9ef8b43 
							
						 
					 
					
						
						
							
							Avoid integer overflow leading to panic in rand.N  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-07 17:54:36 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							9ba1d4d915 
							
						 
					 
					
						
						
							
							Release v0.19.0  
						
						 
						
						
						
						
							
  v0.19.0
 
						
					 
					
						2025-05-07 16:47:31 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							403d5e2f58 
							
						 
					 
					
						
						
							
							Apply gofmt  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-07 09:58:22 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							8a655b8566 
							
						 
					 
					
						
						
							
							Avoid calling t.Fatalf from goroutine  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-07 09:56:14 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							647b036ed1 
							
						 
					 
					
						
						
							
							Remove unreachable return statements  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-07 09:55:45 -04:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							61508d8bf1 
							
						 
					 
					
						
						
							
							Fix printf mistake  
						
						 
						
						
						
						
							
						
					 
					
						2025-05-07 09:49:18 -04:00