Almost forgot about this issue.
From #2542790: Implement API for delivery reports for SMS Gateways #53:
One thing I'm concerned about, that does not have to necessarily be covered in this patch, is adding access control to the delivery report endpoint. Something along the lines of adding a secret token like Drupal cron does...
We dont want to have to deal with garbage/spam in our endpoints.
Comments
Comment #2
almaudoh commentedIs this an 8.x-1.0 target?
Comment #3
dpiI dont think it needs to be.
Comment #4
dpiThe URL should be something completely random like cron URL?
And should we only respond to POST requests?
Comment #5
dpiAdd beta target, in case its an easy fix.
Comment #6
dpihttps://github.com/dpi/smsframework/pull/57
Added configurable route for pushed delivery reports.
Generates a random URL on creation of a gateway instance.
Comment #11
dpiComment #16
dpiComment #21
dpiComment #26
dpiComment #27
almaudoh commentedMade some comment on the PR. Repeating it here.
Maybe in another issue.
Comment #28
dpiYeh this sounds like it would require a bit of investigation. Out of scope for now.
Comment #29
dpiOne thing to look look into is allowing gateway plugins to alter the pushed delivery report route definition inside of the plugin file. Currently they have to create their own altering-routesubscriber.
Comment #31
dpi