[squid-dev] A new 'has' ACL
Eduard Bagdasaryan
eduard.bagdasaryan at measurement-factory.com
Tue May 2 18:38:46 UTC 2017
As I noted before, after r14752 each transaction(even a failed one,
see logAcceptError()) has its ALE created. Normally it is stored in
ClientHttpRequest::al. However, I see that many ACLFilledChecklist
objects does not initialize their ACLFilledChecklist::al (assigning from
the transaction ALE). That works for now in most cases, probably
because there is the only ACLExternal which needs it and overrides
requiresAle() to return true. On the other hand, the lack of proper
ACLFilledChecklist::al initialization makes impossible correct using
ALE component in our 'has' ACL.
Evidently, if we fix this (e.g., with mandatory initializing
ACLFilledChecklist::al in its constructor), we would not need to
check ALE component either.
Eduard.
On 01.05.2017 19:11, Alex Rousskov wrote:
> On 04/30/2017 10:03 PM, Amos Jeffries wrote:
>
>> Is there an explicit need you have found for ALE to be on the
>> component list? Since ALE is currently standing in as a "master
>> transaction" object for most of the Squid code. It needs to be either
>> created or provided/fetched from elsewhere whenever it is used.
>> Having an ACL that bypasses that would defeat bug-finding of places
>> where it is broken.
> I would like to polish that question and correct its justification
> logic: We can abuse admins as bug-finding guinea pigs only if we give
> them tools to turn those bugs off. The "has" ACL is such a tool. Thus,
> we need a "has" ACL component for any object that any ACL or ACL-driven
> code uses (or should be using) conditionally. Hence, the question is:
>
> Does Squid ACL or ACL-driven code correctly use (or should be using) ALE
> conditionally?
>
> If the answer is "yes", then ALE should be added to "has". If the answer
> is "maybe", then ALE may be added to "has".
>
> Please note that it is not necessary to have a specific crash or warning
> bug report for the answer to become "yes" or "maybe", justifying ALE
> support in the "has" ACL. Squid code analysis is sufficient.
>
> I cannot answer that question without doing more research, but I am sure
> Eduard can find the right answer.
>
>
> Thank you,
>
> Alex.
>
> _______________________________________________
> squid-dev mailing list
> squid-dev at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-dev
More information about the squid-dev
mailing list