-
Notifications
You must be signed in to change notification settings - Fork 748
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
Silvermob: host validation (us, eu, apac) #3110
Conversation
Code coverage summaryNote:
silvermobRefer here for heat map coverage report
|
@@ -121,8 +133,14 @@ func (a *SilverMobAdapter) getImpressionExt(imp *openrtb2.Imp) (*openrtb_ext.Ext | |||
} | |||
|
|||
func (a *SilverMobAdapter) buildEndpointURL(params *openrtb_ext.ExtSilverMob) (string, error) { | |||
endpointParams := macros.EndpointTemplateParams{ZoneID: params.ZoneID, Host: params.Host} | |||
return macros.ResolveMacros(a.endpoint, endpointParams) | |||
if isValidHost(params.Host) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please be mindful that your adapter has been flagged as it is currently using dynamic hosts. Please refer to the github issue here - #2612
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's why we added this validation. Is it enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should strive to render the host non-dynamic by excluding the host parameter from the domain and use it as a query parameter instead. The domain name should remain constant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, we will select a vendor for geo DNS and publish update within a couple of weeks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@freemmy Please advise if you would like to make changes for geo DNS in this PR or a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thing the next PR since it takes some time
Code coverage summaryNote:
silvermobRefer here for heat map coverage report
|
Second level domains are being validated before usage. Allowed only eu.silvermob.com, us.silvermob.com and apac.silvermob.com