HuKeping
							
						 
						
							 
							
							
							
							
								
							
							
								4b77c49401 
								
							 
						 
						
							
							
								
								Tiny rework on mysql start scripts.  
							
							 
							
							... 
							
							
							
							Fix some typo and update some comments.
Signed-off-by: Hu Keping <hukeping@huawei.com> 
							
						 
						
							2016-01-29 10:10:25 +08:00  
						
					 
				
					
						
							
							
								 
								HuKeping
							
						 
						
							 
							
							
							
							
								
							
							
								91d66f5e7a 
								
							 
						 
						
							
							
								
								[PATHC 3/4] Only create the needed tables  
							
							 
							
							... 
							
							
							
							Make database notaryserver and notarysigner only create the tables they
need.
The signer only needs the private_keys table, and the server only needs
the timestamp_keys and tuf_files tables.
Signed-off-by: Hu Keping <hukeping@huawei.com> 
							
						 
						
							2016-01-29 10:10:25 +08:00  
						
					 
				
					
						
							
							
								 
								HuKeping
							
						 
						
							 
							
							
							
							
								
							
							
								9427c372af 
								
							 
						 
						
							
							
								
								[PATCH 2/4] Add check for old database notary  
							
							 
							
							... 
							
							
							
							Check whether the database `notary` exist or not and warn people
to manually migrate those tables if it exist.
Signed-off-by: Hu Keping <hukeping@huawei.com> 
							
						 
						
							2016-01-29 10:10:25 +08:00  
						
					 
				
					
						
							
							
								 
								HuKeping
							
						 
						
							 
							
							
							
							
								
							
							
								e77db8a308 
								
							 
						 
						
							
							
								
								[PATCH 1/4] Use seperate databases for notary server and signer  
							
							 
							
							... 
							
							
							
							For security, server should not be able to access the `private_key` table
and we can go further more, say, use seperate databases for the server
and signer.
This patch creates two users corresponding to the different databases.
Signed-off-by: Hu Keping <hukeping@huawei.com> 
							
						 
						
							2016-01-29 10:10:25 +08:00  
						
					 
				
					
						
							
							
								 
								Diogo Monica
							
						 
						
							 
							
							
							
							
								
							
							
								14b8bc8098 
								
							 
						 
						
							
							
								
								Fixing initial.sql syntax  
							
							 
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2016-01-14 18:16:51 -08:00  
						
					 
				
					
						
							
							
								 
								David Lawrence
							
						 
						
							 
							
							
							
							
								
							
							
								5a9e06fe5c 
								
							 
						 
						
							
							
								
								adding sha256 column to tuf_files database table  
							
							 
							
							... 
							
							
							
							Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage) 
							
						 
						
							2016-01-11 17:31:01 -08:00  
						
					 
				
					
						
							
							
								 
								David Lawrence
							
						 
						
							 
							
							
							
							
								
							
							
								c0a84c2508 
								
							 
						 
						
							
							
								
								update notarymysql/migrate.go to add role to timestamp_keys and update indexes  
							
							 
							
							... 
							
							
							
							Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage) 
							
						 
						
							2015-12-03 11:48:18 -08:00  
						
					 
				
					
						
							
							
								 
								Matt Bentley
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								3b02384a0a 
								
							 
						 
						
							
							
								
								Added check to skip db import if exists  
							
							 
							
							... 
							
							
							
							Signed-off-by: Matt Bentley <matt@docker.com> 
							
						 
						
							2015-12-02 17:05:24 -05:00  
						
					 
				
					
						
							
							
								 
								Ying Li
							
						 
						
							 
							
							
							
							
								
							
							
								6ebb1fc7a8 
								
							 
						 
						
							
							
								
								Just connect to mysql as root, rather than as dockerdemo user with password.  
							
							 
							
							... 
							
							
							
							Signed-off-by: Ying Li <ying.li@docker.com> 
							
						 
						
							2015-11-23 18:05:10 -05:00  
						
					 
				
					
						
							
							
								 
								Hu Keping
							
						 
						
							 
							
							
							
							
								
							
							
								f8a665cd82 
								
							 
						 
						
							
							
								
								Replace tab with space on script  
							
							 
							
							... 
							
							
							
							It may inconsistent on different hosts(8/4 spaces per tab).
Signed-off-by: Hu Keping <hukeping@huawei.com> 
							
						 
						
							2015-11-04 10:50:40 +08:00  
						
					 
				
					
						
							
							
								 
								Ying Li
							
						 
						
							 
							
							
							
							
								
							
							
								4eaf6dc15c 
								
							 
						 
						
							
							
								
								Add migrate to the sample mysql container  
							
							 
							
							... 
							
							
							
							Signed-off-by: Ying Li <ying.li@docker.com> 
							
						 
						
							2015-10-12 16:50:25 -07:00  
						
					 
				
					
						
							
							
								 
								Ying Li
							
						 
						
							 
							
							
							
							
								
							
							
								87ec8a25bf 
								
							 
						 
						
							
							
								
								Use NULL DEFAULT NULL instead of NULL for timestamps  
							
							 
							
							... 
							
							
							
							Signed-off-by: Ying Li <ying.li@docker.com> 
							
						 
						
							2015-10-12 16:03:56 -07:00  
						
					 
				
					
						
							
							
								 
								Ying Li
							
						 
						
							 
							
							
							
							
								
							
							
								e8528ec391 
								
							 
						 
						
							
							
								
								Attempt to match the model exactly up with the initial sql + the  
							
							 
							
							... 
							
							
							
							migrate sql.
Signed-off-by: Ying Li <ying.li@docker.com> 
							
						 
						
							2015-10-12 15:44:00 -07:00  
						
					 
				
					
						
							
							
								 
								David Lawrence
							
						 
						
							 
							
							
							
							
								
							
							
								0940417324 
								
							 
						 
						
							
							
								
								update initial.sql to make schema consistent with staging/prod  
							
							 
							
							... 
							
							
							
							Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage) 
							
						 
						
							2015-07-30 11:17:27 -07:00  
						
					 
				
					
						
							
							
								 
								David Lawrence
							
						 
						
							 
							
							
							
							
								
							
							
								a095f6ff84 
								
							 
						 
						
							
							
								
								timestamp columns should just be NULL, not DFAULT NULL  
							
							 
							
							... 
							
							
							
							Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage) 
							
						 
						
							2015-07-30 10:57:12 -07:00  
						
					 
				
					
						
							
							
								 
								David Lawrence
							
						 
						
							 
							
							
							
							
								
							
							
								0661a87abb 
								
							 
						 
						
							
							
								
								gorm uses timestamp to represent time.Time, not datetime  
							
							 
							
							... 
							
							
							
							Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage) 
							
						 
						
							2015-07-28 18:45:16 -07:00  
						
					 
				
					
						
							
							
								 
								Diogo Monica
							
						 
						
							 
							
							
							
							
								
							
							
								a452ac4eb9 
								
							 
						 
						
							
							
								
								Changing SQL unique index  
							
							 
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-07-27 09:46:14 -07:00  
						
					 
				
					
						
							
							
								 
								Diogo Monica
							
						 
						
							 
							
							
							
							
								
							
							
								a2472a5a72 
								
							 
						 
						
							
							
								
								Addressed comments, changed to PBES2, added key rotation  
							
							 
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-07-26 09:18:08 -07:00  
						
					 
				
					
						
							
							
								 
								Diogo Monica
							
						 
						
							 
							
							
							
							
								
							
							
								e568babc0a 
								
							 
						 
						
							
							
								
								Added one more test, and fixed delete bug  
							
							 
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-07-24 06:47:04 -07:00  
						
					 
				
					
						
							
							
								 
								Diogo Monica
							
						 
						
							 
							
							
							
							
								
							
							
								37bced3efa 
								
							 
						 
						
							
							
								
								Changed signer to use DB, added initial SQL for private_keys  
							
							 
							
							... 
							
							
							
							Signed-off-by: Diogo Monica <diogo@docker.com> 
							
						 
						
							2015-07-24 05:49:02 -07:00  
						
					 
				
					
						
							
							
								 
								David Lawrence
							
						 
						
							 
							
							
							
							
								
							
							
								7db33797a8 
								
							 
						 
						
							
							
								
								fixing timestamp errors on list  
							
							 
							
							... 
							
							
							
							Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage) 
							
						 
						
							2015-07-20 10:35:40 -07:00  
						
					 
				
					
						
							
							
								 
								David Lawrence
							
						 
						
							 
							
							
							
							
								
							
							
								bfdb5f72b0 
								
							 
						 
						
							
							
								
								refactoring database schema out into its own file for easier use outside of containers  
							
							 
							
							... 
							
							
							
							Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage) 
							
						 
						
							2015-07-13 14:41:51 -07:00  
						
					 
				
					
						
							
							
								 
								David Lawrence
							
						 
						
							 
							
							
							
							
								
							
							
								06f2846561 
								
							 
						 
						
							
							
								
								fixing trailing comma in mysql  
							
							 
							
							... 
							
							
							
							Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage) 
							
						 
						
							2015-07-05 20:04:21 -07:00  
						
					 
				
					
						
							
							
								 
								David Lawrence
							
						 
						
							 
							
							
							
							
								
							
							
								89379a728c 
								
							 
						 
						
							
							
								
								adding timestamping and some general cleanup  
							
							 
							
							... 
							
							
							
							Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage) 
							
						 
						
							2015-07-03 15:38:09 -07:00  
						
					 
				
					
						
							
							
								 
								David Lawrence
							
						 
						
							 
							
							
							
							
								
							
							
								908378c5ca 
								
							 
						 
						
							
							
								
								Didn't update mysql bootstrap when I updated the go mysql code  
							
							 
							
							
							
						 
						
							2015-06-23 21:37:02 -07:00  
						
					 
				
					
						
							
							
								 
								Nathan McCauley
							
						 
						
							 
							
							
							
							
								
							
							
								e46a95227c 
								
							 
						 
						
							
							
								
								rename vetinari to notary  
							
							 
							
							... 
							
							
							
							Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com> 
							
						 
						
							2015-06-19 11:01:19 -07:00