From 7267516363c3cdf8711c1581d574cd803a910d17 Mon Sep 17 00:00:00 2001 From: Kevan Ahlquist Date: Fri, 1 Apr 2016 11:10:30 -0500 Subject: [PATCH] Don't re-generate token on every startup for now. --- dockerui.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dockerui.go b/dockerui.go index b72304f49..3cd5abbdf 100644 --- a/dockerui.go +++ b/dockerui.go @@ -11,7 +11,6 @@ import ( "os" "strings" "github.com/gorilla/csrf" - "github.com/gorilla/securecookie" ) var ( @@ -19,7 +18,7 @@ var ( addr = flag.String("p", ":9000", "Address and port to serve dockerui") assets = flag.String("a", ".", "Path to the assets") CSRF = csrf.Protect( - []byte(securecookie.GenerateRandomKey(32)), + []byte("32-byte-long-auth-key"), // FIXME: generate once, reuse on restarts csrf.HttpOnly(false), csrf.Secure(false), )