7f1685230a 
					 
					
						
						
							
							src/server/rest.rs: get_index() include username and CSRF token  
						
						... 
						
						
						
						When we have an valid ticket. Also delay get_index() if called with
an invalid ticket. 
						
						
					 
					
						2019-02-17 19:28:32 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						141de8374a 
					 
					
						
						
							
							src/server/rest.rs: factor our normalize_path()  
						
						
						
						
					 
					
						2019-02-17 17:31:53 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8225aa2ff6 
					 
					
						
						
							
							src/server/rest.rs: improve logs for unauthorized request  
						
						
						
						
					 
					
						2019-02-17 17:18:44 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						54d15ab5c5 
					 
					
						
						
							
							src/api_schema/schema.rs: improve docu  
						
						
						
						
					 
					
						2019-02-17 12:13:06 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						51ebd07974 
					 
					
						
						
							
							src/api_schema/router.rs: add docu for RpcEnvironmentType  
						
						
						
						
					 
					
						2019-02-17 11:59:18 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d21c2710da 
					 
					
						
						
							
							api_schema/router.rs: improve doc  
						
						
						
						
					 
					
						2019-02-17 10:30:41 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ef2f2efbcc 
					 
					
						
						
							
							improve api_schema module structure  
						
						
						
						
					 
					
						2019-02-17 10:16:33 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						dc9a007b11 
					 
					
						
						
							
							rename src/api to src/api_schema  
						
						
						
						
					 
					
						2019-02-17 09:59:20 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5ddf8cb10a 
					 
					
						
						
							
							cleanup auth code, verify CSRF prevention token  
						
						
						
						
					 
					
						2019-02-16 15:52:55 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						95aee7e032 
					 
					
						
						
							
							tools/common_regex.rs: add more docu  
						
						
						
						
					 
					
						2019-02-16 12:36:01 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						99be8844c7 
					 
					
						
						
							
							buildcfg.rs: improve doc  
						
						
						
						
					 
					
						2019-02-16 12:31:39 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a8f268afbb 
					 
					
						
						
							
							fix configuration dir permission  
						
						... 
						
						
						
						Carefully set and check permissions ... 
						
						
					 
					
						2019-02-16 12:19:13 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						aada2a9719 
					 
					
						
						
							
							config/datastore.rs: remove unused code  
						
						
						
						
					 
					
						2019-02-16 10:10:45 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d11594db4c 
					 
					
						
						
							
							config/datastore.rs: return empty config if file does not exist  
						
						
						
						
					 
					
						2019-02-16 10:06:08 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						12400210a2 
					 
					
						
						
							
							tools::file_get_contents - improve error message  
						
						
						
						
					 
					
						2019-02-16 09:42:00 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6235a41862 
					 
					
						
						
							
							tools::file_read_firstline - improve error message  
						
						
						
						
					 
					
						2019-02-16 09:36:29 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						17ed456c2e 
					 
					
						
						
							
							change proxy user from www-data to backup  
						
						
						
						
					 
					
						2019-02-16 09:29:04 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5d14eb6a76 
					 
					
						
						
							
							tools.rs: new helper to get uid/gid for the sepcified system user.  
						
						... 
						
						
						
						Or is there an easier way to get that info? 
						
						
					 
					
						2019-02-15 15:33:12 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f0a6112451 
					 
					
						
						
							
							backup/datastore.rs: improve error reporting  
						
						
						
						
					 
					
						2019-02-15 14:33:03 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9b50c16103 
					 
					
						
						
							
							section_config.rs: simplify parser by using new try_block macro  
						
						
						
						
					 
					
						2019-02-15 12:13:15 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fe651dd6e5 
					 
					
						
						
							
							tools.rs: fix doc tests  
						
						
						
						
					 
					
						2019-02-15 11:33:51 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e80503d2a6 
					 
					
						
						
							
							tools.rs: document try_block macro  
						
						
						
						
					 
					
						2019-02-15 11:20:45 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f0dbba8cbe 
					 
					
						
						
							
							tools.rs: new try_block macro  
						
						
						
						
					 
					
						2019-02-15 10:59:12 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1d77b6cf6b 
					 
					
						
						
							
							update to pam 0.7 (renamed from pam-auth)  
						
						... 
						
						
						
						It now supports custom conversation methods, so instead of
new() we ask for a default authenticator taking a password
via with_password(). Since the password is now handled by
the now separate conversation handler, `set_credentials()`
is now called on the handler we get via `.get_handler()`.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-15 10:34:40 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d4736445fe 
					 
					
						
						
							
							server/rest.rs: add method to log message  
						
						
						
						
					 
					
						2019-02-15 10:16:12 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f02e6fc478 
					 
					
						
						
							
							api2/admin/datastore/catar.rs: simplify/fix debug message  
						
						
						
						
					 
					
						2019-02-15 10:04:37 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						44c00c0dfd 
					 
					
						
						
							
							server/rest.rs: log full error messages  
						
						
						
						
					 
					
						2019-02-15 09:55:12 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7171b3e079 
					 
					
						
						
							
							server/rest.rs: use a protocol extension to avoid double log  
						
						... 
						
						
						
						Instead of modifying the response header itself. 
						
						
					 
					
						2019-02-14 16:04:24 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7e03988caf 
					 
					
						
						
							
							avoid double logging of proxied requests  
						
						
						
						
					 
					
						2019-02-14 13:28:41 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						af6f80d3db 
					 
					
						
						
							
							Revert "backup/datastore: fn open is a private implementation detail"  
						
						... 
						
						
						
						This reverts commit 3dacd9a660 
						
						
					 
					
						2019-02-14 13:13:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						78a1fa6722 
					 
					
						
						
							
							src/server/rest.rs: log failed requests  
						
						
						
						
					 
					
						2019-02-14 13:07:34 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2cc90617dd 
					 
					
						
						
							
							tools/fs: mark ReadDir as Send  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 12:37:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						62f2422f6a 
					 
					
						
						
							
							backup/chunk_store: verify chunk file names  
						
						... 
						
						
						
						get_chunk_iterator() should skip over files which aren't an
actual chunk
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 12:37:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3dacd9a660 
					 
					
						
						
							
							backup/datastore: fn open is a private implementation detail  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 12:37:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9739aca41f 
					 
					
						
						
							
							backup/chunk_store: open base dir in get_chunk_iterator  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 12:37:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						db4868ef4f 
					 
					
						
						
							
							src/client/backup_repo.rs -  improve docu  
						
						
						
						
					 
					
						2019-02-14 11:17:08 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						151c6ce27d 
					 
					
						
						
							
							src/client.rs: improve library structure and docu  
						
						
						
						
					 
					
						2019-02-14 11:11:39 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						dd1bfe6c12 
					 
					
						
						
							
							tools/timer: add module documentation  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:13:42 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c7f481b642 
					 
					
						
						
							
							backup: replace ChunkIterator  
						
						... 
						
						
						
						Instead we just build the iterator using our
tools::fs::read_subdir iterator as follows:
Use the index range (0..0x10000) as an iterator, map() it
to yield a subdirectory iterator for each index, then
flatten it.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						121f18efb7 
					 
					
						
						
							
							tools: use scan_subdir iterator for scandir  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						32286b039c 
					 
					
						
						
							
							tools/fs: add file_name_utf8_unchecked shortcut  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						806d7a6a35 
					 
					
						
						
							
							tools/fs: change scan_subdir to use filter_file_name_regex  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						53e1e7ca72 
					 
					
						
						
							
							tools/fs: add filter_file_name_regex to FileIterOps  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						23fba9d777 
					 
					
						
						
							
							tools/fs: add FileIterOps trait and FileTypeFilter  
						
						... 
						
						
						
						FileIterOps will provide operations on file entry iterators.
For now this provides a file type filter.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1db416150d 
					 
					
						
						
							
							tools/fs: let ReadDir iterator yield ReadDirEntry  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b12505da69 
					 
					
						
						
							
							tools/fs: add ReadDirEntry helper  
						
						... 
						
						
						
						This wraps nix::dir::Entry with the parent and additionally
exposes the parent directory file descriptor since we need
it to perform openat().
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a25f863afd 
					 
					
						
						
							
							tools/fs: add scan_subdir helper  
						
						... 
						
						
						
						This filters the results of read_subdir with a regex.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b4d5787de9 
					 
					
						
						
							
							tools: start fs submodule, add read_subdir  
						
						... 
						
						
						
						This creates an iterator relative to a RawFd via
nix::dir::Dir over nix::dir::Entrys.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-14 10:09:59 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0dffe3f99a 
					 
					
						
						
							
							src/client/http_client.rs: try to login  
						
						... 
						
						
						
						use an environment var to store passphrase (PBS_PASSWORD) 
						
						
					 
					
						2019-02-13 14:31:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						33d64b81e0 
					 
					
						
						
							
							src/bin/proxmox-backup-client.rs: define and use BackupRepository  
						
						
						
						
					 
					
						2019-02-13 12:30:52 +01:00