-
Notifications
You must be signed in to change notification settings - Fork 67
New admin interface. Internal API Key registration/removal request page. #1263
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: dev
Are you sure you want to change the base?
Conversation
Added new internal endpoints for API Key registration and removal request. Added two new tables to track registration/removal requests. Moved /diagnostics route to the main.py. Added general `send_email` function to the _common.py and reused it for sending emails in places where it is needed.
…equest on the admin main page. Fixed reCaptcha (added backend verification)
SonarCloud Quality Gate failed.
|
SonarCloud Quality Gate failed.
|
|
'serving_host': serving_host, | ||
'database_host': db_host, | ||
} | ||
return make_response(json.dumps(response_data), 200, {'content-type': 'text/plain'}) |
Check failure
Code scanning / SonarCloud
Endpoints should not be vulnerable to reflected cross-site scripting (XSS) attacks
Summary:
Replaced old admin endpoint with Flask-Admin lib.
Added new internal endpoints for API Key registration and removal request. Added two new tables to track registration/removal requests. Moved /diagnostics route to the main.py.
Added general
send_email
function to the _common.py and reused it for sending emails in places where it is needed.Prerequisites:
dev
To open admin page, first you need to login with admin password (/# endpoint). After that you will be redirected to the admin page.