forked from hoppscotch/hoppscotch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #483 from hoppscotch/main
Create a new pull request by comparing changes across two branches
- Loading branch information
Showing
53 changed files
with
631 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,21 @@ | ||
# CODEOWNERS is prioritized from bottom to top | ||
|
||
# If none of the below matched | ||
* @AndrewBastin @liyasthomas | ||
|
||
# Packages | ||
/packages/codemirror-lang-graphql/ @AndrewBastin | ||
/packages/hoppscotch-cli/ @AndrewBastin | ||
/packages/hoppscotch-common/ @amk-dev @AndrewBastin | ||
/packages/hoppscotch-cli/ @jamesgeorge007 | ||
/packages/hoppscotch-data/ @AndrewBastin | ||
/packages/hoppscotch-js-sandbox/ @AndrewBastin | ||
/packages/hoppscotch-ui/ @anwarulislam | ||
/packages/hoppscotch-web/ @amk-dev | ||
/packages/hoppscotch-selfhost-web/ @amk-dev | ||
/packages/hoppscotch-js-sandbox/ @jamesgeorge007 | ||
/packages/hoppscotch-selfhost-web/ @jamesgeorge007 | ||
/packages/hoppscotch-selfhost-desktop/ @AndrewBastin | ||
/packages/hoppscotch-sh-admin/ @JoelJacobStephen | ||
/packages/hoppscotch-backend/ @ankitsridhar16 @balub | ||
|
||
# Sections within Hoppscotch Common | ||
/packages/hoppscotch-common/src/components @anwarulislam | ||
/packages/hoppscotch-common/src/components/collections @nivedin @amk-dev | ||
/packages/hoppscotch-common/src/components/environments @nivedin @amk-dev | ||
/packages/hoppscotch-common/src/composables @amk-dev | ||
/packages/hoppscotch-common/src/modules @AndrewBastin @amk-dev | ||
/packages/hoppscotch-common/src/pages @AndrewBastin @amk-dev | ||
/packages/hoppscotch-common/src/newstore @AndrewBastin @amk-dev | ||
/packages/hoppscotch-backend/ @balub | ||
|
||
README.md @liyasthomas | ||
# READMEs and other documentation files | ||
*.md @liyasthomas | ||
|
||
# The lockfile has no owner | ||
pnpm-lock.yaml | ||
# Self Host deployment related files | ||
*.Dockerfile @balub | ||
docker-compose.yml @balub | ||
docker-compose.deploy.yml @balub | ||
*.Caddyfile @balub | ||
.dockerignore @balub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,19 +4,36 @@ This document outlines security procedures and general policies for the Hoppscot | |
|
||
- [Security Policy](#security-policy) | ||
- [Reporting a security vulnerability](#reporting-a-security-vulnerability) | ||
- [What is not a valid vulnerability](#what-is-not-a-valid-vulnerability) | ||
- [Incident response process](#incident-response-process) | ||
|
||
## Reporting a security vulnerability | ||
|
||
Report security vulnerabilities by emailing the Hoppscotch Support team at [email protected]. | ||
We use [Github Security Advisories](https://github.com/hoppscotch/hoppscotch/security/advisories) to manage vulnerability reports and collaboration. | ||
Someone from the Hoppscotch team shall report to you within 48 hours of the disclosure of the vulnerability in GHSA. If no response was received, please reach out to | ||
Hoppscotch Support at [email protected] along with the GHSA advisory link. | ||
|
||
The primary security point of contact from Hoppscotch Support team will acknowledge your email within 48 hours, and will send a more detailed response within 48 hours indicating the next steps in handling your report. After the initial reply to your report, the security team will endeavor to keep you informed of the progress towards a fix and full announcement, and may ask for additional information or guidance. | ||
> NOTE: Since we have multiple open source components, Advisories may move into the relevant repo (for example, an XSS in a UI component might be part of [`@hoppscotch/ui`](https://github.com/hoppscotch/ui)). | ||
> If in doubt, open your report in `hoppscotch/hoppscotch` GHSA. | ||
**Do not create a GitHub issue ticket to report a security vulnerability.** | ||
**Do not create a GitHub issue ticket to report a security vulnerability!** | ||
|
||
The Hoppscotch team and community take all security vulnerability reports in Hoppscotch seriously. Thank you for improving the security of Hoppscotch. We appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions. | ||
The Hoppscotch team takes all security vulnerability reports in Hoppscotch seriously. We appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions. | ||
|
||
Report security bugs in third-party modules to the person or team maintaining the module. | ||
## What is not a valid vulnerability | ||
We receive many reports about different sections of the Hoppscotch platform. Hence, we have a fine line we have drawn defining what is considered valid vulnerability. | ||
Please refrain from opening an advisory if it describes the following: | ||
|
||
- A vulnerability in a dependency of Hoppscotch (unless you have practical attack with it on the Hoppscotch codebase) | ||
- Reports of vulnerabilities related to old runtimes (like NodeJS) or container images used by the codebase | ||
- Vulnerabilities present when using Hoppscotch in anything other than the defined minimum requirements that Hoppscotch supports. | ||
|
||
Hoppscotch Team ensures security support for: | ||
- Modern Browsers (Chrome/Firefox/Safari/Edge) with versions up to 1 year old. | ||
- Windows versions on or above Windows 10 on Intel and ARM. | ||
- macOS versions dating back up to 2 years on Intel and Apple Silicon. | ||
- Popular Linux distributions with up-to-date packages with preference to x86/64 CPUs. | ||
- Docker/OCI Runtimes (preference to Docker and Podman) dating back up to 1 year. | ||
|
||
## Incident response process | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,7 +149,7 @@ beforeEach(() => { | |
describe('UserService', () => { | ||
describe('findUserByEmail', () => { | ||
test('should successfully return a valid user given a valid email', async () => { | ||
mockPrisma.user.findUniqueOrThrow.mockResolvedValueOnce(user); | ||
mockPrisma.user.findFirst.mockResolvedValueOnce(user); | ||
|
||
const result = await userService.findUserByEmail( | ||
'[email protected]', | ||
|
@@ -158,7 +158,7 @@ describe('UserService', () => { | |
}); | ||
|
||
test('should return a null user given a invalid email', async () => { | ||
mockPrisma.user.findUniqueOrThrow.mockRejectedValueOnce('NotFoundError'); | ||
mockPrisma.user.findFirst.mockResolvedValueOnce(null); | ||
|
||
const result = await userService.findUserByEmail('[email protected]'); | ||
expect(result).resolves.toBeNone; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.