-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New admin interface. Internal API Key registration/removal request page. #1263
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 High
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 (/login endpoint). After that you will be redirected to the admin page.