Commit Graph
168 Commits
Author SHA1 Message Date
Filippo Valsorda 4ea591b25f HomebrewFormula: update age to v1.0.0-rc.3 2021-06-15 14:27:09 +02:00
Filippo Valsorda 9d4b2ae7ac age: move the scrypt lone recipient check out of Decrypt
The important one is the decryption side one, because when a user types
a password they expect it to both decrypt and authenticate the file.
Moved that one out of Decrypt and into ScryptIdentity, now that
Identities get all the stanzas. special_cases--

This also opens the door to other Identity implementations that do allow
multiple scrypt recipients, if someone really wants that. The CLI will
never allow it, but an explicit choice by an API consumer feels like
something we shouldn't interfere with.

Moreover, this also allows alternative Identity implementations that use
different recipient types to replicate the behavior if they have the
same authentication semantics.

The encryption side one is only a courtesy, to stop API users from
making files that won't decrypt. Unfortunately, that one needs to stay
as a special case in Encrypt, as the Recipient can't see around itself.
However, changed it to a type assertion, so custom recipients can
generate multiple scrypt recipient stanzas, if they really want.
v1.0.0-rc.3
2021-06-15 14:00:10 +02:00
GitHub ActionsandFilippo Valsorda 1ddf01df2c doc: regenerate groff and html man pages 2021-06-14 13:24:26 +02:00
Filippo ValsordaandFilippo Valsorda f4e28fe809 .github/workflows: fix non-idempotent ronn email mangling 2021-06-14 13:24:26 +02:00
Filippo ValsordaandFilippo Valsorda 0703f86521 cmd/age,cmd/age-keygen: normalize errors, warnings, and hints 2021-06-14 13:24:26 +02:00
Filippo ValsordaandFilippo Valsorda fb97277f8d cmd/age: add support for encrypted identity files
Updates #252
Closes #132
2021-06-14 13:24:26 +02:00
Filippo Valsordaandcodesoap fa5b575ceb cmd/age: use CONIN$/CONOUT$ on Windows for password prompts
Fixes #128
Closes #274

Co-authored-by: codesoap <codesoap@mailbox.org>
2021-06-02 11:04:02 +02:00
GitHub Actions cde103daae doc: regenerate groff and html man pages 2021-06-01 10:26:04 +00:00
Andreas WachowskiandGitHub b403e96be8 doc: fix typo in age-keygen(1) (#273) 2021-06-01 06:25:16 -04:00
GitHub Actions 329a7ece8f doc: regenerate groff and html man pages 2021-05-26 14:47:36 +00:00
Filippo Valsorda 3cd503dce9 doc: SEC 1 encoding is for ECDSA, which we don't support 2021-05-26 16:44:38 +02:00
Filippo Valsorda cd28d56599 .github/workflows: don't run ronn on new tags 2021-05-26 15:28:21 +02:00
Filippo Valsorda a94f3c3dc9 HomebrewFormula: update age to v1.0.0-rc.2 2021-05-26 13:52:31 +02:00
Filippo Valsorda 6596145a2c armor: don't leave an empty line before the footer
Closes #264
Fixes #263
v1.0.0-rc.2
2021-05-26 13:35:30 +02:00
Filippo Valsorda 7a262e1ffd agessh: use allowed RSA key size in tests 2021-05-25 21:15:04 +02:00
Filippo Valsorda 0b895a9340 HomebrewFormula: drop man pages that are not yet in the release 2021-05-25 20:54:31 +02:00
Filippo ValsordaandFilippo Valsorda c9aca162ef README: add pkg.go.dev and man page badges 2021-05-25 20:45:46 +02:00
GitHub ActionsandFilippo Valsorda c7c3012437 doc: regenerate groff and html man pages 2021-05-25 20:36:23 +02:00
Filippo ValsordaandFilippo Valsorda e58a8859b9 doc: add age(1) and age-keygen(1) man pages
Closes #131
2021-05-25 20:36:23 +02:00
Filippo Valsorda fb293ef526 agessh: reject small ssh-rsa keys
Fixes #266
2021-05-24 10:58:50 +02:00
Caleb MaclennanandGitHub 3d5b49a348 README.md: drop system upgrade args from Arch Linux install (#270) 2021-05-24 04:41:27 -04:00
mjkalyanandGitHub cd4b2476bc README.md: add Gentoo installation method (#269) 2021-05-24 04:40:36 -04:00
Ryan CastellucciandGitHub 759a88d3e8 cmd/age-keygen: don't warn about world-readable output for public keys (#268)
Fixes #267
2021-05-18 20:35:29 -04:00
Filippo Valsorda 85763d390a age: remove recipient limit
Fixes #139
2021-05-02 18:44:21 -04:00
Filippo ValsordaandGitHub fff82986fa README: clarify pronunciation reference
Updates #103
2021-04-23 11:38:05 -04:00
Filippo ValsordaandGitHub 67ce088a41 README: add pronunciation
Fixes #103
2021-04-23 03:27:04 -04:00
Filippo ValsordaandGitHub 3ad0bbed99 README: dry up installation instructions into a table 2021-04-23 02:34:51 -04:00
Simone RagusaandGitHub 7a55783693 README: add NixOS/Nix installation instructions (#197) 2021-04-23 02:13:24 -04:00
Herby GillotandGitHub d271e916cf README: add instructions for installing via MacPorts (#179) 2021-04-23 02:12:51 -04:00
Robert-André MauchinandGitHub 50254ff522 README: add Fedora installation instructions (#183) 2021-04-23 02:10:02 -04:00
Filippo Valsorda 7a335c9d5d cmd/age: allow reading both passphrase and input from a terminal
Fixes #196
Closes #258
2021-04-23 02:06:50 -04:00
Filippo Valsorda ff1b4ffb08 cmd/age,cmd/age-keygen: check Close() error on output files
Fixes #81
2021-04-23 00:11:12 -04:00
Filippo Valsorda e63c22e327 Reapply "agessh: use filippo.io/edwards25519 for Ed25519 to Curve25519 conversion"
This reverts commit 629b0dbbc9.
2021-04-22 22:27:35 -04:00
Filippo ValsordaandGitHub a6a173e24f .github/workflows: add freebsd/amd64 and darwin/arm64 builds
Fixes #189
2021-04-22 22:22:57 -04:00
Filippo ValsordaandGitHub b4e0d7718f README: remove mailing list mention
It wasn't very active and was replaced by GitHub Discussions.
2021-04-19 00:21:27 -04:00
Filippo ValsordaandGitHub 9e65644c3f .github: update "New issue" page (#211) 2021-04-18 18:45:50 -04:00
Christian RebischkeandGitHub 290a2fd5ec README: mention official Arch Linux package (#204)
Signed-off-by: Christian Rebischke <chris@shibumi.dev>
2021-04-05 11:19:17 -04:00
Richard UlmerandGitHub bad2c0d2e0 cmd/age: use golang.org/x/term instead of deprecated package (#205) 2021-04-05 09:22:51 -04:00
Ben Banfield-ZaninandGitHub dabc470bfe HomebrewFormula: update age.rb to 1.0.0-rc.1 (#199) 2021-03-21 07:12:27 -04:00
Filippo ValsordaandFilippo Valsorda 53f0ebda67 cmd/age: improve a couple error messages v1.0.0-rc.1 2021-03-10 05:38:47 -05:00
Filippo ValsordaandFilippo Valsorda f3fdc33c9e cmd/age-keygen: add -y mode to convert identity file to recipients
Copied -y from ssh-keygen. Copied the INPUT as only optional argument
from cmd/age.

Fixes #122
Closes #146
2021-03-10 05:38:47 -05:00
Filippo ValsordaandFilippo Valsorda a81357c237 all: update golang.org/x/crypto
Picked the latest version that is packaged in Debian Bullseye.

Fixes #184
2021-03-10 05:38:47 -05:00
Filippo ValsordaandFilippo Valsorda 69e2222921 internal/format: drop go-fuzz test case
We were not running it in CI, so it had rotted or was going to rot.
We'll replace it with a native fuzz test once that's ready.
2021-03-10 05:38:47 -05:00
Filippo ValsordaandFilippo Valsorda 732f3e8a94 cmd/age: add -e and support encrypting with -i
This will come in handy for symmetric plugins, but make it require an
explicit -e so that missing a -d can't cause a mistaken encryption.
2021-03-10 05:38:47 -05:00
Filippo ValsordaandFilippo Valsorda 801a7e8b33 cmd/age: overwrite output file if existing
Not really the safest UX, but age is a UNIX tool, and this is what all
UNIX tools do, so adopt the principle of least surprise.
2021-03-10 05:38:47 -05:00
Filippo ValsordaandFilippo Valsorda 629b0dbbc9 Revert "agessh: use filippo.io/edwards25519 for Ed25519 to Curve25519 conversion"
The extra dependency makes it harder to package age. Temporarily drop it
to facilitate getting v1.0.0 into distributions.

This reverts commit 53ccaf8b71.
2021-03-10 05:38:47 -05:00
Filippo ValsordaandFilippo Valsorda 710644eef8 Revert "cmd/age: automatically load default SSH key paths"
It's not clear the convenience for SSH keys is worth having any
implicitly configured identity at all. Will revisit after v1.0.0.

This reverts commit 225044b061.
2021-03-10 05:38:47 -05:00
Filippo ValsordaandGitHub 6c8d072dd8 .github/workflows: add Go tip tests and bump tests to Go 1.16 2021-03-09 18:51:05 -05:00
Filippo Valsorda 225044b061 cmd/age: automatically load default SSH key paths 2021-02-08 19:55:28 +01:00
Filippo Valsorda 6da7d26b4d all: add .gitattributes to protect .age files from autocrlf
It looks like a short message encrypted to a long RSA key is enough
ASCII that it gets autocrlf'd on Windows.
2021-02-08 19:55:28 +01:00