1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

12 Commits

Author SHA1 Message Date
Sam Roberts
3c405da087 Use docker-credential-helper to manage secrets
Store service credentials securely in the stores supported by docker:
- https://github.com/docker/docker-credential-helpers#available-programs

Introduces a top-level config property, "secretStore" and additional
command line arguments to manage the stored secrets.

The value of secretStore is used to find a helper command,
`docker-credential-<secretStore>`.

The docker project currently provides 4 store helpers:
- "osxkeychain" (OS X only)
- "secretservice" (Linux only)
- "wincred" (Windows only)
- "pass" (any OS supporting pass, which uses gpg2)

Docker-for-desktop installs the credential helpers above, as well as
"desktop" (docker-credential-desktop).

Generic installation instructions for the helpers:
- https://github.com/docker/docker-credential-helpers#installation

Users could provide additional helpers, the only requirement is that the
helper implements the credential store protocol:
- https://github.com/docker/docker-credential-helpers#development

The credential protocol is open, and new credential stores can be
implemented by any CLI satisfying the protocol:
- https://github.com/docker/docker-credential-helpers#development

The modifications to existing modules is not tested due to lack
of API keys, but demonstrates the unobtrusive changes required to
use the secret store.
2020-05-10 19:26:32 -07:00
Chris Cummer
3a388fba23
20191215 code improvements (#790)
* Upgrade godo to latest
* Fix a bunch of issues found by
* Running staticcheck on a codebase for the first time is a sobering experience
* go mod tidy
* More static improvements

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-16 20:25:29 -08:00
Chris Cummer
bf877f5fa7 Constantize the defaultFocus value for each module 2019-09-22 18:12:29 -07:00
Chris Cummer
fce8b69459 Support case-insensitive 'apiKey' config keys
'apiKey' is one that people are likely to spell wrong in their configs
as 'apikey'. Given that there's no sanity-checking around required
config values yet, and a missing API key can cause silent failures in
some modules, be liberal in accepting spelling.
2019-08-29 06:34:52 -07:00
Chris Cummer
4e46fff145 Move the utils.go file into the /utils directory 2019-08-05 10:50:12 -07:00
Chris Cummer
edcb6d0ca4 WTF-508 HIBP now uses API v3 with authorization to fetch data 2019-07-21 14:45:10 -07:00
Sean Smith
f4f2901e58 Add help strings from h-r 2019-07-05 12:16:55 -04:00
Chris Cummer
f19f1ee86d WTF-42 WIP Add FeedReader, an RSS/Atom feed reader 2019-07-03 21:54:10 -07:00
Chris Cummer
ae13a3394d WIP Transmission 2019-06-23 15:04:09 -07:00
Chris Cummer
70f9422a4e Deafult the HIBP ok colour to white 2019-06-22 16:13:32 -07:00
Chris Cummer
c75f00cb12 Enforce a minimum refresh interval for the HIBP module 2019-06-22 15:45:07 -07:00
Chris Cummer
6216076b74 Add a working Have I Been Pwned module 2019-06-22 15:21:22 -07:00