diff options
Diffstat (limited to 'app/models/clusters/applications/jupyter.rb')
-rw-r--r-- | app/models/clusters/applications/jupyter.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/app/models/clusters/applications/jupyter.rb b/app/models/clusters/applications/jupyter.rb index c26e984f9eb..64217b6240f 100644 --- a/app/models/clusters/applications/jupyter.rb +++ b/app/models/clusters/applications/jupyter.rb @@ -57,10 +57,10 @@ module Clusters "extraEnv" => { "GITLAB_HOST" => gitlab_url }, - "cookieSecret" => SecureRandom.hex(32) + "cookieSecret" => cookie_secret }, "proxy" => { - "secretToken" => SecureRandom.hex(32) + "secretToken" => secret_token }, "auth" => { "gitlab" => { @@ -79,6 +79,14 @@ module Clusters def content_values YAML.load_file(chart_values_file).deep_merge!(specification) end + + def secret_token + @secret_token ||= SecureRandom.hex(32) + end + + def cookie_secret + @cookie_secret ||= SecureRandom.hex(32) + end end end end |