Encrypt Last.fm and Discogs credentials at rest
Added lastfm.api_secret, lastfm.session_key, and discogs.token to _SENSITIVE_PATHS. Auto-encrypted on next startup via migration.
This commit is contained in:
parent
96f80753fa
commit
54b6c8f65f
1 changed files with 3 additions and 0 deletions
|
|
@ -83,9 +83,12 @@ class ConfigManager:
|
||||||
'listenbrainz.token',
|
'listenbrainz.token',
|
||||||
'acoustid.api_key',
|
'acoustid.api_key',
|
||||||
'lastfm.api_key',
|
'lastfm.api_key',
|
||||||
|
'lastfm.api_secret',
|
||||||
|
'lastfm.session_key',
|
||||||
'genius.access_token',
|
'genius.access_token',
|
||||||
# Other
|
# Other
|
||||||
'hydrabase.api_key',
|
'hydrabase.api_key',
|
||||||
|
'discogs.token',
|
||||||
})
|
})
|
||||||
|
|
||||||
def _get_fernet(self) -> Fernet:
|
def _get_fernet(self) -> Fernet:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue