From 8789e7c11887eabff96347670949dcb9e8ff7feb Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Thu, 3 Dec 2020 17:33:25 -0500 Subject: [PATCH] fix security page, remove unneeded deps, adjust jsconfig --- website/jsconfig.json | 3 +- website/package-lock.json | 9 ----- website/package.json | 2 -- website/pages/security/index.jsx | 46 +++++++++++++++++++++++++ website/pages/security/index.mdx | 23 ------------- website/pages/security/style.module.css | 5 +++ 6 files changed, 53 insertions(+), 35 deletions(-) create mode 100644 website/pages/security/index.jsx delete mode 100644 website/pages/security/index.mdx create mode 100644 website/pages/security/style.module.css diff --git a/website/jsconfig.json b/website/jsconfig.json index 36aa1a4dc..135bd5248 100644 --- a/website/jsconfig.json +++ b/website/jsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { "baseUrl": "." - } + }, + "exclude": ["node_modules", ".next", "out"] } diff --git a/website/package-lock.json b/website/package-lock.json index 1b2609fee..9c5f90fe4 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -1755,15 +1755,6 @@ "resolved": "https://registry.npmjs.org/@hashicorp/react-head/-/react-head-1.1.6.tgz", "integrity": "sha512-5r2g9XNO6YHhl9/4GniiN1Reqs/mOu/7rUML+JQsN2qe7V3libr+cLa+iSYK7+pLmRlnc+Uwk7JwPPPJHVj5bA==" }, - "@hashicorp/react-image": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@hashicorp/react-image/-/react-image-3.0.3.tgz", - "integrity": "sha512-4trWDbtXm+ILF7GKjXXwZgbuSFZhACFOS+Xkik4OOF8Ug7vnSsiMaHt3kHBcLIIR+juR1tuPE3QGC+H1CiI5rw==", - "requires": { - "object-assign": "4.1.1", - "query-string": "5.1.1" - } - }, "@hashicorp/react-inline-svg": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@hashicorp/react-inline-svg/-/react-inline-svg-1.0.2.tgz", diff --git a/website/package.json b/website/package.json index ecf96632f..82244146e 100644 --- a/website/package.json +++ b/website/package.json @@ -9,10 +9,8 @@ "@hashicorp/react-button": "4.0.0", "@hashicorp/react-code-block": "2.0.4", "@hashicorp/react-docs-page": "^10.0.0", - "@hashicorp/react-docs-sidenav": "6.0.0", "@hashicorp/react-hashi-stack-menu": "^1.0.10", "@hashicorp/react-head": "1.1.6", - "@hashicorp/react-image": "3.0.3", "@hashicorp/react-product-downloader": "4.1.5", "@hashicorp/react-search": "^2.1.3", "@hashicorp/react-section-header": "3.0.1", diff --git a/website/pages/security/index.jsx b/website/pages/security/index.jsx new file mode 100644 index 000000000..49ba93196 --- /dev/null +++ b/website/pages/security/index.jsx @@ -0,0 +1,46 @@ +import Head from 'next/head' +import s from './style.module.css' + +export default function SecurityPage() { + return ( + <> + + Security + + +
+

Security

+

+ We understand that many users place a high level of trust in HashiCorp + and the tools we build. We apply best practices and focus on security + to make sure we can maintain the trust of the community. +

+ +

+ We deeply appreciate any effort to disclose vulnerabilities + responsibly. +

+ +

+ If you would like to report a vulnerability, please see the{' '} + + HashiCorp security page + + , which has the proper email to communicate with as well as our PGP + key. +

+ +

+ If you aren't reporting a security sensitive vulnerability, + please open an issue on the standard{' '} + GitHub repository. +

+
+ + ) +} diff --git a/website/pages/security/index.mdx b/website/pages/security/index.mdx deleted file mode 100644 index f43c500ba..000000000 --- a/website/pages/security/index.mdx +++ /dev/null @@ -1,23 +0,0 @@ ---- -layout: index -page_title: Security -description: >- - Vagrant takes security very seriously. Please responsibly disclose any - security vulnerabilities found and we'll handle it quickly. ---- - -# Security - -We understand that many users place a high level of trust in HashiCorp and -the tools we build. We apply best practices and focus on security to make -sure we can maintain the trust of the community. - -We deeply appreciate any effort to disclose vulnerabilities responsibly. - -If you would like to report a vulnerability, please see the -[HashiCorp security page](https://www.hashicorp.com/security), -which has the proper email to communicate with as well as our PGP key. - -If you aren't reporting a security sensitive vulnerability, please -open an issue on the standard [GitHub](https://github.com/hashicorp/vagrant) -repository. diff --git a/website/pages/security/style.module.css b/website/pages/security/style.module.css new file mode 100644 index 000000000..845bb4233 --- /dev/null +++ b/website/pages/security/style.module.css @@ -0,0 +1,5 @@ +.root { + composes: g-grid-container from global; + max-width: 950px; + margin-top: 90px; +}