-
Notifications
You must be signed in to change notification settings - Fork 59
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
Feat/security legacy urls #2556
base: main
Are you sure you want to change the base?
Conversation
boefjes/boefjes/plugins/kat_security_txt_downloader/normalize.py
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
# TODO return a redirected URL and have OpenKAT figure out if we want to follow this. | ||
if response.status_code in [301, 302, 307, 308]: | ||
request_url = response.headers["Location"] | ||
response = requests.get(request_url, stream=True, timeout=timeout, verify=False) # noqa: S501 |
Check failure
Code scanning / SonarCloud
Server certificates should be verified during SSL/TLS connections High
Changes
Based on the RFC websites must have a .well-known/security.txt an not just a /security.txt file
This adds a finding for those sites.
Code Checklist
Communication
.env
changes files if required and changed the.env-dist
accordingly.