caas: never return key

This commit is contained in:
Girish Ramakrishnan
2018-01-31 18:22:33 -08:00
parent ab7448926f
commit a5af87e47a

View File

@@ -46,6 +46,8 @@ function get(req, res, next) {
if (error && error.reason === DomainError.NOT_FOUND) return next(new HttpError(404, error.message));
if (error) return next(new HttpError(500, error));
delete result.fallbackCertificate.key; // do not return the 'key'. in caas, this is private
next(new HttpSuccess(200, result));
});
}