1
0
Fork 0
mirror of synced 2024-11-14 21:48:57 -05:00
Commit graph

661 commits

Author SHA1 Message Date
Tim Byrne
778c33145c
Remove legacy code which was reintroduced 2020-02-28 07:58:07 -06:00
Tim Byrne
0995f38b06
Merge pull request #138 from ldotlopez/master
I signed all commits first
2020-02-27 08:24:25 -06:00
Luis López
831c9ec09d
Testing: add new config items to tests 2020-02-27 08:21:48 -06:00
Luis López
9fe5377749
Fix some typos and code style 2020-02-27 08:21:27 -06:00
Luis López
7698adfd77
Rebase on top of upstream/develop 2020-02-27 08:21:14 -06:00
Luis López
8e2d85de7f
Merge from upstream 2020-02-27 08:20:45 -06:00
Luis López
67ce492b2a
Added undocumented config yadm.openssl-ciphername 2020-02-27 07:44:44 -06:00
Luis López
bde5ecbc66
Deduplicate openssl cipher name code (and change default value) 2020-02-27 07:44:41 -06:00
Luis López
baaeb88628
Initial support for alternative cyphers.
This patch implements an OpenSSL cypher (via openssl enc command). It has to be enabled using yadm.cypher configuration key.

Some rough edges:
- archive file refers to GPG (.gpg extension)
- no test cases
2020-02-27 07:43:57 -06:00
James Clark
77d2da4e9b
Support architecture in alternates (#202) 2020-02-22 02:08:53 +00:00
Tim Byrne
550a6b4340
Add transcrypt info to man page 2020-02-21 08:15:58 -06:00
Tim Byrne
4b99ece480
Support transcrypt (#197)
Support is inherently provided by `enter`, which supports a command.
I've added a `transcrypt` command, which is really just an alias
under-the-hood for "enter transcrypt".
2020-02-21 08:05:56 -06:00
Tim Byrne
ee9ffb6828
Reorder command list 2020-02-21 07:55:58 -06:00
Tim Byrne
dd86c8a691
Release 2.4.0
Update version number and update documentation

* Support multiple keys in `yadm.gpg-recipient` (#139)
* Ensure all templates are written atomically (#142)
* Add encrypt_with_checksums to the hooks collection (#188)
* Escape white space in YADM_HOOK_FULL_COMMAND (#187)
* Improve parsing of os-release (#194)
* Improve identification of WSL (#196)
* Fix troff warnings emitted by man page (#195)
* Write encrypt-based exclusions during decrypt
2020-02-06 07:53:18 -06:00
Tim Byrne
79e93e38bc
Fix error when /proc/version is missing 2020-02-03 08:30:50 -06:00
Tim Byrne
45f1d93193
Add test for WSL identification 2020-02-03 08:30:34 -06:00
Ross Smith II
062181be4a
Simplify WSL identification 2020-02-03 08:27:54 -06:00
Tim Byrne
69cde7f83c
Exclude files listed in yadm/encrypt when decrypt is called
Previously this would only happen when encrypting.
2020-01-30 09:39:10 -06:00
Tim Byrne
bd68229c57
Use include "venv" instead of "virtualenv" 2020-01-30 08:42:17 -06:00
Tim Byrne
1200d53f62
Add info about changes to YADM_HOOK_FULL_COMMAND 2020-01-27 07:35:09 -06:00
Tim Byrne
02bedd712a
Add example of parsing YADM_HOOK_FULL_COMMAND 2020-01-27 07:31:58 -06:00
Tim Byrne
9a2883985b
Test for escaped values in YADM_HOOK_FULL_COMMAND 2020-01-24 08:33:30 -06:00
Tim Byrne
ccb75b97ea
Escape space in YADM_HOOK_FULL_COMMAND (#187)
Backslashes are used to escape spaces, tabs, and backslashes. This
allows hooks to identify separate parameters (which are space
delimited).
2020-01-24 08:33:07 -06:00
Tim Byrne
3b820835ab
Test for warnings from man (#195) 2020-01-21 07:26:10 -06:00
Tim Byrne
d16f4b134a
Add man to testbed Docker image 2020-01-21 07:26:00 -06:00
Tim Byrne
d5b217f850
Merge pull request #195 from rra/manpage-fix 2020-01-21 07:24:42 -06:00
Tim Byrne
76c82c763e
Improve identification of WSL (#196)
Ignore case when searching for Microsoft inside /proc/version.
2020-01-20 07:52:50 -06:00
Russ Allbery
45ccf09aa5
Fix leading vim comment
Change `."` to `.\"` for a *roff comment.  `."` appears to do the
same thing, but only accidentally because it's treated as an unknown
macro and then ignored by default.  `man --warnings` will show the
problem:

  % man --warnings ./yadm.1 > /dev/null
  troff: <standard input>:1: warning: macro '"' not defined
2020-01-17 11:41:34 -08:00
Tim Byrne
04b98a96cb
Ensure all templates are written atomically
This takes jonasc's change, and applies it to all template writing. Also
removes the dependency on mktemp, and only moves files if they are
successfully written.
2020-01-16 16:27:59 -06:00
Tim Byrne
3e42bd9f52
Merge pull request #142 from jonasc/master
Resolved conflicts, and signed commit from jonasc.
2020-01-16 12:59:32 -06:00
jonasc
a1845c6e8a
Write template result to temporary file and move
This prevents problems with programs which watch the file for changes and will
first be presented an empty file.
One such example which will show a notification message about an empty config
file is Alacritty.
By writing to a tempory file and then moving it (atomically?) to the real
location this problem is mitigated.
2020-01-16 12:58:38 -06:00
Tim Byrne
75d2747aa0
Add test for multiple recipients 2020-01-15 09:17:26 -06:00
Tim Byrne
83c0edd9fb
Mention multiple recipients in man page 2020-01-15 08:07:04 -06:00
Tim Byrne
0b22220e3c
Merge pull request #139 from stigtsp/multiple-gpg-recipients 2020-01-14 08:08:44 -06:00
Tim Byrne
d9f68978fa
Add test for quoted os-release 2020-01-14 07:21:02 -06:00
Tim Byrne
4546636336
Merge pull request #194 from rasa/rasa/remove-quotes-from-distro 2020-01-14 07:14:04 -06:00
Tim Byrne
6e444736ab
Tests for encrypt_with_checksums hooks 2020-01-13 08:06:15 -06:00
Tim Byrne
8c6a96545d
Add organization and documentation to hooks collection 2020-01-10 08:37:24 -06:00
Tim Byrne
2af9c3a524
Merge pull request #188 from mzuther/encrypt_with_checksums 2020-01-10 07:54:29 -06:00
Martin Zuther
0009bb350b
get rid of echo 2019-12-30 00:43:24 +01:00
Martin Zuther
499837bd80
apply code review changes 2019-12-30 00:34:27 +01:00
Martin Zuther
9c9a750009
get rid of dependencies (pure bash) 2019-12-29 15:53:01 +01:00
Martin Zuther
45b218d5c1
support encrypted files in "yadm list"
* export some helper functions to hooks
2019-12-29 15:21:55 +01:00
Martin Zuther
bd19e31c6e
get rid of dirname 2019-12-29 12:51:29 +01:00
Martin Zuther
3c204119fb
select one of several checksum commands 2019-12-28 22:35:55 +01:00
Martin Zuther
c190333fdf
correctly export array to subscript
* fix shellcheck errors and warnings
2019-12-28 16:09:19 +01:00
Martin Zuther
0b79b461a6
change checksum algorithm to SHA-512
* SHA-512/256 doesn't seem to be supported on OS X
  (see https://ss64.com/osx/shasum.html)
2019-12-28 11:17:52 +01:00
Martin Zuther
e9720fb1c3
add quotes to support spaces in filenames 2019-12-27 23:39:06 +01:00
Martin Zuther
e96345eb87
re-factor hooks
* gracefully pass missing dependencies (grep and sed)
2019-12-27 23:25:45 +01:00
Martin Zuther
91266ca8eb
Check encrypted files with SHA-512/256 checksums 2019-12-27 18:15:04 +01:00