provision: delay initialization of secrets until provision time

when we create the DO 1-click image, the key also gets snapshotted.

https://community.letsencrypt.org/t/receiving-expiration-emails-for-dozens-of-domains/165441
This commit is contained in:
Girish Ramakrishnan
2021-11-15 23:28:19 -08:00
parent 42eef42cf3
commit 01a1803625
3 changed files with 5 additions and 2 deletions

View File

@@ -6,7 +6,6 @@ exports = module.exports = {
};
const assert = require('assert'),
blobs = require('./blobs.js'),
cloudron = require('./cloudron.js'),
constants = require('./constants.js'),
database = require('./database.js'),
@@ -380,7 +379,6 @@ async function start() {
await database.initialize();
await settings.initCache(); // pre-load very often used settings
await blobs.initSecrets();
await cloudron.initialize();
await util.promisify(gHttpServer.listen.bind(gHttpServer))(constants.PORT, '127.0.0.1');
await safe(eventlog.add(eventlog.ACTION_START, { userId: null, username: 'boot' }, { version: constants.VERSION })); // can fail if db down