Skip to content

Commit 0e447cc

Browse files
committed
Annual audit of the component code to check if it exposes a sensitive data in the logs
1 parent af0f669 commit 0e447cc

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
## 1.1.3 (Sept 25, 2020)
1+
## 1.1.4 (October 20, 2020)
2+
* Annual audit of the component code to check if it exposes a sensitive data in the logs
3+
4+
## 1.1.3 (September 25, 2020)
25
* Don't log sensitive data
36
* Update dependencies
47
* Set minimum node version to v12.

lib/authentication/NoAuthRestClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class NoAuthRestClient {
2424
throw new Error(`Error in making request to ${response.request.uri.href} Status code: ${response.statusCode}, Body: ${JSON.stringify(response.body)}`);
2525
}
2626

27-
this.emitter.logger.trace(`Response statusCode: ${response.statusCode}, body: %j`, response.body);
27+
this.emitter.logger.debug(`Response statusCode: ${response.statusCode}`);
2828
return response.body;
2929
}
3030

@@ -43,7 +43,7 @@ export class NoAuthRestClient {
4343
? `${removeTrailingSlash(this.cfg.resourceServerUrl.trim())}/${removeLeadingSlash(url.trim())}` // Trim trailing or leading '/'
4444
: url.trim();
4545

46-
this.emitter.logger.trace(`Making ${method} request to ${urlToCall} with body: %j ...`, body);
46+
this.emitter.logger.debug(`Making ${method} request...`);
4747

4848
const requestOptions = {
4949
method,

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elastic.io/component-commons-library",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "Library for most common component development cases",
55
"author": {
66
"name": "elastic.io GmbH",

0 commit comments

Comments
 (0)