Thanks for the response @s1monw , I truly appreciate it. Do you know if this will/might change in future releases?
Also i came across this test Case in elastic codebase -
Where the comment says "Action filter that will reject the request if it isn't authenticated." and when i look at void apply method inside TestFilter , its doing
chain.proceed(task, action, request, listener);
How is this different? Isn't it also pre-processing the rest requests for authentication?
The chain you see there is for transport actions. This is an older way of extending, which rest actions used to also do. However, the chaining was complicated and error prone. Transport actions will eventually be moved to a singular wrapper as well. It is unlikely this will be relaxed in the future, as the complexity of supporting multiple was too cumbersome to maintain.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.