Skip to content
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

Upload domain verification for security #1055

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gateway/main/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include, re_path
from django.views.generic import TemplateView
from rest_framework import routers

from api.views import KeycloakLogin, KeycloakUsersView
Expand All @@ -36,6 +37,7 @@
path("liveness/", probes.views.liveness, name="liveness"),
path("", include("django_prometheus.urls")),
re_path(r"^api/v1/", include(("api.v1.urls", "api"), namespace="v1")),
path("", TemplateView.as_view(template_name="DomainVerification.html")),
]

if settings.DEBUG:
Expand Down
1 change: 1 addition & 0 deletions gateway/templates/DomainVerification.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html><div id="verificationcode" value="0336def4-ded5-5f83-5db4-2dbaf58e6ef7"></div>HCL AppScan on Cloud Verification File<br><br><br>===============================<br>Important: Do not edit this file in any way!<br>===============================<br><br>This file is required in order to verify your permission to scan a domain with ASoC.<br><br>To use this file, please do the following:<ul>1. Save this file in the root folder of the site you want to scan.<br>2. Log in to <a href='https://cloud.appscan.com/'>https://cloud.appscan.com/</a><br>3. Create a new Dynamic Scan, and follow the online instructions.</ul>When ASoC detects this file in the root folder, the scan will be allowed to proceed.<br><br>If you experience any difficulties, please contact Support at:<br><a href='https://support.hcltechsw.com/csm'>https://support.hcltechsw.com/csm</a></html>