Commit Graph
100 Commits
Author SHA1 Message Date
RandyTheSilly 4ebbf7847d Fixed deletions occuring after the local index is generated, causing sshync to believe sheared files still exist on the client 2022-12-07 22:29:15 -05:00
RandyTheSilly af44f244db Updated packaging script to accommodate the removal of sshypRemote.py 2022-12-07 20:43:56 -05:00
RandyTheSilly 9d8eca3a2b Strip entry/folder names after user input to ensure compatibility with sshync 2022-12-07 20:27:39 -05:00
RandyTheSilly b24d1df721 Assigned exit code 6 to "server connection error" 2022-12-07 15:55:01 -05:00
RandyTheSilly 6080726dc6 Combined all list fetching functions into one to drastically reduce the number of SSH connections (speeds up sshync exponentially) 2022-12-07 15:46:33 -05:00
RandyTheSilly a49334482c Organized functions in sshync.py by use method 2022-12-05 23:21:02 -05:00
RandyTheSilly 56ea8d0cf9 Moved all syncing functionality into sshync.py, removed sshypRemote.py 2022-12-05 12:13:28 -05:00
RandyTheSilly 6f016bfb0a Call specifically 'python3' over ssh, as some environments do not have a binary/symlink named 'python', or 'python' may refer to python2 2022-12-05 09:36:37 -05:00
RandyTheSilly 31a4c7b8e7 Replaced use of system-provided 'ls' with 'os.listdir' 2022-12-04 18:57:23 -05:00
RandyTheSilly 45e2b60e10 Replaced use of system-provided 'touch' with pathlib's Path.touch, added 'mode=' when specifying permissions 2022-12-04 18:33:41 -05:00
RandyTheSilly d7987a1bc0 Detect Wayland sessions by checking if $WAYLAND_DISPLAY is set 2022-12-04 17:45:50 -05:00
RandyTheSilly 952fdd160b Re-ordered clipboard support to match support priorities (Wayland first) 2022-12-04 17:38:10 -05:00
RandyTheSilly c8c394e550 Replace occasional use of system-provided mkdir with pathlib's Path.mkdir 2022-12-04 15:31:31 -05:00
RandyTheSilly db4351469e Removed all remaining instances of subprocess.run being called with shell=True 2022-11-28 14:17:26 -05:00
RandyTheSilly e8703300fd Replace remaining uses of system() 2022-11-28 13:38:17 -05:00
RandyTheSilly 322db7ac54 Allow Haiku to use default pinentry, thanks to haikuports/haikuports#7457 2022-11-28 12:52:54 -05:00
RandyTheSilly cc81f219fa Use XDG_SESSION_TYPE to check for Wayland, rather than WAYLAND_DISPLAY 2022-11-26 23:57:12 -05:00
RandyTheSilly bf20b83738 Renaming no longer throws an error while not in offline mode 2022-11-26 15:18:47 -05:00
RandyTheSilly 74f9f616f3 Move some rarely used import statements closer to where they are needed 2022-11-26 14:05:19 -05:00
RandyTheSilly daf3f0d7bf Reduced code used for clipboard support 2022-11-26 13:53:47 -05:00
RandyTheSilly dc218025a7 Replace all currently replaceable instances of system() or run(X, shell=True) with run(X, shell=False) for security and compatibility 2022-11-26 13:19:09 -05:00
RandyTheSilly 3a63966827 Attempt to create ~/.ssh regardless of OS 2022-11-25 21:40:23 -05:00
RandyTheSilly 3ad2068b11 Use os.symlink in place of shell commands 2022-11-25 21:32:18 -05:00
RandyTheSilly 9b9f49a344 Removed exit code 6 from man page, as it no longer has reason to exist in sshyp 2022-11-25 21:17:41 -05:00
RandyTheSilly 8276b9164e Replaced database downloads in sync() with newer output capture logic from sshync - much faster syncing 2022-11-25 21:11:07 -05:00
RandyTheSilly dce6ad4390 Removed useless pass statement in sync() 2022-11-25 19:37:13 -05:00
RandyTheSilly b10c111640 pass_gen no longer recurses when the user gives invalid input 2022-11-25 19:23:14 -05:00
RandyTheSilly 3a96ef29dc Import os.path.expanduser directly to remove lots of repeated text 2022-11-25 18:45:06 -05:00
RandyTheSilly 3a85f06ffe Use subprocess.run without shell=True where easily applicable, redirect unused captured output to DEVNULL 2022-11-25 18:11:38 -05:00
RandyTheSilly 289d12f45a Use ASCII 30 and 31 as separators, removes limitations on "@", "^&*", and "*&^". 2022-11-25 12:00:51 -05:00
RandyTheSilly ae5172a6c8 Replaced sshync mod time/title retrieval logic with much more efficient and compatible logic 2022-11-24 19:40:04 -05:00
RandyTheSilly d1c968ed12 Corrected Fedora packaging 2022-11-06 14:00:51 -05:00
RandyTheSilly 109141a266 Removed '~' from generated filename character pool to avoid issues with quick-unlock 2022-11-06 13:25:35 -05:00
RandyTheSilly 57cc730d92 Corrected date in man page 2022-11-06 11:21:21 -05:00
RandyTheSilly 790ac573e5 Fixed documentation location in Haiku 2022-11-06 10:50:25 -05:00
RandyTheSilly 8b8e0c510f Updated quick-unlock failure error message 2022-11-06 00:49:44 -04:00
RandyTheSilly 0b0c8a37d1 Only check whitelist status if the gpg agent is locked (speeds up successive quick-unlock attempts) 2022-11-06 00:43:25 -04:00
RandyTheSilly 5fa30fa770 Added instructions for enabling Bash completions 2022-11-06 00:15:28 -04:00
RandyTheSilly 8b3bf04945 Fixed device id fetching (and quick-unlock verification) on Haiku 2022-11-05 23:57:09 -04:00
RandyTheSilly 24be16faaa Fixed FreeBSD package symlink target 2022-11-05 22:42:53 -04:00
RandyTheSilly 446cab94c2 Specified changelog location in Fedora package 2022-11-05 22:39:28 -04:00
RandyTheSilly e3af035bce Removed executable bits where they are not needed 2022-11-05 22:33:48 -04:00
RandyTheSilly 687a606160 Fixed options/flags layout in man page 2022-11-05 19:40:00 -04:00
RandyTheSilly e840b9def0 Update 'whitelist del' example to match 'whitelist add' example 2022-11-05 19:32:01 -04:00
RandyTheSilly 486fc39f22 Fix spacing between exit codes in man page 2022-11-05 19:28:27 -04:00
RandyTheSilly a63d1caa2e Update whitelist add example in man page to match new string generation 2022-11-05 19:27:20 -04:00
RandyTheSilly c2639d1f42 Update synopsis in man page 2022-11-05 19:22:39 -04:00
RandyTheSilly 9cd5066cc9 Fixed visual issue with version info screen 2022-11-05 19:12:51 -04:00
RandyTheSilly 517d2a3d22 Update documentation for v1.2.0 2022-11-05 18:27:43 -04:00
RandyTheSilly 80594712c7 Added a packaging option to create all packages buildable on Arch Linux 2022-11-05 17:56:14 -04:00
RandyTheSilly ca983d4992 Fixed editing entries with new string generation 2022-11-05 15:34:19 -04:00
RandyTheSilly 0614c2c83b Allow complex string generation for /dev/shm and device ids 2022-11-05 15:21:30 -04:00
RandyTheSilly 900f216ac0 Removed generated password length limit 2022-11-05 14:01:49 -04:00
RandyTheSilly 022ad9ef6d Several fixes to allow the Haiku package to work again 2022-11-04 00:30:48 -04:00
RandyTheSilly a1d5c8607c Made spacing in server help menus consistent with client help menus 2022-11-03 22:58:35 -04:00
RandyTheSilly 942febfac9 Fedora now only requires openssh-clients, rather than the openssh meta package 2022-11-03 22:47:58 -04:00
RandyTheSilly 33f7330886 Made exit codes more specific to their errors 2022-10-26 13:32:23 -04:00
RandyTheSilly 07394c1740 Added bash-completion as an optional dependency where applicable 2022-10-25 23:10:51 -04:00
RandyTheSilly a26ca86977 Fixed quick-unlock requirng passphrase regardless of whether or not it is needed - again 2022-10-25 11:53:52 -04:00
RandyTheSilly 51d99992a5 Require _client_device_id as parameter to whitelist_verify (for extension support) 2022-10-24 15:31:06 -04:00
RandyTheSilly d887047fd0 Initial enablement of extension support for quick-unlock 2022-10-20 15:25:57 -04:00
RandyTheSilly 304c1b09f0 Removed an exit statement that was preventing extensions from working 2022-10-19 15:13:14 -04:00
RandyTheSilly 6b20b82dd5 Allow fallback to standard unlock if quick-unlock fails 2022-10-19 11:34:02 -04:00
RandyTheSilly e66ecd9514 Created local _quick_enabled for decrypt() for extension support 2022-10-19 10:14:39 -04:00
RandyTheSilly c8691372ca Removed need to re-enter quick-unlock passphrase is the gpg agent is already unlocked 2022-10-19 10:04:52 -04:00
RandyTheSilly 2b98562dca Optimized decrypt() 2022-10-19 09:33:38 -04:00
RandyTheSilly 9d990eb9f6 Fixed string_gen complex generating unprintable strings 2022-10-18 14:54:10 -04:00
RandyTheSilly 07cf7a558f Fixed shearing and renaming entries with quick-unlock 2022-10-18 13:35:12 -04:00
RandyTheSilly fa7e03bcf7 Automatically set quick-unlock passphrase length if the user specifies an invalid option 2022-10-13 16:49:08 -04:00
RandyTheSilly f5161ef5cb Removed unnecessary s_exit() statements 2022-10-13 10:58:07 -04:00
RandyTheSilly fd12a3c003 Made error message for when quick-unlock fails more clear 2022-10-12 16:24:27 -04:00
RandyTheSilly 70ee2c6d04 Respect the user-specifed quick-unlock passphrase length 2022-10-12 14:57:33 -04:00
RandyTheSilly 35ee78f717 Truncate max quick-unlock password length 2022-10-12 14:53:48 -04:00
RandyTheSilly 8dd5101c7f Fixed failed decryption on excluded.gpg 2022-10-12 14:37:54 -04:00
RandyTheSilly 844280c13e Fixed quick-unlock gpg key passphrase creation and made quick-unlock more verbose 2022-10-12 13:39:01 -04:00
RandyTheSilly d9e2a7d4e1 Attempt remote imports from /lib/sshyp, rather than /bin 2022-10-12 12:48:08 -04:00
RandyTheSilly 3147d9327b Ensure generated device id is a valid file name 2022-10-12 12:32:54 -04:00
RandyTheSilly 29c7b931c9 Fixed quick-unlock configuration looking for an integer as input 2022-10-12 12:19:02 -04:00
RandyTheSilly b81018c122 Implemented quick-unlock decryption support 2022-10-12 12:06:07 -04:00
RandyTheSilly 5a9457cc5d Simplify client-side quick-unlock configuration 2022-10-12 11:46:12 -04:00
RandyTheSilly 845f968aeb Initial implementation of quick-unlock verification 2022-10-11 17:08:30 -04:00
RandyTheSilly 9b0b4acf77 Properly increment _i in whitelist_setup() 2022-10-11 12:42:42 -04:00
RandyTheSilly c9934368a4 Added server-side whitelist setup 2022-10-11 12:40:35 -04:00
RandyTheSilly 243c3c466e Reduced questions asked for quick-unlock setup 2022-10-11 10:51:00 -04:00
RandyTheSilly 40213aa518 Fixed decryption of multi-word entries 2022-10-11 09:47:24 -04:00
RandyTheSilly c31a5a1664 Move a rarely used import statement closer to where it's needed in sshync 2022-10-11 09:28:13 -04:00
RandyTheSilly 8642601eee Only import rarely used modules when they're needed 2022-10-11 09:22:40 -04:00
RandyTheSilly 71585770eb Fixed renaming folders and receiving false error messages when renaming entries in offline mode 2022-10-11 09:10:31 -04:00
RandyTheSilly affcb3adbe Fixed deleting and renaming entries in offline mode 2022-10-10 19:37:38 -04:00
RandyTheSilly 45605bf7bc Fixed folder creation in offline mode 2022-10-10 18:20:43 -04:00
RandyTheSilly 772eaa0846 Fixed bugs causing entries to not be saved or entries being saved to the wrong place 2022-10-10 17:52:14 -04:00
RandyTheSilly c9c88a041d Put .py files in /usr/lib/sshyp, symlink executables to /usr/bin 2022-10-10 11:16:56 -04:00
RandyTheSilly cc4324f953 Correctly add strings to config file list 2022-10-08 21:33:35 -04:00
RandyTheSilly 48170f494e Overwrite old configuration file 2022-10-08 21:19:47 -04:00
RandyTheSilly 324a5f9a7c Bug fixes for the revised config file format and server-side arguments 2022-10-08 21:10:47 -04:00
RandyTheSilly 2c1241a1bc Initial addition of offline mode 2022-10-06 16:42:58 -04:00
RandyTheSilly d069ab82f9 Client-side whitelist error message now shows up will all additional whitelist options 2022-10-06 09:02:32 -04:00
RandyTheSilly b8b99755f0 Added error message for when whitelist is used client-side 2022-10-06 08:57:48 -04:00
RandyTheSilly 88e97d0131 Use rstrip() in place of replace() where applicable 2022-10-06 08:47:38 -04:00
RandyTheSilly 012796f052 Added quick-unlock configuration, tweaked config files 2022-10-05 23:46:32 -04:00