-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shell-session: Fixed false positives because of links in command outp…
…ut (#2649)
- Loading branch information
1 parent
add3736
commit 8e76a97
Showing
4 changed files
with
104 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
$ export BORG_PASSCOMMAND="security find-generic-password -a $USER -s borg-passphrase -w" | ||
$ export BORG_RSH="ssh -i ~/.ssh/borg" | ||
$ borg init --encryption=keyfile-blake2 "[email protected]:backup" | ||
|
||
By default repositories initialized with this version will produce security | ||
errors if written to with an older version (up to and including Borg 1.0.8). | ||
|
||
If you want to use these older versions, you can disable the check by running: | ||
borg upgrade --disable-tam ssh://[email protected]/./backup | ||
|
||
See https://borgbackup.readthedocs.io/en/stable/changes.html#pre-1-0-9-manifest-spoofing-vulnerability for details about the security implications. | ||
|
||
IMPORTANT: you will need both KEY AND PASSPHRASE to access this repo! | ||
Use "borg key export" to export the key, optionally in printable format. | ||
Write down the passphrase. Store both at safe place(s). | ||
|
||
--- | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["command", [ | ||
["shell-symbol", "$"], | ||
["bash", [ | ||
["builtin", "export"], | ||
["assign-left", [ | ||
"BORG_PASSCOMMAND" | ||
]], | ||
["operator", [ | ||
"=" | ||
]], | ||
["string", [ | ||
"\"security find-generic-password -a ", | ||
["environment", "$USER"], | ||
" -s borg-passphrase -w\"" | ||
]] | ||
]] | ||
]], | ||
["command", [ | ||
["shell-symbol", "$"], | ||
["bash", [ | ||
["builtin", "export"], | ||
["assign-left", [ | ||
"BORG_RSH" | ||
]], | ||
["operator", [ | ||
"=" | ||
]], | ||
["string", [ | ||
"\"ssh -i ~/.ssh/borg\"" | ||
]] | ||
]] | ||
]], | ||
["command", [ | ||
["shell-symbol", "$"], | ||
["bash", [ | ||
"borg init --encryption", | ||
["operator", [ | ||
"=" | ||
]], | ||
"keyfile-blake2 ", | ||
["string", [ | ||
"\"[email protected]:backup\"" | ||
]] | ||
]] | ||
]], | ||
|
||
["output", "By default repositories initialized with this version will produce security\nerrors if written to with an older version (up to and including Borg 1.0.8).\n\nIf you want to use these older versions, you can disable the check by running:\nborg upgrade --disable-tam ssh://[email protected]/./backup\n\nSee https://borgbackup.readthedocs.io/en/stable/changes.html#pre-1-0-9-manifest-spoofing-vulnerability for details about the security implications.\n\nIMPORTANT: you will need both KEY AND PASSPHRASE to access this repo!\nUse \"borg key export\" to export the key, optionally in printable format.\nWrite down the passphrase. Store both at safe place(s).\n\n---"] | ||
] |