mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-16 22:40:47 +00:00
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:
@@ -282,6 +282,13 @@ class JsonFileError(HassioError):
|
||||
"""Invalid json file."""
|
||||
|
||||
|
||||
# util/pwned
|
||||
|
||||
|
||||
class PwnedError(HassioError):
|
||||
"""Errors while checking pwned passwords."""
|
||||
|
||||
|
||||
# docker/api
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user