Compare commits

...

1 Commits

Author SHA1 Message Date
Jonathan Gramain 5a2159bdd0 bugfix: CLDSRV-31 disable KMS healthchecks
Disable KMS healthchecks introduced with S3C-4562, because when the
KMS is unavailable, Cloudserver would not start, or if already
started, would reject all requests (including unencrypted ones).

The KMS healthchecks will be reworked later, this is a quick fix for now.

(cherry picked from commit d7fd815d6d)
2021-10-07 13:37:57 -07:00
1 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,6 @@ const _config = require('../Config').config;
const data = require('../data/wrapper'); const data = require('../data/wrapper');
const vault = require('../auth/vault'); const vault = require('../auth/vault');
const metadata = require('../metadata/wrapper'); const metadata = require('../metadata/wrapper');
const kms = require('../kms/wrapper');
const async = require('async'); const async = require('async');
// current function utility is minimal, but will be expanded // current function utility is minimal, but will be expanded
@ -41,11 +40,15 @@ function writeResponse(res, error, log, results, cb) {
* @return {undefined} * @return {undefined}
*/ */
function clientCheck(flightCheckOnStartUp, log, cb) { function clientCheck(flightCheckOnStartUp, log, cb) {
// FIXME S3C-4833 KMS healthchecks have been disabled:
// - they should be reworked to avoid blocking all requests,
// including unencrypted requests
// - they should not prevent Cloudserver from starting up
const clients = [ const clients = [
data, data,
metadata, metadata,
vault, vault,
kms, // kms,
]; ];
const clientTasks = []; const clientTasks = [];
clients.forEach(client => { clients.forEach(client => {