Page MenuHomeFreeBSD

www/varnish4: update to 4.1.0
ClosedPublic

Authored by feld on Oct 13 2015, 3:00 PM.
Tags
None
Referenced Files
F103134962: D3878.id.diff
Thu, Nov 21, 11:26 AM
F103068636: D3878.id.diff
Wed, Nov 20, 12:43 PM
Unknown Object (File)
Thu, Nov 14, 7:46 AM
Unknown Object (File)
Mon, Nov 11, 10:46 AM
Unknown Object (File)
Sun, Nov 10, 11:49 AM
Unknown Object (File)
Thu, Nov 7, 10:25 PM
Unknown Object (File)
Wed, Nov 6, 9:44 AM
Unknown Object (File)
Tue, Nov 5, 11:02 AM
Subscribers

Details

Summary

Varnish update to 4.1.0

Disruptive changes: new "jail" feature. Upstream wants Varnish to run as
its own user. We were previously running as www:www which is probably
not appropriate. I am creating a varnish user/group instead.

Users may have to blow away /usr/local/varnish/hostname before firing
varnishd back up.

TODO: write an UPDATING entry

https://github.com/varnish/Varnish-Cache/blob/varnish-4.1.0/doc/sphinx/whats-new/changes.rst

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

feld retitled this revision from to www/varnish4: update to 4.1.0.
feld updated this object.
feld edited the test plan for this revision. (Show Details)

Does it use the group at all ? I see no mention of it in the rc file.

In D3878#80519, @mat wrote:

Does it use the group at all ? I see no mention of it in the rc file.

I had a chat with phk and he said we should have two users: varnish and vcache, both should be in the varnish group.

Make varnishlog and varnishncsa run as non-root as well

Give varnishncsa and varnishlog their own UIDs. Their membership into
the varnish group allow them to read logs, but will not permit them to
attack the running varnish process if they were somehow compromised.

Reviewed Debian's approach and they share "varnishlog" user between the
varnishlog and varnishncsa processes

This revision was automatically updated to reflect the committed changes.