Hello all I second the idea of a separate tag. I believe it will help ruleset writers and human readers.
There might be also an attribute to upgrade http://example.com => https://www.example.com if there are enough rules in the library that use that kind of redirection. As for maintainers, I guess we'll need them for current rules too. I volunteer for maintaining of English and Russian websites. Best regards, Maxim Nazarenko On 16 February 2015 at 11:39, Claudio Moretti <[email protected]> wrote: > Hi Jacob, > > I agree completely with the idea, but instead of using simple=true wouldn't > it be better to use a separate tag like <simpletarget /> or similar? > > It would improve the overall readability of the rulesets and clearly > separate targets that need a regex and targets that don't. > > True, it will require a bit more tweaking on the code, but it might allow > for further expansion of the use we do sqlite db (if implemented in a > separate table) or, anyway, be translated in the db as '$target' in the > targets table and the word 'simple' in the corresponding rule, while still > keeping the code clean and maintain the expandability. > > Cheers, > > Claudio > > On Feb 15, 2015 8:11 PM, "Jacob Hoffman-Andrews" <[email protected]> wrote: >> >> Hi all, >> >> In the process of updating rulesets to conform with the new ruleset >> coverage test requirements, and reviewing your fixes (thank you!), I've >> noticed a large number of target hosts just need simple updates. For >> instance: >> >> > <ruleset name="VirtualBox"> >> > >> > <target host="virtualbox.org" /> >> > <target host="forums.virtualbox.org" /> >> > <target host="www.virtualbox.org" /> >> > <target host="update.virtualbox.org" /> >> > >> > >> > <securecookie host="^\.www\.virtualbox\.org$" name=".+" /> >> > <securecookie host="^\.forums\.virtualbox\.org$" name=".+" /> >> > >> > >> > <!-- Certificate is not valid for "virtualbox.org" --> >> > <rule from="^http://(?:www\.)?virtualbox\.org/" >> > to="https://www.virtualbox.org/" /> >> > >> > <rule from="^http:" >> > to="https:" /> >> This ruleset rewrites 'virtualbox.org' to 'www.virtualbox.org'; For all >> other target hosts it simply upgrades to HTTPS. However, one must read >> all of the rules in the ruleset carefully to determine that. >> >> I'd like to propose another update to the ruleset grammar, simple="true": >> >> <target host="forums.virtualbox.org" simple="true" /> >> >> For URLs on that target host, HTTPS Everywhere would always upgrade to >> HTTPS, not bothering to evaluate any further regexes. >> >> If we go this route, I think I can update all the rules from the past >> week or so automatically, so no need to pause in fixing rulesets. >> >> The other change I'm considering is to add an optional 'maintainer' >> field for rulesets. This would contain a list of names and email >> addresses to be contacted when we have to disable a rule for failing >> tests. It would still be fine to submit rulesets with no maintainer field. >> >> What do you think? >> >> Thanks, >> Jacob >> >> _______________________________________________ >> HTTPS-Everywhere mailing list >> [email protected] >> https://lists.eff.org/mailman/listinfo/https-everywhere > > > _______________________________________________ > HTTPS-Everywhere mailing list > [email protected] > https://lists.eff.org/mailman/listinfo/https-everywhere _______________________________________________ HTTPS-Everywhere mailing list [email protected] https://lists.eff.org/mailman/listinfo/https-everywhere
