Skip to content

fix: use cloudflare real IP#10449

Merged
emrysal merged 1 commit into
mainfrom
feat/booking-ratelimit
Jul 28, 2023
Merged

fix: use cloudflare real IP#10449
emrysal merged 1 commit into
mainfrom
feat/booking-ratelimit

Conversation

@sean-brydon

Copy link
Copy Markdown
Member

use cloudflare real ip instead of forwarded for if exists

@vercel

vercel Bot commented Jul 28, 2023

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 28, 2023 3:06pm
cal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 28, 2023 3:06pm
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 28, 2023 3:06pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Jul 28, 2023 3:06pm

@github-actions

github-actions Bot commented Jul 28, 2023

Copy link
Copy Markdown
Contributor

Thank you for following the naming conventions! 🙏

@zomars zomars added the core area: core, team members only label Jul 28, 2023
Comment thread packages/lib/getIP.ts
Comment on lines +13 to +16
let xff =
request instanceof Request
? request.headers.get("cf-connecting-ip")
: request.headers["cf-connecting-ip"];

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emrysal emrysal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm (let's see if it works)

@emrysal emrysal enabled auto-merge (squash) July 28, 2023 15:06
@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@deploysentinel

deploysentinel Bot commented Jul 28, 2023

Copy link
Copy Markdown

Current Playwright Test Results Summary

✅ 106 Passing - ⚠️ 6 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 07/28/2023 03:10:58pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: f2fb1c8

Started: 07/28/2023 03:08:42pm UTC

⚠️ Flakes

📄   apps/web/playwright/login.2fa.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
2FA Tests should allow a user to enable 2FA and login using 2FA
Retry 1Initial Attempt
1.45% (4) 4 / 275 runs
failed over last 7 days
36.73% (101) 101 / 275 runs
flaked over last 7 days

📄   packages/app-store/typeform/playwright/tests/basic.e2e.ts • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Routing Forms Seeded Routing Form Routing Link should validate fields
Retry 1Initial Attempt
0% (0) 0 / 150 runs
failed over last 7 days
6% (9) 9 / 150 runs
flaked over last 7 days
Routing Forms Seeded Routing Form Test preview should return correct route
Retry 1Initial Attempt
0% (0) 0 / 149 runs
failed over last 7 days
14.77% (22) 22 / 149 runs
flaked over last 7 days

📄   apps/web/playwright/event-types.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Event Types tests user can add multiple organizer address
Retry 1Initial Attempt
0.70% (2) 2 / 287 runs
failed over last 7 days
14.63% (42) 42 / 287 runs
flaked over last 7 days

📄   apps/web/playwright/webhook.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
BOOKING_REJECTED can book an event that requires confirmation and then that booking can be rejected by organizer
Retry 1Initial Attempt
0.35% (1) 1 / 288 run
failed over last 7 days
5.90% (17) 17 / 288 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should be able to reschedule
Retry 1Initial Attempt
1.29% (3) 3 / 232 runs
failed over last 7 days
95.26% (221) 221 / 232 runs
flaked over last 7 days

View Detailed Build Results


@emrysal emrysal merged commit 878f074 into main Jul 28, 2023
@emrysal emrysal deleted the feat/booking-ratelimit branch July 28, 2023 15:11
emrysal pushed a commit that referenced this pull request Jul 28, 2023
sean-brydon added a commit that referenced this pull request Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core area: core, team members only

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants