> > Leif, can we make this "overridable" in follow-on work?
> Sure. #4145 is merged. Created https://github.com/apache/trafficserver/issues/4252 for the "overridable" task. On Mon, Aug 27, 2018 at 2:57 PM, Leif Hedstrom <zw...@apache.org> wrote: > > > > On Aug 27, 2018, at 11:45 AM, Derek Dagit <der...@oath.com.INVALID> > wrote: > > > > Leif, can we make this "overridable" in follow-on work? > > Sure. > > — Leif > > > > > This is a bit tricky because of custom parsing. > > > > On Sat, Aug 25, 2018 at 6:21 PM, Leif Hedstrom <zw...@apache.org> wrote: > > > >> > >> > >>> On Aug 24, 2018, at 12:31, Derek Dagit <der...@oath.com.INVALID> > wrote: > >>> > >>> Sounds good let me take a look. > >>> > >>>> On Fri, Aug 24, 2018 at 12:24 PM, Bryan Call <bc...@apache.org> > wrote: > >>>> > >>>> I am OK with it. I would add a default tag, so you can specify what > >>>> action to take by default if there is no match (e.g. > >>>> routable:follow,default:reject). > >> > >> And we can make this overridable i hope? > >> > >> — Leif > >>>> > >>>> -Bryan > >>>> > >>>> > >>>> > >>>>> On Aug 24, 2018, at 9:16 AM, Alan Carroll <solidwallofc...@oath.com. > >> INVALID> > >>>> wrote: > >>>>> > >>>>> Derek and I discussed this earlier this morning and we think the best > >>>>> option is to have a new configuration variable instead of bringing > back > >>>> the > >>>>> old one, something like "proxy.config.,http.redirect.actions > STRING". > >>>>> > >>>>> The string would be of the format "tag[:action],tag[:action],...". > >>>>> > >>>>> The tag would be one of the enumerations > >>>>> > >>>>> * private : Private (non-routable, RFC-1918) addresses. > >>>>> * loopback: Loopback address (all of 127/8 and IPv6 loopback) > >>>>> * multicast: Multicast address > >>>>> * link-local: IPv6 link local address > >>>>> * routable: Globally routable address. > >>>>> * self: Addresses assigned to this host. > >>>>> > >>>>> The action must be one of > >>>>> > >>>>> * follow: Internally follow the redirect up to the maximum count. > >>>>> * return: Do not process the redirect, send it as the proxy response. > >>>>> * reject: Do not process the redirect, send a 403 as the proxy > >> response. > >>>>> > >>>>> or omitted, in which case it is treated as "follow", although Derek > >> would > >>>>> prefer to require the action in all cases. > >>>>> > >>>>> If a tag is omitted, it is treated as if it were "tag:return". > >>>>> > >>>>> This provides very fine grained control. The default would be > >>>>> "routable:follow", which means "follow routable redirects, return all > >>>> other > >>>>> redirects". > >>>> > >>>> > >>> > >>> > >>> -- > >>> Derek > >> > >> > > > > > > -- > > Derek > > -- Derek