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

chore: add zendesk-dev.com domain to allow for scooter #212

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

zFlabmonsta
Copy link
Contributor

✌️

/cc @zendesk/vegemite

Description

This PR contains whitelisting scooter domain to the allow list.

Tasks

  • Include comments/inline docs where appropriate
  • Add unit tests
  • Update changelog here
  • Add label from one of 'patch'/'minor'/'major' if you want to create a release when merged

References

DevQA Steps

NOTE: DevQA steps are to be actioned only once code has been reviewed and approved.

Risks

  • [HIGH | medium | low] Does it work across browsers (including IE!)?
  • [HIGH | medium | low] Does it work in the different products (Support, Chat, Connect)?
  • [HIGH | medium | low] Are there any performance implications?
  • [HIGH | medium | low] Any security risks?
  • [HIGH | medium | low] What features does this touch?

Rollback Plan

  1. Quickly roll back to the prior release so that customers can refresh to resolve their issue.
  2. Revert this PR to restore the master branch to a deployable green state.
  3. Notify the author.

@@ -283,6 +283,7 @@ function isOriginValid (origin) {
/^https:\/\/.+\.zd-dev\.com$/,
/^https:\/\/.+\.zd-master\.com$/,
/^https:\/\/.+\.zendesk-staging\.com$/,
/^https:\/\/.+\.zendesk-dev\.com$/,
Copy link
Contributor Author

@zFlabmonsta zFlabmonsta Feb 12, 2024

Choose a reason for hiding this comment

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

decrease the scope to specifc region. Currently there are 2 regions

.euc1.scooter.zendesk-dev.com
.usw2.scooter.zendesk-dev.com

and a third in apac is on its way. https://zendesk.atlassian.net/browse/PLAN-7053

Copy link
Contributor

Choose a reason for hiding this comment

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

Domain level looks fine to me

@Shengming-Yan Shengming-Yan added the patch when merged bump patch version label Feb 12, 2024
lib/client.js Outdated
@@ -283,6 +283,7 @@ function isOriginValid (origin) {
/^https:\/\/.+\.zd-dev\.com$/,
/^https:\/\/.+\.zd-master\.com$/,
/^https:\/\/.+\.zendesk-staging\.com$/,
/^https:\/\/.+[euc1|usw2]\.scooter\.zendesk-dev\.com$/,
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, it seems my previous comment make you confusion. I was trying to say domain level(zendesk-dev.com) looks good enough. Not need to specify into subdomain level.

Copy link
Contributor Author

@zFlabmonsta zFlabmonsta Feb 12, 2024

Choose a reason for hiding this comment

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

Ah ok. I didnt see the comment from before 😅

@zFlabmonsta zFlabmonsta merged commit d41735d into master Feb 12, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch when merged bump patch version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants