<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #571: Force HTTP for anonymous, HTTPS for logged in users</title>
    <link>http://localhost:8080/trac/ticket/571</link>
    <description>&lt;p&gt;
To further reduce load and leverage the caching I've changed the Session 443 settings to force anon users to HTTP and logged in to HTTPS. The benefit of allowing a handful of users to choose is tiny compared the downsides of outages, 503s and higher load.
&lt;/p&gt;
&lt;p&gt;
The &lt;a class="ext-link" href="https://www.transitionnetwork.org/admin/settings/session443"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;"User state" setting on the config page&lt;/a&gt; is now " Redirect authenticated users to HTTPS and redirect anonymous users to HTTP (with the exception of login/registration pages).", was "Redirect authenticated users to HTTPS and redirect anonymous users on login/registration pages to HTTPS. Anonymous users visiting other pages may use HTTP or HTTPS."
&lt;/p&gt;
&lt;p&gt;
I've also set user and site-wide contact forms, plus the mailchimp subs page force secure-only per the "Additional pages to make secure" setting.
&lt;/p&gt;
&lt;p&gt;
We can see if this makes a difference, and this ticket is to track comments and see if it results in any improvement in performance/stability.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/571</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Tue, 16 Jul 2013 11:59:54 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/571#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/571#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Tue, 16 Jul 2013 12:15:17 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/571#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/571#comment:2</guid>
      <description>
        &lt;p&gt;
Note this settings change happened at around 12.50 on Tuesday 16 July for monitoring purposes.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Thu, 18 Jul 2013 13:30:08 GMT</pubDate>
      <title>hours deleted</title>
      <link>http://localhost:8080/trac/ticket/571#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/571#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                &lt;em&gt;0&lt;/em&gt; deleted
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
OK so after a couple of days it's clear this was a good improvement. See attached image for evidence that disk service time has dropped and throughput increased despite the last few days being very busy.
&lt;/p&gt;
&lt;p&gt;
This change will have better used the Nginx speed cache, and Drupal's page cache (via Redis) because and client browser caching, and minimised the risks from editors/users posting HTTPS.
&lt;/p&gt;
&lt;p&gt;
Closing, but re-open if any comments or issues occur. Adding time for R&amp;amp;D &amp;amp; implementation.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Thu, 18 Jul 2013 13:30:19 GMT</pubDate>
      <title>attachment set</title>
      <link>http://localhost:8080/trac/ticket/571</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/571</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;attachment&lt;/strong&gt;
                set to &lt;em&gt;session_context_change.png&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Thu, 18 Jul 2013 13:31:02 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/571#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/571#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The cyan line in the attached image marks the point I changed the setting in the OP.
&lt;/p&gt;
&lt;p&gt;
Closing.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Thu, 18 Jul 2013 13:33:29 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/571#comment:5</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/571#comment:5</guid>
      <description>
        &lt;p&gt;
One last point: if it turns out we have low-grade DoS or a bunch of badly behaved bots hitting the site then we'd be in the strange situation of finding that any increase in throughput (to a point) would be absorbed by these agents simply being able to hit us faster, rather than waiting. I hope that's not the case...
&lt;/p&gt;
&lt;p&gt;
Oh, and the HTTPS -&amp;gt; HTTP for non-logged in helps SEO too, I'd argue.
&lt;/p&gt;
&lt;p&gt;
Over and out.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Thu, 18 Jul 2013 13:34:48 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/571#comment:6</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/571#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.25&lt;/em&gt; to &lt;em&gt;0.75&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Adding hours that didn't add...
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 18 Jul 2013 20:13:48 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/571#comment:7</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/571#comment:7</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.75&lt;/em&gt; to &lt;em&gt;0.9&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/571#comment:3" title="Comment 3 for Ticket #571"&gt;jim&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
OK so after a couple of days it's clear this was a good improvement. See attached image for evidence that disk service time has dropped and throughput increased despite the last few days being very busy.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I don't see exactly why the disk service time should be related to this to be honest, I'd guess it is down to the fact that over the last few days we have migrated some of the virtual machines on red to use an external zfs disk array, rather than the disks in red. If you look at the annual IO service time it's heading back to where it was some months ago:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/iostat_ios.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/iostat_ios.html&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
I also don't understand why the number of connections through the firewall is directly related to this change?
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
This change will have better used the Nginx speed cache, and Drupal's page cache (via Redis) because and client browser caching, and minimised the risks from editors/users posting HTTPS.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I don't disagree that performance wise SSL has a overhead but I still think that in the age of GCHQ and the NSA slurping up all the traffic we should generally be aiming at using HTTPS for everything and as a minimum we should allow people to choose to use HTTPS if they don't want what they are reading to be transparent to the spooks.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 25 Jul 2013 08:15:01 GMT</pubDate>
      <title>status changed; resolution deleted</title>
      <link>http://localhost:8080/trac/ticket/571#comment:8</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/571#comment:8</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;closed&lt;/em&gt; to &lt;em&gt;reopened&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                &lt;em&gt;fixed&lt;/em&gt; deleted
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I should have mentioned this earlier but users of Firefox with the EFF HTTPS Everywhere plugin, &lt;a class="ext-link" href="https://www.eff.org/https-everywhere"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.eff.org/https-everywhere&lt;/a&gt; who don't login now simply get a redirect loop when they try to access &lt;a class="ext-link" href="http://transitionnetwork.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://transitionnetwork.org/&lt;/a&gt; -- they can't access any content on the site due the the changes made to redirect non-authenticated users to the HTTP version of the site from the HTTPS version.
&lt;/p&gt;
&lt;p&gt;
As I have said before I think we should allow non-authenticated users to access the site using HTTPS if they wish to do so for privacy reasons.
&lt;/p&gt;
&lt;p&gt;
In light of &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/574" title="maintenance: EFF: How HTTPS Everywhere affects transitionnetwork.org (closed: duplicate)"&gt;ticket:574&lt;/a&gt; I'm re-opening this ticket.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 25 Jul 2013 10:44:01 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/571#comment:9</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/571#comment:9</guid>
      <description>
        &lt;p&gt;
Replying to &lt;a href="http://localhost:8080/trac/ticket/571#comment:8" title="Comment 8 for Ticket #571"&gt;chris&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
As I have said before I think we should allow non-authenticated users to access the site using HTTPS if they wish to do so for privacy reasons.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
For example:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
I think we should allow non authenticated users to use HTTPS if they wish so I think "Force HTTP for anonymous users:" should be disabled
&lt;/p&gt;
&lt;p&gt;
&lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/224#comment:13" title="defect: Add Varnish cache (closed: fixed)"&gt;ticket:224#comment:13&lt;/a&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Wed, 31 Jul 2013 20:13:20 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/571#comment:10</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/571#comment:10</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;-0.4&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.9&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I'm 100% happy to roll this tweak back. The logic was simple: better use caching by enforcing a single HTTP context, rather than spread things over HTTPS too for anonymous users, plus reduce load on the server as some assets, pages and session-related stuff is not cached as long/all over HTTPS.
&lt;/p&gt;
&lt;p&gt;
I still maintain this will have a positive effect on the server's load, though clearly it's not very significant. That the change I did coincided with Chris tweaking the host server meant I jumped to a wrong conclusion that the server was having less disk work to as a result of better caching things, and therefore spitting out pages faster. In my defence when one flicks a switch and something good happens, one tends to assume the switch was good (not that there was a wizard in the behind the curtain twiddling much heftier knobs!)
&lt;/p&gt;
&lt;p&gt;
So I've put the setting in the OP back as it was, &lt;em&gt;"Redirect authenticated users to HTTPS and redirect anonymous users on login/registration pages to HTTPS. Anonymous users visiting other pages may use HTTP or HTTPS"&lt;/em&gt; at 9.10pm 31 July in case we see any visible change in Munin.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jim</dc:creator>

      <pubDate>Wed, 31 Jul 2013 20:14:08 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/571#comment:11</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/571#comment:11</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;reopened&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I took out some of my time as a goodwill gesture too.
&lt;/p&gt;
&lt;p&gt;
Closing, will re-open if something else 'special' happens.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ed</dc:creator>

      <pubDate>Thu, 01 Aug 2013 08:23:17 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/571#comment:12</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/571#comment:12</guid>
      <description>
        &lt;p&gt;
Good work chaps
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>