Closed (fixed)
Project:
Varnish
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 May 2010 at 23:46 UTC
Updated:
26 Mar 2011 at 03:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
EvanDonovan commentedPatch is not attached.
Comment #2
nestor.mata commentedSorry, the patch was missing
Comment #3
nestor.mata commentedSetting the thread to needs review
Comment #4
interx commentedOn ubuntu the standard varnish startup script includes a secretfile.
I've tested the patch and it works fine when using a secret, thanks.
Personally I'd omit the watchdog call on success, but call it only on failure like it's done a bit lower.
The patch needs to be cleaned up (indenting, if (), string concatenation etc) to fit the coding standards ;)
Comment #5
joshk commentedCleaned up and integrated. Thanks for taking the lead on this!
Comment #6
loekvangool commentedThis was not fixed or was broken again. There is no declaration of $secret hence no secret is used.
20-Jul release needs the $secret declaration back.
Comment #7
cweagansThe code should read like this in varnish.module at line 208:
Comment #8
burningdog commented+1 for #7. Patch attached, if the one-line addition above isn't obvious enough.
Comment #9
burningdog commentedI couldn't get authentication with varnish working. Or rather, applying the above patch and putting my secret key into the drupal varnish config page worked...but then broke after a few days. Could just be my setup, though - I ended up restarting varnish without the secret key required (and making sure my firewall settings only allow access from the correct ip). The module authentication algorithm looks like it follows the varnish documentation at
http://www.varnish-cache.org/trac/wiki/CLI#Authentication:Thegorydetails
...so is this just me? Can someone else get varnish authentication working?
Comment #10
aaron.r.carlton commented+1 for patch #7/#8 Thanks!
Comment #11
catchRan into this, patch is fine, RTBC.
Comment #12
steven jones commentedPatch is good.
Comment #13
rwohlebYep, patch in #8 works for me.
Comment #14
Willem van den Ende commented+1 for this patch
Comment #15
joostvdl commentedPatch tested. Works OK!
Comment #16
resveld commentedpatch works fine!
Comment #17
Edward Clement Lee commented+1 for patch (#8)
Comment #18
fabsor commentedCommited! Thanks for your work, and for your patience =)
Comment #19
steven jones commentedLovely.