Skip to content

Commit

Permalink
pload domain verification for security (#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tansito authored Oct 26, 2023
1 parent 113b3df commit f68d674
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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>

0 comments on commit f68d674

Please sign in to comment.