diff --git a/lib/travis/hub/config.rb b/lib/travis/hub/config.rb index 0821d1e2..a17386ec 100644 --- a/lib/travis/hub/config.rb +++ b/lib/travis/hub/config.rb @@ -30,7 +30,7 @@ def jwt_key(type) states_cache: { memcached_servers: 'localhost:11211', memcached_options: {} }, name: 'hub', host: 'travis-ci.org', - encryption: env == 'development' || env == 'test' ? { key: 'secret' * 10 } : {}, + encryption: { key: ENV['TRAVIS_ENCRYPTION_KEY'] || 'secret' * 10 }, logger: { thread_id: true }, librato: {}, sentry: {},