apache / trafficcontrol

Apache Traffic Control is an Open Source implementation of a Content Delivery Network
https://trafficcontrol.apache.org/
Apache License 2.0
1.06k stars 344 forks source link

Add a Mid raw remap text field for delivery services. #5254

Open traeak opened 3 years ago

traeak commented 3 years ago

I'm submitting a ...

Traffic Control components affected ...

Current behavior:

Currently the Delivery Service page in TP has a "Raw Remap Text" field which just applies to just the Edge remap rules.

New behavior:

I'd like this to be split into:

Mid Raw Remap Text and Edge Raw Remap Text

This should allow experimental plugins and/or plugin options to be used (at the mid) without requiring a new release of TC.

Minimal reproduction of the problem with instructions:

Anything else:

rawlinp commented 3 years ago

With topologies, the traditional idea of a "mid" is changed. Would we want this raw remap to apply to basically all forward proxy caches? Do we need to differentiate between forward proxies that are last in the hierarchy (just before the origin) and forward proxies that aren't (aka "inner")?

rob05c commented 3 years ago

Yeah, going forward this would have to be "inner" or "last" just like Header Rewrites.

But, I think we should think very hard about this and similar things, and see if there's a more structured way to do it.

Injecting raw text like this is prone to typos, bugs, ops misunderstandings or not noticing it.

We should really see if there's a safer way to accomplish whatever the specific need here is.

traeak commented 3 years ago

There needs to be a way to configure ATS without requiring a new version of TC to do it. This particular instance should allow new plugins and plugin options to be exercised.