Page MenuHomeFreeBSD

www/varnish4: update to 4.1.0
ClosedPublic

Authored by feld on Oct 13 2015, 3:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 26, 9:55 AM
Unknown Object (File)
Wed, Jan 22, 8:25 AM
Unknown Object (File)
Fri, Jan 17, 5:25 AM
Unknown Object (File)
Thu, Jan 16, 2:40 PM
Unknown Object (File)
Fri, Jan 10, 2:35 PM
Unknown Object (File)
Thu, Jan 2, 7:12 AM
Unknown Object (File)
Dec 23 2024, 8:08 AM
Unknown Object (File)
Dec 21 2024, 12:10 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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 759
Build 759: arc lint + arc unit

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.