Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pws-cache extension #156

Draft
wants to merge 15 commits into
base: devel
Choose a base branch
from
Draft

Commits on Apr 10, 2021

  1. Add otp-cache extension

    This patch adds the nitrocli-otp-cache extension that caches OTP data.
    The per-device cache stores the names, OTP algorithms and IDs of the
    slots It can be used to access the slots by name instead of slot index.
    robinkrahl authored and d-e-s-o committed Apr 10, 2021
    Configuration menu
    Copy the full SHA
    86737a2 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2021

  1. Pass on resolved USB path to extensions

    To avoid reimplementing the device selection logic in extensions, we
    introduce a new environment variable NITROCLI_RESOLVED_USB_PATH that is
    set to the USB path of the single matching Nitrokey device. If no device
    matches, or if there are multiple matching devices, the variable
    is not set.
    robinkrahl authored and d-e-s-o committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    c04ff24 View commit details
    Browse the repository at this point in the history
  2. Add extension support crate nitrocli-ext

    This patch adds the extension support crate nitrocli-ext as a workspace
    member. This crate contains useful methods for extensions written in
    Rust, providing access to the nitrocli binary and to the nitrokey-rs
    library.
    robinkrahl authored and d-e-s-o committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    c33be48 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2021

  1. Add --only-aes-key option to reset command

    This patch adds an --only-aes-key option to the reset command to only
    build a new AES key without performing a full factory reset.
    
    Fixes d-e-s-o#69
    robinkrahl authored and d-e-s-o committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    01b8b4f View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2021

  1. Build and test the entire workspace

    With upcoming changes we will have not only the main crate (comprised of
    two binaries), but an entire workspace containing extensions and other
    support crates.
    This change instructs the CI to build and test these crates as it does
    for the main crate.
    d-e-s-o committed Apr 15, 2021
    Configuration menu
    Copy the full SHA
    ac3bbae View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2021

  1. Configuration menu
    Copy the full SHA
    2c700dc View commit details
    Browse the repository at this point in the history
  2. Use string literals for assert messages

    Fix compiler warnings for dynamic assert messages seen with rustc 1.51.
    robinkrahl authored and d-e-s-o committed Apr 17, 2021
    Configuration menu
    Copy the full SHA
    7b181e9 View commit details
    Browse the repository at this point in the history
  3. Add message to assertions on bytes

    Some of our tests compare byte slices and are very hard to debug if the
    assertion fails due to they way these slices are printed. This patch
    adds assertion messages containing the (lossy) string representation of
    the byte slice to make it easier to debug errors.
    
    Fixes d-e-s-o#152
    robinkrahl authored and d-e-s-o committed Apr 17, 2021
    Configuration menu
    Copy the full SHA
    6a89f65 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    96b60fd View commit details
    Browse the repository at this point in the history
  5. Change error formatting to omit backtraces

    The format specifier we use for printing errors returned by the main
    program will include a backtrace in the output -- if one is available.
    That's not necessarily a feature that we need: the causal chain of
    errors should be sufficient and end users are unlikely to have use for a
    backtrace.
    This change adjusts the format specifier so that we only print the chain
    of errors, albeit in a slightly different format:
    - Previously:
      > Failed to generate OTP
      >
      > Caused by:
      >     Command error: The given slot is not programmed
    
    - New:
      > Failed to generate OTP: Command error: The given slot is not programmed
    d-e-s-o committed Apr 17, 2021
    Configuration menu
    Copy the full SHA
    e53a298 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7fb72ff View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    49f518f View commit details
    Browse the repository at this point in the history
  8. Add GitHub Actions configuration

    This patch adds a configuration for GitHub Actions that builds and tests
    nitrocli with the MSRV, stable, beta and nightly Rust, calls clippy and
    rustfmt and checks the license annotations with reuse-tool.
    robinkrahl authored and d-e-s-o committed Apr 17, 2021
    Configuration menu
    Copy the full SHA
    b4212fd View commit details
    Browse the repository at this point in the history
  9. Remove GitLab CI configuration

    With the addition of the GitHub Actions workflow we have found a better
    working replacement for the GitLab CI. To that end, we no longer want to
    use the latter.
    This change removes the corresponding configuration from the repository.
    d-e-s-o committed Apr 17, 2021
    Configuration menu
    Copy the full SHA
    333d9de View commit details
    Browse the repository at this point in the history
  10. Add pws-cache extension

    This patch adds the pws-cache core extension that allows accessing the
    PWS slots by their name instead of the slot index.
    
    Fixes d-e-s-o#155.
    robinkrahl committed Apr 17, 2021
    Configuration menu
    Copy the full SHA
    6baaa79 View commit details
    Browse the repository at this point in the history