webconfig: files for the vulndb website configuration

Add content to display at https://vuln.go.dev, and for 404s.
Add a README to show how to use it.

Change-Id: Ide5048862aeb574dfe8e8b0ec92788ad3f820198
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/410534
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
This commit is contained in:
Jonathan Amsterdam 2022-06-06 06:47:44 -04:00
Родитель 7d6d8e8a7e
Коммит 793a41786c
3 изменённых файлов: 58 добавлений и 0 удалений

20
webconfig/404.html Normal file
Просмотреть файл

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en" data-layout="">
<head>
<title>Not Found: Go Vulnerability Database</title>
</head>
<body>
<h1>Not Found</h1>
<p>
We couldn't find what you're looking for in the Go Vulnerability Database.
</p>
<p>
At the top level, the database is organized by module. The ID directory lists Go
vulnerabilities by ID.
</p>
<p>
Check out https://go.dev/security/vulndb for more information.
</p>
</body>
</html>

21
webconfig/README.md Normal file
Просмотреть файл

@ -0,0 +1,21 @@
# Go Vulnerability Database Web Configuration
These files control what users see when they visit https://vuln.go.dev, and
when they get a 404 on that site.
## Deployment
After these files are modified and the CL has been submitted, copy them to the
vuln DB bucket:
```
gsutil cp index.html 404.html gs://go-vulndb
```
## Initial Setup
The go-vulndb bucket must be configured to display these pages. That can be done
with
```
gsutil web set -m index.html -e 404.html gs://go-vulndb
```
Use `gsutil web get gs://go-vulndb` to display the configuration.

17
webconfig/index.html Normal file
Просмотреть файл

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en" data-layout="">
<head>
<title>Go Vulnerability Database</title>
</head>
<body>
<h1>Go Vulnerability Database</h1>
<p>
This is the Go vulnerability database. It is meant to be accessed by programs
that want to find vulnerabilities associated with Go modules.
</p>
<p>
Check out https://go.dev/security/vulndb for more information.
</p>
</body>
</html>