Jack Grigg
5afec288c9
Forbid unsafe code
2022-03-20 16:53:39 +00:00
Jack Grigg
7d2e3a6829
Remove trait imports that are in the 2021 edition prelude
2022-03-20 16:53:39 +00:00
Jack Grigg
74b76d3f5e
Migrate to 2021 edition
...
Closes str4d/age-plugin-yubikey#52 .
2022-03-20 16:53:39 +00:00
str4d
6fd6a205ca
Merge pull request #55 from str4d/msrv-1.56
...
Bump MSRV to 1.56.0
2022-03-20 16:43:00 +00:00
Jack Grigg
0b930efc49
cargo update
2022-03-20 16:24:29 +00:00
Jack Grigg
2fd5af8538
Bump MSRV to 1.56.0
...
Closes str4d/age-plugin-yubikey#51 .
2022-03-20 16:23:52 +00:00
dependabot[bot]
5814f5f1a0
Bump svenstaro/upload-release-action from 2.2.0 to 2.2.1
...
Bumps [svenstaro/upload-release-action](https://github.com/svenstaro/upload-release-action ) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/svenstaro/upload-release-action/releases )
- [Changelog](https://github.com/svenstaro/upload-release-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/svenstaro/upload-release-action/compare/2.2.0...2.2.1 )
---
updated-dependencies:
- dependency-name: svenstaro/upload-release-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-20 15:25:25 +00:00
str4d
37c813e0a7
Merge pull request #50 from str4d/ci-updates
...
CI updates
2022-03-20 15:25:06 +00:00
Jack Grigg
60b36e39c8
CI: Use ubuntu-18.04 for Linux release builder
...
GitHub removed `ubuntu-16.04` in September 2021, which causes the
release workflow to hang waiting on a runner that will never be made
available.
2022-03-20 15:18:19 +00:00
Jack Grigg
da9212c135
CI: Add Dependabot config to keep GitHub Actions up-to-date
2022-03-20 15:18:19 +00:00
Jack Grigg
dcdf306d3a
CI: Refactor rustfmt CI job
2022-03-20 15:18:19 +00:00
Jack Grigg
f0ba5724bf
CI: Migrate to actions/checkout@v3
2022-03-20 15:18:19 +00:00
str4d
f1bb46d274
Merge pull request #46 from str4d/37-ignore-otp-string
...
Detect invalid PIN lengths and ask the user again
2022-03-20 14:57:48 +00:00
str4d
b3590f4ce1
Merge pull request #45 from str4d/44-request-touch
...
Print message if YubiKey is waiting for touch
2021-12-20 03:23:49 +00:00
Jack Grigg
2fc2dcd1c3
Unify the touch request messages
...
This is also a good test for sending emojis through the age plugin IPC
protocol.
2021-12-20 03:22:25 +00:00
Jack Grigg
68ac19017e
Detect invalid PIN lengths and ask the user again
...
We also detect the specific case where the PIN returned by the user is
likely a YubiKey OTP, generated by the user touching it early.
Closes str4d/age-plugin-yubikey#37 .
2021-12-19 01:31:54 +00:00
Jack Grigg
e5bdffa5cc
Print message if YubiKey is waiting for touch
...
Closes str4d/age-plugin-yubikey#44 .
2021-12-19 00:28:27 +00:00
str4d
51910edfab
Merge pull request #41 from str4d/release-0.2.0
...
CI checks / Test on linux (push) Has been cancelled
CI checks / Test on macos (push) Has been cancelled
CI checks / Test on windows (push) Has been cancelled
CI checks / Clippy (1.51.0) (push) Has been cancelled
CI checks / Clippy (nightly) (push) Has been cancelled
CI checks / Code coverage (push) Has been cancelled
CI checks / Intra-doc links (push) Has been cancelled
CI checks / Rustfmt (push) Has been cancelled
Publish release binaries / Publish for macos (push) Has been cancelled
Publish release binaries / Publish for linux (push) Has been cancelled
Publish release binaries / Publish for windows (push) Has been cancelled
Publish release binaries / Debian linux (push) Has been cancelled
Release 0.2.0
v0.2.0
2021-11-22 02:40:05 +00:00
Jack Grigg
4f30e2e6f6
v0.2.0
2021-11-22 02:27:14 +00:00
str4d
37f1a07b60
Merge pull request #38 from str4d/update-deps
...
Update dependencies
2021-11-21 17:38:06 +00:00
Jack Grigg
822a10f8f6
yubikey 0.5
2021-11-21 15:51:54 +00:00
Jack Grigg
b486276421
cargo update
2021-11-21 11:38:18 +00:00
Jack Grigg
c7ad7a671b
Add rust-toolchain file with MSRV
2021-11-21 10:54:07 +00:00
Jack Grigg
f2237ed2a7
yubikey 0.4
2021-10-18 21:11:42 +01:00
Jack Grigg
399f0b4c11
Rename crate::yubikey to crate::key
...
So that it doesn't conflict with the renamed `yubikey` crate.
2021-10-18 21:07:23 +01:00
Jack Grigg
22dfc3ee89
env_logger 0.9
2021-10-18 20:42:10 +01:00
Jack Grigg
72d5682454
console 0.15, dialoguer 0.9
2021-10-18 20:40:11 +01:00
Jack Grigg
77bd7aa3a3
age-plugin 0.2
2021-10-18 20:37:28 +01:00
Jack Grigg
5c8a7cced8
cargo update
2021-10-18 20:33:33 +01:00
str4d
6042d5266f
Merge pull request #35 from str4d/ux-improvements
...
UX improvements
2021-08-20 16:30:46 +01:00
Jack Grigg
f5f140d172
Fix various clippy lints
2021-08-20 16:22:22 +01:00
Jack Grigg
2c90195f99
Check PIN policy before requesting PIN
...
Closes str4d/age-plugin-yubikey#34 .
2021-08-20 15:11:39 +01:00
Jack Grigg
30f4d00902
Move verify_pin after Stub::connect
...
If all we want is to determine the recipient, we don't need to verify
the PIN.
Closes str4d/age-plugin-yubikey#30 .
2021-08-20 15:08:14 +01:00
Jack Grigg
7f43d15942
Use CLI error type to render errors from yubikey.verify_pin()
...
This ensures that the attempts-before-blocked counter is displayed to
users during the plugin protocol.
2021-08-20 13:18:11 +01:00
str4d
0bbea83abf
Merge pull request #19 from str4d/release-0.1.0
...
CI checks / Test on linux (push) Has been cancelled
CI checks / Test on macos (push) Has been cancelled
CI checks / Test on windows (push) Has been cancelled
CI checks / Clippy (1.51.0) (push) Has been cancelled
CI checks / Clippy (nightly) (push) Has been cancelled
CI checks / Code coverage (push) Has been cancelled
CI checks / Intra-doc links (push) Has been cancelled
CI checks / Rustfmt (push) Has been cancelled
Publish release binaries / Publish for macos (push) Has been cancelled
Publish release binaries / Publish for linux (push) Has been cancelled
Publish release binaries / Publish for windows (push) Has been cancelled
Publish release binaries / Debian linux (push) Has been cancelled
Release 0.1.0
v0.1.0
2021-05-02 02:51:22 +01:00
Jack Grigg
6931a74199
v0.1.0
2021-05-02 13:35:41 +12:00
Jack Grigg
cdeb930b52
Upgrade to age-plugin 0.1.0
2021-05-02 13:34:05 +12:00
Jack Grigg
47a5952134
Add WSL instructions to the README
2021-05-02 10:15:39 +12:00
Jack Grigg
1e2475b415
Add instructions to README
2021-05-02 10:15:26 +12:00
str4d
a3857b5ab6
Merge pull request #33 from str4d/final-changes
...
Final changes before 0.1.0
2021-05-01 22:52:07 +01:00
Jack Grigg
d36da3fe2d
Prevent --force from being used with the TUI or unexpected commands
...
We may want to use --force with some of these later, so we shouldn't
allow it to be a no-op at present.
2021-05-02 09:43:19 +12:00
Jack Grigg
65082edf22
Prevent --slot from being used with --list-all
2021-05-02 09:31:35 +12:00
Jack Grigg
bf58ee9b82
TUI: Remove redundant example
2021-05-02 09:24:31 +12:00
Jack Grigg
9276725a9a
TUI: Ensure that identity file data is written
2021-05-02 09:24:16 +12:00
Jack Grigg
ba3ccda8ce
TUI: Use rage binary in example commands if installed
2021-05-02 09:23:58 +12:00
Jack Grigg
458a09125f
Make --list{-all} and --identity behave the same way
...
- Both commands print all slots from all connected YubiKeys by default.
- If --serial is specified (without --slot) then print all slots in that
YubiKey.
- If --slot is specified then then instead print a single slot (requiring
--serial if necessary to select a single YubiKey).
Closes str4d/age-plugin-yubikey#26 .
2021-05-02 08:48:05 +12:00
Jack Grigg
2a013fc018
Add example commands to end of TUI
...
Closes str4d/age-plugin-yubikey#25 .
2021-05-02 08:48:05 +12:00
Jack Grigg
c230d93726
TUI: Write identity to file
...
Closes str4d/age-plugin-yubikey#23 .
2021-05-02 08:48:05 +12:00
Jack Grigg
acdbb79083
Use non-short flags as defaults for TUI
...
Closes str4d/age-plugin-yubikey#27 .
2021-05-02 08:48:05 +12:00
Jack Grigg
d9b4fba546
Collect flag-parsing logic into PluginFlags struct
2021-05-02 08:48:05 +12:00