Commit Graph

42 Commits

Author SHA1 Message Date
Florian Bruhin 1a4fff1a42 doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
Florian Bruhin 25afb200ed Rename :enter-mode and :leave-mode
See #6022
2021-01-20 18:19:03 +01:00
Timothy DeHerrera 3284ec900e
Fix gopass mime format for qute-pass userscript 2020-12-21 02:50:55 -07:00
Joakim Klevmo Hansen c79c34d3e0 Access qute-pass arguments directly and expand all paths 2020-09-18 11:26:15 +02:00
Joakim Klevmo Hansen f6dd664a1e Keep existing env vars when specifying PASSWORD_STORE_DIR 2020-09-18 09:51:44 +02:00
Joakim Klevmo Hansen cba060a551 Specify 'PASSWORD_STORE_DIR' when invoking pass from qute-pass 2020-09-18 09:28:34 +02:00
Sebastian Schulze c713522c8a
Fix gopass 1.10.x deprecation in qute-pass userscript
Since gopass 1.10, reading secrets via "gopass <secret-name>" will yield a deprecation
warning which _run_pass() will stumble over. As it turns out - even "pass" can be called
with "pass show <secret-name>", so the fix will be compatible with both gopass and pass.

Refs #5690
2020-08-26 21:52:54 +02:00
Jan Knížek 063b8810ab FIX doc userscript qute-pass 2020-08-07 16:39:55 +02:00
Florian Bruhin 0119f87fc2 userscripts: Improve qute-pass docs 2020-07-27 15:24:32 +02:00
Florian Bruhin f632a0b66e Merge remote-tracking branch 'origin/pr/5143'
There was a small conflict with #5199, but removing the "+ 1" in the moved code
is all that was needed to make things work.
2020-01-21 10:00:53 +01:00
Abdel Benamrouche 4d92fc6f77 Fix PASSWORD_STORE_DIR suffix
Currently qute-pass works only if PASSWORD_STORE_DIR is not ending by
slash character (on unix).
find_pass_candidates compute pass_path = path[len(password_store_path)+1:]
where +1 is used to count an extra slash.
So if PASSWORD_STORE_DIR ends by slash we count it twice, leading to
failure.

Signed-off-by: Abdel Benamrouche <abdel@unxp.fr>
2020-01-19 00:49:31 +01:00
Sebastian Schulze 481261ac52
Add note that --password-store is only available in pass-mode 2020-01-13 21:50:32 +01:00
Sebastian Schulze dc4ce53e5e
Reword help text with a more clearer description
Co-Authored-By: Jan Holthuis <holthuis.jan@googlemail.com>
2020-01-13 21:45:59 +01:00
Sebastian Schulze 5bf7c8e7d7
Add gopass support to qute-pass via a CLI switch
The new CLI-switch --mode makes qute-pass compatible with the gopass
password store (https://github.com/gopasspw/gopass). While gopass itself is
mostly compatible with pass, it offers the possibility to mount multiple shared
password stores. qute-pass way of just traversing PASSWORD_STORE_DIR won't help
in that case.

Closes #5142
2020-01-06 22:41:31 +01:00
Fredrik Lönnegren 852a4175d7 Add argument extra-suffixes to tldextract and take it from argument extra-url-suffixes 2019-10-04 11:07:55 +02:00
Florian Bruhin 074ef35912 Merge remote-tracking branch 'origin/pr/4888' 2019-08-17 20:21:04 +02:00
lufte b81029bcd8 Don't execute pass if it's not needed 2019-08-12 17:15:59 -03:00
Jan Holthuis 478e35c017 qute-pass: Add support for private domains (e.g. "myrouter.local")
Currently, qute-pass can only be used if the domain is either a public
domain (which means that its suffix needs to be included in the Public
Suffix List [PSL]), or if an IPv4 address is used.

Some uses might want to use qute-pass to login into the web interface of
their router, printer, NAS or other network-enabled device that is only
accessible from the local network. However, currently users to need
to remember or bookmark the IPv4 addresses of these devices.

If a local DNS server is used to assign domains like "mydevice.local" to
these devices, qute-pass won't work because all potential targets are
empty:

    >>> tldextract.extract('https://mydevice.local')
    ExtractResult(subdomain='mydevice', domain='local', suffix='')
    >>> tldextract.extract('https://mydevice.local').fqdn
    ''
    >>> tldextract.extract('https://mydevice.local').registered_domain
    ''
    >>> tldextract.extract('https://mydevice.local').ipv4
    ''

This adds an additional potential target by joining subdomain and domain
if (and only if) the suffix is empty.
2019-07-04 13:27:23 +02:00
Brian Clemens 35f4d77f6e
support PASSWORD_STORE_DIR environmental variable 2019-04-28 12:50:36 +09:00
Florian Bruhin 07ae9e18e1 Remove format indices 2019-04-16 15:06:14 +02:00
jtyers f12cf9931f make qute-pass more informative when no matching pass entry is found 2019-04-15 12:58:26 +01:00
Jan Holthuis 4166e50764 Add support for per-domain secret files in qute-pass
This adds support for password stores where the domain is not the
directory name, but the filename of a gpg file.

This solves problems when using a password store folder structure
like this reddit user does:
https://www.reddit.com/r/qutebrowser/comments/7owzl2/cant_get_qutepass_working/
2018-10-28 15:27:02 +01:00
wildente b1e2a1ec2d add proper multiline support for qute-pass
when using the 'username-taget secret' option, the supplied
regex 'username-pattern' will only scan the first line of the
secret file.

you could specify a username-pattern with '\n', but this will
break if the position of the username is not consistent.

this change will implement re.search and the re.MULTILINE
option to search every line in a secrect file.

example:

--secret file
my_secret_password
username: my_username
--secret file

spawn --userscript qute-pass --username-target secret --username-pattern "^username: (.*)"
2018-09-09 22:16:48 +02:00
cryzed 9ea6f4acf4 Follow symlinks when finding pass candidates 2018-07-18 16:18:56 +02:00
murchik a5c1903247 OTP for qute-pass. 2018-07-10 20:42:28 +08:00
cryzed 801e9e0334 qute-pass: Improve fake_key_raw() 2018-04-29 15:22:52 +02:00
cryzed 92aedf84f5 qute-pass: Don't use f-strings 2018-04-23 19:16:51 +02:00
cryzed 6825dfb8d8 qute-pass: Fake strings letter-by-letter to avoid issues 2018-04-23 19:01:12 +02:00
cryzed 2de6428830 qute-pass: Also escape backslashes in the username 2018-04-20 18:23:50 +02:00
cryzed c2472d88f1 qute-pass: Escape backslashes, so that they are inserted correctly 2018-04-20 18:21:55 +02:00
cryzed d8887f12c0 Deduplicate documentation 2017-11-17 21:40:08 +01:00
cryzed 274c92a64b Add documentation additionally to the help page of qute-pass (complaint from the Arch wiki) 2017-11-17 12:42:25 +01:00
cryzed 600d2a543d Exit successfully when the user makes no selection 2017-11-03 13:54:43 +01:00
cryzed 4ec2e5485a Sort candidates alphabetically 2017-11-03 13:14:29 +01:00
cryzed 22dcd775da Improve warning message and adjust copyright 2017-11-03 11:57:23 +01:00
cryzed a96e4490ee Add qutebrowser license header and warning about login details in qute's debug log 2017-11-03 11:32:32 +01:00
cryzed ee6b4bc7ee Add option to merge pass candidates for the fully-qualified and registered domain name 2017-11-03 11:25:35 +01:00
cryzed 78eb7b5da8 Select pass candidates for the fully-qualified domain name first, then for the registered domain and finally the IPv4 address if that is what the URL was 2017-11-03 02:43:33 +01:00
cryzed 16fefc1c7b Make changes suggested here: 0e3c42db69 2017-11-02 14:06:17 +01:00
cryzed 0e3c42db69 Rename qute-passmenu to qute-pass again 2017-11-01 20:40:59 +01:00
cryzed c97b416cb1 Rename qute-pass to qute-passmenu 2017-11-01 18:19:46 +01:00
cryzed 19fc4de484 Add qute-pass userscript 2017-11-01 17:57:30 +01:00