Skip to content

Commit

Permalink
Add security documentation, remove /_static directory
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Oct 21, 2024
1 parent dc9e145 commit b3565dd
Show file tree
Hide file tree
Showing 41 changed files with 29 additions and 574 deletions.
11 changes: 11 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Security Policy

## Supported Versions

All versions of Dub are currently being supported with security updates.

## Reporting a Vulnerability

To report a vulnerability, send an email to [email protected].

We will respond within 48 hours acknowledging your report with details about next steps and potential rewards/compensation for responsible disclosure.
6 changes: 3 additions & 3 deletions apps/web/app/app.dub.co/(dashboard)/[slug]/page-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const MoreLinkOptions = () => {
text="Import from Bitly"
icon={
<img
src="/_static/icons/bitly.svg"
src="https://assets.dub.co/misc/icons/bitly.svg"
alt="Bitly logo"
className="h-4 w-4"
/>
Expand All @@ -218,7 +218,7 @@ const MoreLinkOptions = () => {
text="Import from Rebrandly"
icon={
<img
src="/_static/icons/rebrandly.svg"
src="https://assets.dub.co/misc/icons/rebrandly.svg"
alt="Rebrandly logo"
className="h-4 w-4"
/>
Expand All @@ -236,7 +236,7 @@ const MoreLinkOptions = () => {
text="Import from Short.io"
icon={
<img
src="/_static/icons/short.svg"
src="https://assets.dub.co/misc/icons/short.svg"
alt="Short.io logo"
className="h-4 w-4"
/>
Expand Down
5 changes: 2 additions & 3 deletions apps/web/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ export const config = {
* 1. /api/ routes
* 2. /_next/ (Next.js internals)
* 3. /_proxy/ (proxies for third-party services)
* 4. /_static/ (static files inside /public folder)
* 5. Metadata files: favicon.ico, sitemap.xml, robots.txt, manifest.webmanifest, .well-known
* 4. Metadata files: favicon.ico, sitemap.xml, robots.txt, manifest.webmanifest, .well-known
*/
"/((?!api/|_next/|_proxy/|_static/|favicon.ico|sitemap.xml|robots.txt|manifest.webmanifest|.well-known).*)",
"/((?!api/|_next/|_proxy/|favicon.ico|sitemap.xml|robots.txt|manifest.webmanifest|.well-known).*)",
],
};

Expand Down
4 changes: 4 additions & 0 deletions apps/web/public/.well-known/security.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Contact: mailto:[email protected]
Expires: 2034-10-21T23:22:00.000Z
Preferred-Languages: en
Canonical: https://dub.co/.well-known/security.txt
Binary file removed apps/web/public/_static/background.png
Binary file not shown.
154 changes: 0 additions & 154 deletions apps/web/public/_static/dashboard.svg

This file was deleted.

Binary file removed apps/web/public/_static/footer.png
Binary file not shown.
1 change: 0 additions & 1 deletion apps/web/public/_static/icons/azure.svg

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/public/_static/icons/bitly.svg

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/public/_static/icons/google.svg

This file was deleted.

Binary file removed apps/web/public/_static/icons/macos.png
Binary file not shown.
Loading

0 comments on commit b3565dd

Please sign in to comment.