Add check for pwned secrets to resolution center (#2614)

* Add check for pwned secrets to resolution center

* restructure check

* add checks

* Add test

* Add test

* reload secrets before check

* simplify

* create notification

* Use own exceptions

* Check on startup

* Apply suggestions from code review

Co-authored-by: Franck Nijhof <git@frenck.dev>

* Add job decorator

* Update supervisor/resolution/notify.py

Co-authored-by: Franck Nijhof <git@frenck.dev>

* Update supervisor/utils/pwned.py

Co-authored-by: Franck Nijhof <git@frenck.dev>

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Pascal Vizeli
2021-02-25 09:37:45 +01:00
committed by GitHub
parent dd561da819
commit 85d527bfbc
15 changed files with 306 additions and 21 deletions

View File

@@ -282,6 +282,13 @@ class JsonFileError(HassioError):
"""Invalid json file."""
# util/pwned
class PwnedError(HassioError):
"""Errors while checking pwned passwords."""
# docker/api