community.general/plugins/lookup
patchback[bot] 56c5a8b9b2
passwordstore: Prevent using path as password (#4192) (#4217)
Given a password stored in _path/to/secret_, requesting the password
_path/to_ will literally return `path/to`. This can lead to using
weak passwords by accident/mess up logic in code, based on the
state of the password store.

This is worked around by applying the same logic `pass` uses:
If a password was returned, check if there is a .gpg file it could
have come from. If not, treat it as missing.

Fixes ansible-collections/community.general#4185

(cherry picked from commit da49c0968d)

Co-authored-by: grembo <freebsd@grem.de>
2022-02-17 21:33:09 +01:00
..
cartesian.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
chef_databag.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
consul_kv.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
credstash.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
cyberarkpassword.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
dependent.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
dig.py Add option for retry_servfail (#3247) (#3251) 2021-08-22 11:58:37 +02:00
dnstxt.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
dsv.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
etcd.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
etcd3.py Docs improvements. (#3893) (#3895) 2021-12-12 11:46:34 +01:00
filetree.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
flattened.py Fix example code for flattened lookup (#4013) (#4015) 2022-01-09 12:29:19 +01:00
hiera.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
keyring.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
lastpass.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
lmdb_kv.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
manifold.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
nios.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
nios_next_ip.py mass-added the utf-8 marker (#3163) (#3170) 2021-08-08 11:48:54 +02:00
nios_next_network.py mass-added the utf-8 marker (#3163) (#3170) 2021-08-08 11:48:54 +02:00
onepassword.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) (#2882) 2021-06-27 09:39:18 +02:00
onepassword_raw.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
passwordstore.py passwordstore: Prevent using path as password (#4192) (#4217) 2022-02-17 21:33:09 +01:00
random_pet.py random_pet: Random pet name generator (#2479) (#2509) 2021-05-14 16:25:40 +02:00
random_string.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) (#2882) 2021-06-27 09:39:18 +02:00
redis.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
shelvefile.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
tss.py tss: add option for token authorization (#3327) (#3372) 2021-09-14 19:49:51 +02:00