45 Commits

Author SHA1 Message Date
Fabio Alessandro Locati
b7a43e6485
Add otp.onlyclip, otp.alsoclip and the -C parameter to otp (#3093)
Signed-off-by: Fabio Alessandro Locati <mail@fale.io>
2025-04-25 19:57:59 +02:00
Tom Payne
7e3c54d1f9
[feat] Remove expensive and unmaintained zxcvbn-go strength checker (#3133)
Signed-off-by: Tom Payne <twpayne@gmail.com>
2025-04-20 20:47:26 +02:00
Fabio Alessandro Locati
fe936e41e1
Add capability to chain the otp to the password. Fixes #3052 (#3059)
* Add capability to chain the otp to the password. Fixes #3052

Signed-off-by: Fabio Alessandro Locati <me@fale.io>

* Fix empty line

Signed-off-by: Fabio Alessandro Locati <me@fale.io>

---------

Signed-off-by: Fabio Alessandro Locati <me@fale.io>
2025-03-01 16:19:57 +01:00
Fabio Alessandro Locati
2ff5f124ec
Ensure that otpauths are properly hidden from being displayed in safecontent mode (#3055)
* Ensure that otpauths are properly hidden from being displayed in safecontent mode. Fixes #3051

Signed-off-by: Fabio Alessandro Locati <me@fale.io>

* More complete implementation

Signed-off-by: Fabio Alessandro Locati <me@fale.io>

---------

Signed-off-by: Fabio Alessandro Locati <me@fale.io>
2025-02-26 08:48:18 +01:00
AnomalRoil
46799f5c88
Docs: linking docs about parsing and secrets format together (#2962)
* Adding link to doc about parsing in secrets.md

Signed-off-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>

* Adding link to secrets.md in show docs

Signed-off-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>

---------

Signed-off-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
2024-10-05 18:53:17 +02:00
Dominik Schulz
056204539f
[feat] Add .gopass-audit-ignore support to ignore secrets from audits (#2822)
* [feat] Add .gopass-audit-ignore support to ignore secrets from audits

This PR adds a new exclude file that is used during gopass audit to
ignore entries from auditing. The file itself is using RE2 syntax.

Fixes #2806

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Add some documentation

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

---------

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2024-03-13 14:12:38 +01:00
Dominik Schulz
9edbf3070c
[feat] Allow supression of password generation in create templates (#2821)
* [feat] Allow supression of password generation in create templates

This PR adds a new always_prompt boolean that allows suppressing the
question that ask for generating a password in create templates. Use
this is you always want to force entering the credentials, e.g. if
you use a specific template for vendor-supplied credentials.

Fixes #2819

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Remove failing integration test

The messages have changed and the removed one is not expected anymore.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Fix lint check

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

---------

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2024-03-13 14:11:52 +01:00
Yonas Yanfa
d77be31311
Add BLAKE-3 to templates.go (#2701) 2023-11-19 10:52:09 +01:00
Yolan Romailler
d56639fcd7
[CLEANUP] Migration of options to more appropriate sections (#2681)
* [CLEANUP] Moving options to the correct config section

This adds an easy migration path to our config handling, which should
allow us to migrate option names around much more easily in the future.

Any system level config or env variables options are not migrated.

This also fixes a bug in our test code, where the root mount path was
not properly set in our config, because we used "path:" instead of
"path=" to set it.

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [DOCUMENTATION] Document legacy options and their migration path

This also makes sure that legacy options aren't used in the code anymore using the docs test and its regexp

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [n/a] Removing weird spaces from changelog

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [DOCUMENTATION] Reformatting our Markdown tables properly

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [TESTING] Patching a timezone bug in tests

This is a fun one where if your Timezone isn't UTC and you are past midnight but it's not past midnight UTC, the tests would fail because you're not using the right date to validate it.

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [n/a] Fix a typo and use the correct Env variables in the doc about the custom Env variables

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [BREAKING] Custom Env options moved from GOPASS_CONFIG_CONFIG_KEY_i to GOPASS_CONFIG_KEY_i

As discussed in #2617, this actually reflects the way GIT_CONFIG works.

It also fixes a potential Panic in our codebase when IsSet was called
without any Preset config on a non-existing key.

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [CLEANUP] Patching all of the new linter complaints

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [CLEANUP] Use Go1.21 everywhere

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [n/a] Increase our Golangci timeout

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [n/a] code review comment and extra regression test

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

---------

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>
2023-11-03 18:40:58 +01:00
Yolan Romailler
eb6c1014b5
Adding screen parsing for OTP QR code (#2597)
* [FEATURE] Screen parsing for OTP QR code with 'otp -snip entry'
[CLEANUP] Fixing issues from linter

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [CLEANUP] Updating our dependencies

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* Tweaking license-lint.yml to accept these new deps

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

---------

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>
2023-06-10 18:29:37 +02:00
Dominik Schulz
d3c8739908
Commit changes to per-mount config files (#2542)
* Commit changes to per-mount config files

Fixes #2530

RELEASE_NOTES=[BUGFIX] Commit changes to mount config changes.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Fix config tests

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

---------

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2023-02-08 15:53:44 +01:00
Yolan Romailler
ef50d06550
Fixing typo in mount docs (#2527)
* Fixing typo in mount docs

RELEASE_NOTES[DOCUMENTATION]=mounts cmd was misspelled in docs

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* Patching related link

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

---------

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>
2023-02-05 12:25:11 +01:00
Dominik Schulz
d9199cd9c2
Incorporate cleanup and simplifications ideas from kpitt/gopass (#2468)
* Improve test isolation

These test shouldn't pick up user configs.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Use correct flag names for rcs init test

These flags must use the canonical names since they are not processed
by the CLI library and as such aliases are not applied.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Remove obsolete warning in fsck help

The default format should be fully compatible with other
password store implementations.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Remove unused "Verbose" context property

This was never set anywhere, so we can safely remove it.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Remove --clip option for the find command

When this is invoked as `gopass find` there is actually no
code path that leads to this flag being used.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Remove mount versions from the `version` command

The `version` command should generally only print the version and not
load the full config, trigger auto-sync and other operations the
happend when initializing the mounts.

Moving the mount point information to the new `mounts versions` command.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Update find integration test

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Do not run auto-sync if the command is `sync`

Otherwise sync might run twice.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Reset auto-sync if a full `sync` succeeds

Since a `gopass sync` without the `--store` option is the same
operation as an auto-sync we should reset the interval if it
was successfull.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Remove sync messages about importing and exporting keys

These usually don't take a lot of time and don't need a mention unless
they fail.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Refactor OTP action to reduce code complexity and duplication

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Clean up outdated Git documentation

`gopass` isn't configuring `git` to sign commits anymore.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2022-12-11 23:08:46 +01:00
Yaroslav
a5e2392fbd
Add DirName template (#2452)
Makes templating example.com/username file structure easier

RELEASE_NOTES=[ENHANCEMENT] Add DirName template

Signed-off-by: Yaroslav Yadryshnikov <me@yay.qa>

Signed-off-by: Yaroslav Yadryshnikov <me@yay.qa>
2022-12-06 14:26:26 +01:00
Dominik Schulz
2bc2e3ceb3
Add more template docs (#2445)
Fixes #1562

RELEASE_NOTES=[ENHANCEMENT] Add template docs

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2022-12-04 21:05:09 +01:00
Dominik Schulz
18ffee354f
Add .gitconfig parser (#2395)
This commit adds yet another config handler for gopass. It is based on
the format used by git itself. This has the potential to address a lot
of long standing issues, but it also causes a lot of changes to how we
handle configuration, so bugs are inevitable.

Fixes #1567
Fixes #1764
Fixes #1819
Fixes #1878
Fixes #2387
Fixes #2418

RELEASE_NOTES=[BREAKING] New config format based on git config.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Co-authored-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>

address comments

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2022-11-25 10:50:34 +01:00
Dominik Schulz
1bfd727399 Update pwgen documentation
Fixes #2404

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2022-11-20 10:35:28 +01:00
Dominik Schulz
00d04c40c6
Do not omit shadowed entries in ls output (#2341)
* Do not omit shadowed entries in ls output

Fixes #2338

RELEASE_NOTES=[BUGFIX] Do not shadow entries behind folders.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Add shadow marker

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Adjust tests to match the new shadow behaviour

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Update list docs wrt. shadowing

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Do not mark mounts as shadowed. That's already implicit.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Add more comments and some other cleanup

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2022-09-16 19:42:02 +02:00
Yolan Romailler
08d73614de
OTP is not deprecated (#2277)
RELEASE_NOTES[DOCUMENTATION]=OTP is no longer considered deprecated

Related to #1301

Signed-off-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
2022-07-18 20:04:55 +02:00
Yolan Romailler
fc8c9a2286
Adding doc around parsing and YAML (#2244)
RELEASE_NOTES=[DOCUMENTATION] Adding doc about YAML entries and unsafe-keys

Fixes #1940

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>
2022-05-31 11:02:31 +02:00
FG
1f821207c9
Remove German from xkcd related commands (#2224)
Signed-off-by: dotcs <git@dotcs.me>
2022-05-18 10:37:31 +02:00
Dominik Schulz
d27de06d9a
Add --chars option to show to allow printing a subset of the secret only (#2155)
* Add --chars option to show to allow printing a subset of the secret only

Fixes #2068

RELEASE_NOTES=Add --chars option to print subset of secrets

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Add some docs.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2022-03-12 18:28:12 +01:00
Dominik Schulz
f44468aeba
Make create wizard attribute order deterministic (#2086)
Otherwise the path might be mixed up (e.g. login before hostname).

RELEASE_NOTES=n/a

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2022-01-04 07:09:26 +01:00
Dominik Schulz
6ea332e7f5
Add gopass process (#2066)
This commit adds the process command to process templates into full (configuration) files.

Fixes #1913

RELEASE_NOTES=[ENHANCEMENT] Add gopass process

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2021-12-28 20:06:08 +01:00
Thomas MANTL
b4819661df
gh-1939: improve show/revision documentation (#2070)
also add cat documentation in man-page

RELEASE_NOTES=[DOCUMENTATION] improve 'gopass show -revision -<N>'
RELEASE_NOTES=[DOCUMENTATION] improve 'gopass cat'

Signed-off-by: Thomas Mantl <thomas.mantl@redgears.net>
2021-12-27 20:20:00 +01:00
Dominik Schulz
03aa36b826
Create wizard (#2064)
RELEASE_NOTES=[ENHANCEMENT] Template support for the create wizard

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2021-12-24 07:16:35 +01:00
Thomas MANTL
8b1f0c4da8
gh-2043: document 'gopass cat' (#2051)
RELEASE_NOTES=[DOCUMENTATION] document 'gopass cat'

Signed-off-by: Thomas Mantl <thomas.mantl@redgears.net>
2021-11-26 18:46:44 +01:00
Michael Hiiva
1629395a82
Fixed Single Line Formating for Clone Documentation (#1943)
RELEASE_NOTES=DOCUMENTATION Fixed Single Line Formating for Clone Documentation

Signed-off-by: Michael Hiiva <michaelhiiva@gmail.com>
2021-06-16 08:59:23 +02:00
Dominik Schulz
ca0c452652
Add gopass ln (#1828)
This commit adds a new subcommand to support symlinks within the same
mount. The command is intentionally still hidden since the support
isn't fully fleshed out, yet. Neither audit nor list know of links
and cross mount symlinks aren't supported either (and maybe never will).

RELEASE_NOTES=[ENHANCEMENT] Add gopass ln

Fixes #1820

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2021-03-24 21:41:23 +01:00
Dominik Schulz
ad07e1f403
Remove the ondisk backend (#1720)
This backend has never been fully completed and shouldn't be used
as-is.

RELEASE_NOTES=[CLEANUP] Remove the ondisk backend

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2021-01-18 15:44:34 +01:00
Dominik Schulz
ff349772ac
Reduce dependencies on internal packages (#1707)
This PR moves some packages from internal to pkg to increase the
independence of binaries in cmd/ from internal packages further.

RELEASE_NOTES=n/a

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2021-01-13 18:21:09 +01:00
Dominik Schulz
526458c828
Add template functions for Bcrypt and Argon2 (#1706)
Fixes #1689

RELEASE_NOTES=[ENHANCEMENT] Add tpl funcs for Bcrypt and Argon2

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2021-01-13 16:36:21 +01:00
Yolan Romailler
fb2553bba0
Disable input parsing (#1681)
Fixes #1602
Fixes #1614
Fixes #1600
Fixes #1594
Fixes #1601
Fixes #1650

RELEASE_NOTES=[BUGFIX] Disabling all kind of parsing of the input
RELEASE_NOTES=[ENHANCEMENT] Adding the flag show -n to disable output parsing
RELEASE_NOTES=[ENHANCEMENT] Adding the option parsing to disable all parsing

Signed-off-by: Yolan Romailler <yolan@romailler.ch>
2021-01-07 21:53:06 +01:00
Dominik Schulz
75f5611c5b
Do not search when editing a new secret (#1683)
When -c is given to edit skip searching for existing ones.

Fixes #1682

RELEASE_NOTES=[BUGFIX] Do not search for new secrets

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2021-01-05 23:03:13 +01:00
Dominik Schulz
ddc223262e
Remove MIME secrets (#1665)
RELEASE_NOTES=[CLEANUP] Remove MIME

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2021-01-02 12:47:58 +01:00
Anthony Dieperink
98288f204b
Fixed keystroke errors in the command (gopass audit) (#1648)
Signed-off-by: Anthony Dieperink <contact@anthonydieperink.ch>
2020-11-15 09:24:27 +01:00
Yolan Romailler
d6e8dd5994
Adding back the global yes flag and bugfix insert (#1596)
Fixes #1595

RELEASE_NOTES=[BUGFIX] Re-adding the global --yes flag
RELEASE_NOTES=[BUGFIX] Insert is not resetting the pw now if a key:value pair is specified inline

This is just adding --yes back since it was mistakingly removed.

Signed-off-by: Yolan Romailler <yolan@romailler.ch>
2020-09-27 20:43:12 +02:00
Dominik Schulz
8109567a18
Re-introduce gopass -c (#1572)
RELEASE_NOTES=[ENHANCEMENT] Re-introduce gopass -c

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2020-09-18 20:09:44 +02:00
Yolan Romailler
ef72769301
Refactoring List (#1559)
Fixes #1558

RELEASE_NOTES=[BUGFIX] Apply limit in list correctly
RELEASE_NOTES=[ENHANCEMENT] Adding a trailing separator to the listed folders

This is also including a refactoring of the action/list.go in
order to avoid code duplication.

It is important to notice that now one must set MaxDepth to -1 in order
to list all the items in a subtree instead of 0. The 0 is now only
listing the direct parents of the subtree, 1 is listing the subitems,
and so on as explained in docs/commands/list.md

Signed-off-by: Yolan Romailler <yolan@romailler.ch>
2020-08-27 12:28:27 +02:00
Dominik Schulz
95d1d10473
Document missing commands (#1542)
RELEASE_NOTES=n/a

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2020-08-22 19:44:21 +02:00
Dominik Schulz
dc65f6e817
Document delete, env, find and others (#1533)
RELEASE_NOTES=n/a

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2020-08-17 17:14:28 +02:00
Yolan Romailler
9d8313aadd
Adding documentation for list (#1526)
RELEASE_NOTES=[DOCUMENTATION] Document list flags

Signed-off-by: Yolan Romailler <yolan@romailler.ch>
2020-08-17 17:04:20 +02:00
Dominik Schulz
ce948cd47e
Add command documentation for clone, config, convert, generate and init (#1523)
RELEASE_NOTES=n/a

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2020-08-14 20:46:12 +02:00
Yolan Romailler
37b66e93e3
Correcting typos (#1521)
RELEASE_NOTES=n/a

Correcting typos

Signed-off-by: Yolan Romailler <yolan.romailler@kudelskisecurity.com>
2020-08-14 18:00:35 +02:00
Dominik Schulz
34538ea68e
Add documentation for audit, generate, insert and show flags (#1516)
RELEASE_NOTES=[DOCUMENTATION] Document audit, generate, insert and show
flags

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2020-08-14 06:48:25 +02:00