Route integration actions to plugins without hitting the network #11964
Labels
Area/Toolkit
Plugins and integrations framework
Difficulty/2:Medium
Medium ticket
Help Wanted
Community help wanted
PR Exists
Tech/Go
Server
DoActionRequest
in theapp
package detects a relative URL and automatically prepends theSiteURL
to free plugins from having to do this drudgery. This improves plugin compatibility in environments where theSiteURL
contains a subpath, but the plugin was not written to account for same.However, the resulting URL must still be fully resolved: e.g. the server makes an HTTP connection to
http://mm.domain.com/plugins/plugin_id/path
. This will fail in environments wheremm.domain.com
cannot be resolved, or refuses to connect due to firewall rules. This may not be the case for single server instances, but is likely in a load balancer situation wheremm.domain.com
points to another box that wouldn't normally be routed to from a server.Improve
DoActionRequest
to route plugin requests directly to the plugin'sServeHTTP
hook implementation. This should work for any plugin already using relative URLs without requiring a plugin recompilation.If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.
New contributors please see our Developer's Guide.
JIRA: https://mattermost.atlassian.net/browse/MM-18068
The text was updated successfully, but these errors were encountered: