From 00666ea56295a2a63dcbaf0567efced2df62ea46 Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Fri, 10 Jul 2020 15:10:15 -0500 Subject: [PATCH] fix: don't debug log the API key secret when creating profiles (#199) --- src/commands/profiles/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/profiles/create.js b/src/commands/profiles/create.js index 54fce8078..f2c2399c9 100644 --- a/src/commands/profiles/create.js +++ b/src/commands/profiles/create.js @@ -230,8 +230,8 @@ class ProfilesCreate extends BaseCommand { const twilioClient = this.getTwilioClient(); try { + // Don't log the response since it contains the secret. apiKey = await twilioClient.newKeys.create({ friendlyName: apiKeyFriendlyName }); - this.logger.debug(apiKey); } catch (error) { this.logger.debug(error); throw new TwilioCliError('Could not create an API Key.');