Currently, we have a number of API routes scoped as "internal". Here are a
few examples:

https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/TrafficOpsRoutes.pm#L516

I believe this is going to make it more difficult as we try to implement
more granular roles / capabilities coupled with tenancy.

So I'm proposing that we create a duplicate non-internal route like this,
for example:

$r->get("/api/$version/steering")->over( authenticated => 1 )->to(
'Steering#index', namespace => 'API::DeliveryService' );

that way we can slowly move away from the "internal" routes and eventually
deprecate them.

I think with our upcoming more robust role / tenancy model, there is no
longer a need for "internal".

Thoughts?

Jeremy

Reply via email to