Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ALLOWED_DOMAIN_PATTERN env #200

Merged
merged 3 commits into from
Feb 12, 2024
Merged

Conversation

lkostrowski
Copy link
Member

No description provided.

Copy link

changeset-bot bot commented Jan 24, 2024

🦋 Changeset detected

Latest commit: e9c9ef8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
saleor-app-payment-stripe Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jan 24, 2024

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

Name Status Preview Comments Updated (UTC)
saleor-app-payment-stripe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2024 3:09pm

*/
(url) => {
if (allowedUrlsPattern) {
const regex = new RegExp(allowedUrlsPattern);
Copy link
Member

Choose a reason for hiding this comment

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

Question: Security concern

Will this setting be available to our end users? If yes I'm wondering if there will be the case they provide regex that will cause app to break 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

In L6 you can see that this is coming from ENV that is set on the server side.

So, OSS will leave it empty or lock into their own envs. Saleor Cloud sets this to be only Cloud

Copy link
Contributor

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
99.54% (+0% 🔼)
90118/90535
🟢 Branches 80.29% 383/477
🟢 Functions 81.56% 115/141
🟢 Lines
99.54% (+0% 🔼)
90118/90535

Test suite run success

261 tests passing in 104 suites.

Report generated by 🧪jest coverage report action from e9c9ef8

@lkostrowski lkostrowski merged commit c69f6b8 into canary Feb 12, 2024
8 checks passed
@lkostrowski lkostrowski deleted the protect-cloud-instsallations branch February 12, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants