* [feat] Replace clipboard library to support wl-copy args
This change should allow us to protect sensitive content
from being captured in some clipboard managers on KDE.
Fixes#2611
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* [chore] Update clipboard dep
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* [fix] Update clipboard
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
---------
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* [fix] Fix test regressions
This change fixes some tests that did start to fail at some point.
I can't tell for sure when they broke (didn't bisect) and if that
breakage is isolated to my system or not. But I need to fix them
anyway.
Fixes#3115
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* Add missing files.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* Fix test failure
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* Fix one more version test
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
---------
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This change removes the extraneous colon from the commit message in the
event that no HeadMessage is set on the current context.
Signed-off-by: sudoforge <no-reply@sudoforge.com>
This change disables the printing of any content of the secret
(including keys) when the clip flag is enabled (`--clip`).
Closes: gopasspw/gopass#3094
Signed-off-by: sudoforge <no-reply@sudoforge.com>
* [FEATURE] Add option -r/--regex to find
If the option -r/--regex is supplied to 'gopass find', the argument is treated
as a regex pattern instead of a substring.
Signed-off-by: Carl Smedstad <carl.smedstad@protonmail.com>
* [UX] Fail and produce error message when bad regex supplied to find -r
For example:
$ ./gopass find -r 'mystring['
Error: error parsing regexp: missing closing ]: `[`
Signed-off-by: Carl Smedstad <carl.smedstad@protonmail.com>
* [CLEANUP] Rename argument regex to reMatch
* [CLEANUP] Compile regex outside of loop
---------
Signed-off-by: Carl Smedstad <carl.smedstad@protonmail.com>
* [ENHANCEMENT] Make it possible to override `show.autoclip`
With this change is now possible to use `--alsoclip=false` on the command line to override the `show.autoclip` set in the config file.
Signed-off-by: Fabio Alessandro Locati <me@fale.io>
* Improve code legibility
Signed-off-by: Fabio Alessandro Locati <me@fale.io>
* Improve logic
Signed-off-by: Fabio Alessandro Locati <me@fale.io>
---------
Signed-off-by: Fabio Alessandro Locati <me@fale.io>
* [bugfix] Don't check for autosync on manual triggered sync (#3026)
* [bugfix] Don't check for autosync on manual triggered sync
Fixes#3026
Signed-off-by: Ing. Thomas Mantl <thomas.mantl@redgears.net>
* use correct context
Fixes#3026
Signed-off-by: Thomas Mantl <thomas.mantl@redgears.net>
* * [bugfix] Don't check for autosync on manual triggered sync
Refactor to isAutosync function-parameter instead of a new context
Signed-off-by: Ing. Thomas Mantl <thomas.mantl@redgears.net>
---------
Signed-off-by: Ing. Thomas Mantl <thomas.mantl@redgears.net>
Signed-off-by: Thomas Mantl <thomas.mantl@redgears.net>
* [BUGFIX] Fix password not saving to clipboard when AutoClip and SafeContent are both enabled
Fixed an issue where enabling both AutoClip and SafeContent prevented passwords from being saved to the clipboard.
Added tests to cover this case.
Signed-off-by: alex <wallneralex7789@gmail.com>
* [BUGFIX] fixes#3034
gofmt -> should now pass golangci-lint
Signed-off-by: alex <wallneralex7789@gmail.com>
---------
Signed-off-by: alex <wallneralex7789@gmail.com>
* chore: Update release signing key
* fix: Fix signature verification test and update docs. Should be good now.
* fix: Fix some typos
* Remove the expired key
---------
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* fix: Ask user to confirm generated passphrase before invocing pinentry
This is to avoid users not seeing their generated password if using e.g.
pinentry curses UI.
Fixes#3030
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* fix: Let user confirm new passphrase before generating the new identity.
This way generating the ID might fail, but at least we don't have to
do ugly API changes to figure out a clean way to delete an ID file
after a failed setup attempt.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
---------
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This commit changes the check whether we have access to the cloned
repository from checking whether *all* of our usable keys are included
to whether *any* of our usable keys are included.
Signed-off-by: Willem Mulder <willemmaster@hotmail.com>
This fixes the issue #3012 where the error returned by the `Notify()`
call would incorrectly return a nil value (from `dbus.SessionBus()`),
instead of the correct non-nil value (from `call.Err`).
Signed-off-by: Denis-Kuso <sourcework.online@keemail.me>
* specify ssh dir
Signed-off-by: Joel Lau <joellau@protonmail.com>
* added documentation, prefer GOPASS_SSHDIR
Signed-off-by: Joel Lau <joellau@protonmail.com>
* check for empty path
Signed-off-by: Joel Lau <joellau@protonmail.com>
---------
Signed-off-by: Joel Lau <joellau@protonmail.com>
The experimental functions are now available in the standard library
in Go 1.23 [1].
[1]: https://go.dev/doc/go1.23#new-unique-package
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
`gopass update` fails on the hosts behind HTTP proxies and without direct
Internet connectivity. Fix is setting up proxy from environment variables
similarly to default golang HTTP client.
Signed-off-by: Alexander D. Kanevskiy <kad@kad.name>
* [FEATURE] Allow for non-interactive age setup
Also updates Go to Go 1.23.2 and get rid of min and max functions
Signed-off-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
* [n/a] also renaming clear for Windows
Signed-off-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
* [n/a] bumping our GHA to Go 1.23
Signed-off-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
* [n/a] make our harden runner softer
Signed-off-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
* [n/a] make our harden runner accept go.dev
Signed-off-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
* [n/a] applying code review changes
Signed-off-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
---------
Signed-off-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
This comes in handy when storing Wireguard configs in gopass as it
allows to import the entire config on a mobile device easily.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
When gopass-jsonapi is running these functions, the stderr of the gpg
command won't reach anywhere visible without writing it to the log as
well. Also adding 2 --verbose arguments to gpg helps debugging potential
issues.
Signed-off-by: Doron Behar <doron.behar@gmail.com>
* gpg: Log gpg output to LogWriter
Signed-off-by: Doron Behar <doron.behar@gmail.com>
* gpg/cli: Add more log messages
Return a different error message if no trustable keys were found.
Signed-off-by: Doron Behar <doron.behar@gmail.com>
* Make leaf/write test always trust recipients
Signed-off-by: Doron Behar <doron.behar@gmail.com>
---------
Signed-off-by: Doron Behar <doron.behar@gmail.com>
* chore: Switch to static list of linters
The old approach was prone to random CI failures when a golangci-lint
was updated and did enable new linters. This approach means we will have
to update the include list from time to time but won't get random CI
failures.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* fix: Update enabled linters to be compatible with GHA
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
---------
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>