Skip to content

v1.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Jul 18:09
· 17 commits to dev since this release

Release 1.1.0

There are many user facing and internal updates in this release which means there may be a few defects. Please file on issue or submit a PR with a correction while falling back to version 1.0.9 until they are resolved. If you don't report a defect, it probably won't get fixed.

User Facing Updates

Command Line Autocompletion

Autocompletion for secret names has now been enabled thanks to a submission by @alfstorm. To use this, generate the autocompletion script using the totp completion command, then configure your shell with it. When running totp from the command line, type the first few letters of the desired seed name and hit tab to attempt the autocomplete. Execute totp completion --help and see the README for more information.

QR Code Generation

Generate a QR code for Google Authenticator and other apps using the --qrcode option. To generate a QR code using an entry in your configuration use totp --qrcode <secret name>. To generate a QR code using a secret not in your configuration use totp --qrcode --secret <secret value> <secret name>. This is an initial implementation so it's probably rough around the edges. Examples:

totp --qrcode google
totp --qrcode --secret NV4XGZLDOJSXICQ google

Customize Configuration File Location

The usage of the TOTP_CONFIG environment variable has been added to customize the location of the secrets collection file.

User Confirmation on Reset and Delete (possibly a breaking change for you)

Get user confirmation for the config reset and config delete commands if the --yes option is not given.

Sorted Secret Names

The names of the secrets are now sorted when using config list.

Hiding of Secrets when using config list

The use of config list no longer defaults to also showing secrets (it's a security thing). To see the secrets you must now use config list --all.

Config Completion Command Has Been Moved (possibly a breaking change for you)

The config completion command has been removed and the completion command should be used instead. This also makes completion a reserved command and you can no longer name a secret completion.

Various Internal Updates

There are many internal changes, and while a test script (scripts/totp-test.sh) has been introduced to exercise the primary functionality, stuff happens. If an issue is identified, file an issue and/or submit a PR with the correction.

  • Eliminate use of init() and global Cobra command variables
  • Script for automated user testing added to workflow (scripts/totp-test.sh)
  • Update Cobra dependency from v1.2.1 to v1.5.0
  • Remove deprecated ioutil usage
  • Export API errors for API users
    • ErrSecretNotFound, ErrNoFilename, ErrSecretNameEmpty, ErrSecretValueEmpty
  • Improve error branching and code flow
  • Add the ls and l aliases to the config list command
  • Document command aliases in README
  • Improve unit tests for the base collection API
  • Improve error handling
  • Update some GitHub Actions
  • Introduce golangci-lint to the workflow