1
0
mirror of https://github.com/quay/quay.git synced 2025-07-30 07:43:13 +03:00

chore: allows Quay to run for account recoveries (PROJQUAY-970) (#793)

Adds ACCOUNT_RECOVERY_MODE to allow Quay to run with some core
features disabled. When this is set, the instance should only be used
in order by existing users who hasn't linked their account to an
external login service, after database authentication has been
disabled.
This commit is contained in:
Kenny Lee Sin Cheong
2021-07-07 12:45:24 -04:00
committed by GitHub
parent 95ec9478fc
commit a839a78eb5
34 changed files with 178 additions and 11 deletions

View File

@ -1,5 +1,6 @@
import logging
import logging.config
import time
from datetime import timedelta, datetime
@ -85,6 +86,11 @@ def create_gunicorn_worker():
if __name__ == "__main__":
if app.config.get("ACCOUNT_RECOVERY_MODE", False):
logger.debug("Quay running in account recovery mode")
while True:
time.sleep(100000)
logging.config.fileConfig(logfile_path(debug=False), disable_existing_loggers=False)
GlobalLock.configure(app.config)
worker = BlobUploadCleanupWorker()