-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #554 from str4d/bugfix-0.11.1
plugin: restrict characters in plugin names
- Loading branch information
Showing
15 changed files
with
216 additions
and
54 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
bin.name = "rage-keygen" | ||
args = "--version" | ||
stdout = """ | ||
rage-keygen 0.11.0 | ||
rage-keygen 0.11.1 | ||
""" | ||
stderr = "" |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
bin.name = "rage-mount" | ||
args = "--version" | ||
stdout = """ | ||
rage-mount 0.11.0 | ||
rage-mount 0.11.1 | ||
""" | ||
stderr = "" |
8 changes: 8 additions & 0 deletions
8
rage/tests/cmd/rage/decrypt-invalid-identity-chars.in/file.age.txt
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,8 @@ | ||
-----BEGIN AGE ENCRYPTED FILE----- | ||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBHUGc3Zlhpekp0K012aXdu | ||
T1VZN0lmWlRmNjdLYVB4RldkTFVLTkNDUXlBCmJjRUcrM3E0a0U0N3IyK1JsTitG | ||
dHVTd0N6TVFRTWgzdG5uSzJmNm9YMTgKLT4gQXQ1WWAtZ3JlYXNlIDxodGFSVHJg | ||
IFg0cWYsO0ogZ2Fzc1EKZGtPSTB3Ci0tLSBKazRIaHJxdnNJcHpyclRkQjg3QW5r | ||
SVE2MHdtWkErYTNrNWJibWd1bmNBCkK9FoOkiLB93gD79vNed8L3LM9rhKm5qma2 | ||
lSiwRx/aM1DKaZO0CMmYQkoM2tPReA== | ||
-----END AGE ENCRYPTED FILE----- |
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,13 @@ | ||
bin.name = "rage" | ||
args = "--decrypt --identity - file.age.txt" | ||
status = "failed" | ||
stdin = """ | ||
AGE-PLUGIN-FOOBAR/../../../../../../../USR/BIN/ECHO-1HKGPY3 | ||
""" | ||
stdout = "" | ||
stderr = """ | ||
Error: identity file contains non-identity data on line 1 | ||
[ Did rage not do what you expected? Could an error be more useful? ] | ||
[ Tell us: https://str4d.xyz/rage/report ] | ||
""" |
12 changes: 12 additions & 0 deletions
12
rage/tests/cmd/rage/decrypt-invalid-plugin-name-chars.toml
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,12 @@ | ||
bin.name = "rage" | ||
args = "--decrypt -j foobar/../../../../../../../usr/bin/echo" | ||
status = "failed" | ||
stdin = "" | ||
stdout = "" | ||
stderr = """ | ||
Error: Could not find 'foobar/../../../../../../../usr/bin/echo' on the PATH. | ||
Have you installed the plugin? | ||
[ Did rage not do what you expected? Could an error be more useful? ] | ||
[ Tell us: https://str4d.xyz/rage/report ] | ||
""" |
Oops, something went wrong.