Skip to content

Commit

Permalink
Merge branch 'add-submodules-to-project' into fix-version-with-submod…
Browse files Browse the repository at this point in the history
…ules
  • Loading branch information
djabarovgeorge authored Oct 27, 2023
2 parents 10cbc48 + 47f5177 commit 945d1b8
Show file tree
Hide file tree
Showing 933 changed files with 23,081 additions and 17,184 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"subject-case": [
2,
"always",
["sentence-case", "start-case", "pascal-case", "upper-case", "lower-case"]
["sentence-case", "start-case", "pascal-case", "upper-case", "lower-case", "camel-case"]
],
"type-enum": [
2,
Expand Down
12 changes: 11 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@
"plivo",
"Plivo",
"prettierignore",
"Pushpad",
"Pushwoosh",
"sandboxed",
"sendgrid",
Expand Down Expand Up @@ -508,7 +509,16 @@
"autodocs",
"stackalt",
"mediumdark",
"Docgen"
"Docgen",
"clicksend",
"Clicksend",
"Kamil",
"Myśliwiec",
"nestframework",
"ryver",
"idempotency",
"IDEMPOTENCY",
"Idempotency"
],
"flagWords": [],
"patterns": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN . /etc/os-release \
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

# [Optional] Uncomment if you want to install more global node modules
RUN su node -c "npm install -g pnpm@7.33.4"
RUN su node -c "npm install -g pnpm@8.9.0"



2 changes: 2 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
- apps/webhook/**/*
'@novu/dal':
- libs/dal/**/*
'@novu/design-system':
- libs/design-system/**/*
'@novu/shared':
- libs/shared/**/*
'@novu/notification-center':
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

- uses: microsoft/[email protected].4
- uses: microsoft/[email protected].7
name: PR Metrics
env:
PR_METRICS_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/reusable-api-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,17 @@ jobs:
- uses: ./.github/actions/start-localstack

- uses: ./.github/actions/run-worker
with:
launch_darkly_sdk_key: ${{ secrets.LAUNCH_DARKLY_SDK_KEY }}

# Runs a single command using the runners shell
- name: Build API
run: CI='' pnpm build:api


- name: Run E2E tests
env:
LAUNCH_DARKLY_SDK_KEY: ${{ secrets.LAUNCH_DARKLY_SDK_KEY }}
run: |
cd apps/api && pnpm test:e2e
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reusable-web-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
echo "BROWSER_PATH=$(which chrome)" >> $GITHUB_ENV
- name: Cypress run e2e
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
env:
NODE_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -113,7 +113,7 @@ jobs:
with:
working-directory: apps/web
browser: "${{ env.BROWSER_PATH }}"
record: true
record: false
parallel: false
install: false
config-file: cypress.config.ts
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
run: pnpm cypress install

- name: Run Component tests 🧪
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
env:
NODE_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-widget-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
run: pnpm cypress install

- name: Cypress run
uses: cypress-io/github-action@v2
uses: cypress-io/github-action@v6
env:
NODE_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gitpod/workspace-mongodb

RUN sudo apt-get update && sudo apt-get install -y redis-server && sudo rm -rf /var/lib/apt/lists/*
RUN npm install -g pnpm@7.33.4
RUN npm install -g pnpm@8.9.0
38 changes: 21 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div align="center">
<a href="https://novu.co" target="_blank">
<a href="https://novu.co?utm_source=github" target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/2233092/213641039-220ac15f-f367-4d13-9eaf-56e79433b8c1.png">
<img src="https://user-images.githubusercontent.com/2233092/213641043-3bbb3f21-3c53-4e67-afe5-755aeb222159.png" width="280" alt="Logo"/>
![Novu Logo]<img src="https://user-images.githubusercontent.com/2233092/213641043-3bbb3f21-3c53-4e67-afe5-755aeb222159.png" width="280"/>
</picture>
</a>
</div>
Expand All @@ -12,19 +12,19 @@
<div align="center">
The ultimate service for managing multi-channel notifications with a single API.
</div>

<br /><br />
<h1 align="center">🎉 We're participating in Hacktoberfest 2023! 🎉</h1>

Interested in participating in Hacktoberfest? We extend a warm invitation! You also get the opportunity to win some swag 😁
Are you interested in participating in Hacktoberfest? We extend a warm invitation! You also get the opportunity to win some swag 😁

> ⭐️ If you're new to Hacktoberfest, you can learn more and register to participate [here](https://hacktoberfest.com/participation/). Registration is from **September 26th - October 31st**.
- Our Hacktoberfest kickoff event is happening on October 2, 2023. 🚀
- Check out our website for [hacktoberfest instructions](https://novu.co/hacktoberfest/).
- Join our [Discord and engage with our community](https://discord.com/invite/novu), get answers to your challenges, stay updated on events, announcements & prizes.
- Join our [Discord and engage with our community](https://discord.com/invite/novu), get answers to your challenges, and stay updated on events, announcements, and prizes.

In addition to this repository, here are the other Novu repositories you can contribute to for Hacktoberfest:
- [Novu docs](https://github.com/novuhq/docs/issues)
- [Novu Docs](https://github.com/novuhq/docs/issues)
- [Novu PHP SDK](https://github.com/novuhq/novu-php/issues)
- [Novu Ruby SDK](https://github.com/novuhq/novu-ruby/issues)
- [Novu Python SDK](https://github.com/novuhq/novu-python/issues)
Expand All @@ -50,7 +50,7 @@ Your contribution, no matter its size, holds immense value. We eagerly await to
·
<a href="https://roadmap.novu.co">Roadmap</a>
·
<a href="https://twitter.com/novuhq">Twitter</a>
<a href="https://twitter.com/novuhq">X</a>
·
<a href="https://notifications.directory">Notifications Directory</a>
</p>
Expand Down Expand Up @@ -81,7 +81,7 @@ With Novu, you can create custom workflows and define conditions for each channe
- 📦 Easy to set up and integrate
- 🛡 Debug and analyze multi-channel messages in a single dashboard
- 📦 Embeddable notification center with real-time updates
- 👨‍💻 Community driven
- 👨‍💻 Community-driven

## 📚 Table Of Contents

Expand All @@ -100,13 +100,17 @@ With Novu, you can create custom workflows and define conditions for each channe

## 🚀 Getting Started

We are excited to launch the complete Novu API and admin panel. Want to give it a test before the official release? Here is how:
We are excited to launch the complete Novu API and admin panel. Do you want to give it a test before the official release? Here is how:

```
npx novu init
```

After setting up your account using the cloud or docker version you can trigger the API using the `@novu/node` package.
After setting up your account using the cloud or docker version, you can trigger the API using the `@novu/node` package.

For API documentation and reference, please visit [Novu API Reference] (https://docs.novu.co/api-reference/events/trigger-event).

To get started with the Node.js package, you can install it using npm:

```bash
npm install @novu/node
Expand Down Expand Up @@ -140,14 +144,14 @@ await novu.trigger('<TRIGGER_NAME>', {
Using the Novu API and admin panel, you can easily add a real-time notification center to your web app without building it yourself. You can use our React / Vue / Angular component or an iframe embed.

<div align="center">
<img width="762" alt="notification-center-912bb96e009fb3a69bafec23bcde00b0" src="https://user-images.githubusercontent.com/80174214/193887395-f1c95042-b4e6-480e-a89c-a78aa247fa90.gif">
<img width="762" alt="notification-center-912bb96e009fb3a69bafec23bcde00b0" src="https://user-images.githubusercontent.com/80174214/193887395-f1c95042-b4e6-480e-a89c-a78aa247fa90.gif" alt-text="GIF of Novu's Embeddable Notification Center">

Read more about how to add a notification center to your app with the Novu API [here](https://docs.novu.co/notification-center/getting-started)

<p align="center">
<a href="https://docs.novu.co/notification-center/getting-started">React Component</a>
· <a href="https://docs.novu.co/notification-center/vue-component">Vue Component</a>
· <a href="https://github.com/novuhq/novu/tree/next/packages/notification-center-angular">Angular Component</a>
<a href="https://docs.novu.co/sdks/react">React Component</a>
· <a href="https://docs.novu.co/sdks/vue">Vue Component</a>
· <a href="https://docs.novu.co/sdks/angular">Angular Component</a>
</p>

</div>
Expand Down Expand Up @@ -220,7 +224,7 @@ Novu provides a single API to manage providers across multiple channels with a s

## 📋 Read Our Code Of Conduct

Before you begin coding and collaborating, please read our [Code of Conduct](https://github.com/novuhq/novu/blob/main/CODE_OF_CONDUCT.md) thoroughly to understand the standards (that you are required to adhere to) for community engagement. As part of our open-source community, we hold ourselves and other contributors to a high standard of communication. As a participant and contributor to this project, you are agreeing to abide by our [Code of Conduct](https://github.com/novuhq/novu/blob/main/CODE_OF_CONDUCT.md).
Before you begin coding and collaborating, please read our [Code of Conduct](https://github.com/novuhq/novu/blob/main/CODE_OF_CONDUCT.md) thoroughly to understand the standards (that you are required to adhere to) for community engagement. As part of our open-source community, we hold ourselves and other contributors to a high standard of communication. As a participant and contributor to this project, you agree to abide by our [Code of Conduct](https://github.com/novuhq/novu/blob/main/CODE_OF_CONDUCT.md).

## 💻 Need Help?

Expand All @@ -232,7 +236,7 @@ We are more than happy to help you. If you are getting any errors or facing prob

## 🔗 Links

- [Home page](https://novu.co/)
- [Home page](https://novu.co?utm_source=github)
- [Contribution Guidelines](https://github.com/novuhq/novu/blob/main/CONTRIBUTING.md)
- [Run Novu Locally](https://docs.novu.co/community/run-in-local-machine)

Expand All @@ -244,6 +248,6 @@ Novu is licensed under the MIT License - see the [LICENSE](https://github.com/no

Thanks a lot for spending your time helping Novu grow. Keep rocking 🥂

<a href="https://novu.co/contributors">
<a href="https://novu.co/contributors?utm_source=github">
<img src="https://contributors-img.web.app/image?repo=novuhq/novu" alt="Contributors"/>
</a>
81 changes: 33 additions & 48 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,43 @@
# Security
# Security Contact

Contact: [email protected]
**Contact:** [email protected]

Based on [https://supabase.com/.well-known/security.txt](https://supabase.com/.well-known/security.txt)
At Novu, we prioritize the security of our systems. While we strive to make our systems as secure as possible, vulnerabilities can still exist. If you discover a vulnerability, we kindly request your assistance in helping us enhance our security measures and protect our clients.

We place a high priority on the security of our systems at Novu. However, no matter how hard we try to make our systems secure, vulnerabilities can still exist.
## Reporting a Vulnerability

In the event that you discover a vulnerability, please let us know so we can address it as soon as possible. We would like to ask you to help us better protect our clients and our systems.
**In Scope Vulnerabilities:**

## Out of scope vulnerabilities:
- Any security issues that could jeopardize the confidentiality, integrity, or availability of our systems or data.

- Clickjacking on pages with no sensitive actions.
**Out of Scope Vulnerabilities:**

- Clickjacking on pages with no sensitive actions.
- Unauthenticated/logout/login CSRF.

- Attacks requiring MITM or physical access to a user's device.

- Any activity that could lead to the disruption of our service (DoS).

- Content spoofing and text injection issues without showing an attack vector/without being able to modify HTML/CSS.

- Email spoofing

- Missing DNSSEC, CAA, CSP headers

- Lack of Secure or HTTP only flag on non-sensitive cookies

- Deadlinks

## Please do the following:

- E-mail your findings to [[email protected]](mailto:[email protected]).

- Do not run automated scanners on our infrastructure or dashboard. If you wish to do this, contact us and we will set up a sandbox for you.

- Do not take advantage of the vulnerability or problem you have discovered, for example by downloading more data than necessary to demonstrate the vulnerability or deleting or modifying other people's data,

- Do not reveal the problem to others until it has been resolved,

- Do not use attacks on physical security, social engineering, distributed denial of service, spam or applications of third parties,

- Do provide sufficient information to reproduce the problem, so we will be able to resolve it as quickly as possible. Usually, the IP address or the URL of the affected system and a description of the vulnerability will be sufficient, but complex vulnerabilities may require further explanation.

## What we promise:

- We will respond to your report within 3 business days with our evaluation of the report and an expected resolution date,

- If you have followed the instructions above, we will not take any legal action against you in regard to the report,

- We will handle your report with strict confidentiality, and not pass on your personal details to third parties without your permission,

- We will keep you informed of the progress towards resolving the problem,

- In the public information concerning the problem reported, we will give your name as the discoverer of the problem (unless you desire otherwise), and

- We strive to resolve all problems as quickly as possible, and we would like to play an active role in the ultimate publication on the problem after it is resolved.

- Content spoofing and text injection issues without showing an attack vector or the ability to modify HTML/CSS.
- Email spoofing.
- Missing DNSSEC, CAA, CSP headers.
- Lack of Secure or HTTP-only flags on non-sensitive cookies.
- Deadlinks.

**Reporting Instructions:**

1. Email your findings to **[email protected]**.
2. Please refrain from running automated scanners on our infrastructure or dashboard. If you intend to do so, contact us, and we will set up a sandbox for your testing.
3. Do not exploit the vulnerability or problem you have discovered, such as downloading more data than necessary or deleting/modifying others' data.
4. Keep the problem confidential until it has been resolved.
5. Do not use attacks on physical security, social engineering, distributed denial of service, spam, or third-party applications.
6. Provide sufficient information to reproduce the problem, including the IP address or URL of the affected system and a clear description of the vulnerability. Complex vulnerabilities may require additional explanation.

## What We Promise

1. We will respond to your report within 3 business days, providing an evaluation of the report and an expected resolution date.
2. If you have adhered to the reporting instructions, we will not take any legal action against you in relation to the report.
3. We will maintain strict confidentiality regarding your report and will not share your personal details with third parties without your consent.
4. You will be kept informed of the progress toward resolving the problem.
5. In public disclosures about the reported problem, we will credit you as the discoverer of the issue (unless you request otherwise).
6. We are committed to resolving all issues promptly and actively participating in the public disclosure of the issue once it's resolved.

Your contribution to enhancing our security is greatly appreciated.
4 changes: 0 additions & 4 deletions _templates/provider/new/package.ejs.t
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=13.0.0 <17.0.0",
"pnpm": "^7.26.0"
},
"dependencies": {
"@novu/stateless": "<%= version %>"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV BULL_MQ_PRO_NPM_TOKEN=$BULL_MQ_PRO_TOKEN
ENV NX_DAEMON=false

RUN npm i pm2 -g
RUN npm --no-update-notifier --no-fund --global install pnpm@7.33.4
RUN npm --no-update-notifier --no-fund --global install pnpm@8.9.0
RUN pnpm --version

WORKDIR /usr/src/app
Expand Down
Loading

0 comments on commit 945d1b8

Please sign in to comment.