4a3f65172c 
					 
					
						
						
							
							client: use hyper-tls for now  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-13 11:03:09 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						42d6e4fb05 
					 
					
						
						
							
							tools: borrow: implement Deref for Tied  
						
						... 
						
						
						
						Eg. if you have an x: Tied<Dir, Iterator> now you can simply
call x.next() as it'll dereference to the Iterator.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-13 11:03:09 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						541a302224 
					 
					
						
						
							
							api2/admin/datastore/catar.rs: use nested file extensions  
						
						... 
						
						
						
						i.e. archive.catar.didx 
						
						
					 
					
						2019-02-13 10:37:00 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e5064ba607 
					 
					
						
						
							
							simplify backup lib structure (pub use xxx:*), improve doc  
						
						
						
						
					 
					
						2019-02-12 14:13:31 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d78345bcfc 
					 
					
						
						
							
							src/backup.rs - improve doc  
						
						
						
						
					 
					
						2019-02-12 13:27:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						93d5d77952 
					 
					
						
						
							
							rename ArchiveIndex to DynamicIndex  
						
						... 
						
						
						
						also changed the file extension from .aidx to .didx 
						
						
					 
					
						2019-02-12 12:05:33 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						91a905b6dd 
					 
					
						
						
							
							rename ImageIndex to FixedIndex  
						
						... 
						
						
						
						also changed the file extension fron .iidx to .fidx 
						
						
					 
					
						2019-02-12 11:50:45 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						82bc0ad40c 
					 
					
						
						
							
							backup: fixup warnings and readd lost file type check  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:43:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9349d2a1d2 
					 
					
						
						
							
							backup: cleanup long lines  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:39:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fdd71f5286 
					 
					
						
						
							
							backup: use ChunkIterator for sweep_unused_chunks  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:39:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c9e7f4dc8b 
					 
					
						
						
							
							backup: add optional progress callback to ChunkIterator  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:39:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4070096c6a 
					 
					
						
						
							
							backup: add ChunkIterator  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:39:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6ed25cbe3a 
					 
					
						
						
							
							tools: add Tied value  
						
						... 
						
						
						
						Tie two dependent values together, such as a nix::Dir with
its nix::dir::Iter<'a> where 'a is tied to the Dir's
lifetime, making it otherwise impossible to return them or
store them in a struct.
Alternatively we could try the 'rental' crate.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:39:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9ac1045c7b 
					 
					
						
						
							
							bin: manager: fixup datastore parameter name  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-12 10:39:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8f8d5a420c 
					 
					
						
						
							
							avoid compiler warning  
						
						
						
						
					 
					
						2019-02-11 15:12:01 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						aa5a4060ab 
					 
					
						
						
							
							bin/proxmox-backup-api.rs: improve error handling  
						
						
						
						
					 
					
						2019-02-11 15:11:42 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4223d9f800 
					 
					
						
						
							
							bin/proxmox-backup-proxy.rs: improve error handling  
						
						
						
						
					 
					
						2019-02-11 14:43:26 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ace9e3531a 
					 
					
						
						
							
							access: use proxmox-backup-auth for pam  
						
						... 
						
						
						
						allows customization via /etc/pam.d/proxmox-backup-auth
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-07 13:40:22 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						13f8310cac 
					 
					
						
						
							
							api2: time: use /etc/localtime as fallback  
						
						... 
						
						
						
						in case there is no /etc/timezone
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-05 14:14:56 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a7cac14ed9 
					 
					
						
						
							
							tools: use std::fs::read for file_get_contents  
						
						... 
						
						
						
						Until we add the extra options like we have in pve, just use
the already existing (since 1.26) shortcut.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-04 15:35:32 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e937034c86 
					 
					
						
						
							
							remove some rather inconvenient debug output  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-04 15:34:38 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9d02e5c38a 
					 
					
						
						
							
							proxy: use <configdir>/server.pfx for tls  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-04 15:19:32 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9f4962d396 
					 
					
						
						
							
							introduce buildcfg module and PROXMOX_CONFIGDIR  
						
						... 
						
						
						
						buildcfg.rs should contain convenience variables or macros
for using build-time configured variables
For now we replace hardcoded "/etc/proxmox-backup/<foo>"
with configdir!("<foo>").
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-04 15:13:08 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0d176f3681 
					 
					
						
						
							
							proxy: use TLS via tokio-tls  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-04 14:56:07 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e0a5d1ca2f 
					 
					
						
						
							
							tests: chunk_store: cleanup .testdir  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-01 10:41:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a4f9188300 
					 
					
						
						
							
							tests: import lazy_static as needed  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-01 10:41:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6285b251e7 
					 
					
						
						
							
							don't hardcode /usr/share paths  
						
						... 
						
						
						
						Add a defines.mk file defining the standard default layout
for installation (PREFIX, DATAROOTDIR, LIBDIR etc.).
Add a $(JSDIR) variable and use env!("JSDIR") in place of
the hardcoded /usr/share/javascript/proxmox-backup path.
Have defines.mk include an *optional* local.mak to override
JSDIR to www/ during local development.
Add `make install` targets and remove debian/install.
Note that service files are now in $libdir/proxmox-backup/
as there's usually no point in starting them from the
command line, so /usr/sbin makes no sense.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-01 10:41:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8e4df103dd 
					 
					
						
						
							
							remove useless command option from daemons  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-02-01 10:41:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6278365fd9 
					 
					
						
						
							
							improve ApiMethod docu  
						
						
						
						
					 
					
						2019-02-01 10:38:07 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4b2cdeb9a6 
					 
					
						
						
							
							implement relead_timezone flag  
						
						
						
						
					 
					
						2019-02-01 10:04:46 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c82bc1a1f9 
					 
					
						
						
							
							depend on pam-auth, use pam for root login  
						
						... 
						
						
						
						Please use username "root@pam" for login via GUI. 
						
						
					 
					
						2019-02-01 09:30:50 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a154a8e8a4 
					 
					
						
						
							
							delay unauthorized request (rate limit)  
						
						
						
						
					 
					
						2019-01-31 14:34:21 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5996577ab6 
					 
					
						
						
							
							move http error class to router.rs  
						
						
						
						
					 
					
						2019-01-31 13:22:30 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b9903d6331 
					 
					
						
						
							
							server/rest.rs: verify auth cookie  
						
						
						
						
					 
					
						2019-01-31 12:22:00 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f484eed3c2 
					 
					
						
						
							
							Utils.js: fix cookie handling  
						
						... 
						
						
						
						Use unsecure cookie foör testing. 
						
						
					 
					
						2019-01-31 10:08:08 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9f49fe1d5d 
					 
					
						
						
							
							avoid compiler warnings  
						
						
						
						
					 
					
						2019-01-30 18:25:37 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						34f956bc25 
					 
					
						
						
							
							api2/access.rs: add ticket api  
						
						
						
						
					 
					
						2019-01-30 15:16:10 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1bf446a33e 
					 
					
						
						
							
							fix timer_delete call  
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-01-30 12:04:20 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cf671670a0 
					 
					
						
						
							
							auth_helpers.rs: add timestamp to csrf token  
						
						
						
						
					 
					
						2019-01-29 17:50:03 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1e76cbc6a2 
					 
					
						
						
							
							auth_helpers.rs: implement assemble_csrf_prevention_token  
						
						
						
						
					 
					
						2019-01-29 17:41:45 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d01e2420f7 
					 
					
						
						
							
							load auth keys on startup  
						
						
						
						
					 
					
						2019-01-29 17:21:58 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6c30068ebf 
					 
					
						
						
							
							auth_helpers.rs: split code into separate file  
						
						
						
						
					 
					
						2019-01-29 16:55:49 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						39a90ca6c5 
					 
					
						
						
							
							bin/proxmox-backup-api.rs: gererate secret for csrf token  
						
						
						
						
					 
					
						2019-01-29 13:15:33 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						26027a151e 
					 
					
						
						
							
							tools/ticket.rs: remove debug statements  
						
						
						
						
					 
					
						2019-01-29 13:04:01 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8d04280b29 
					 
					
						
						
							
							tools/ticket.rs: add basic ticket support  
						
						
						
						
					 
					
						2019-01-29 12:59:07 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c8f3f9b1af 
					 
					
						
						
							
							server/rest.rs: simplify proxy code  
						
						... 
						
						
						
						Only pass neccessary parameters. 
						
						
					 
					
						2019-01-28 18:22:16 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a859fa95a9 
					 
					
						
						
							
							add protected flag for some api methods  
						
						
						
						
					 
					
						2019-01-28 18:16:47 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a3da38ddfd 
					 
					
						
						
							
							server/rest.rs: implement proxy_sync_api_request  
						
						
						
						
					 
					
						2019-01-28 18:06:42 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f120483353 
					 
					
						
						
							
							server/rest.rs: add proxy_sync_api_request() dummy  
						
						
						
						
					 
					
						2019-01-28 17:30:39 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4e4df8e2f0 
					 
					
						
						
							
							api/router.rs: add new 'protected' flag to ApiMethod  
						
						
						
						
					 
					
						2019-01-28 17:18:42 +01:00