fix(xen-api#_sessionOpen): don't log credentials on error (#4995)

This commit is contained in:
badrAZ 2020-05-18 09:47:52 +02:00 committed by GitHub
parent 5d497a1908
commit 3388e5e8a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,7 @@
- [Remotes] Fix "remote is disabled" error on getting the remotes info (commit [eb2f429964d7adc264bf678c37e49a856454388e](https://github.com/vatesfr/xen-orchestra/commit/eb2f429964d7adc264bf678c37e49a856454388e))
- Fix default filters not being set in all tables (PR [#4994](https://github.com/vatesfr/xen-orchestra/pull/4994))
- [SDN Controller] Broken encrypted tunnels after host reboot [#4996](https://github.com/vatesfr/xen-orchestra/pull/4996)
- Don't log server's credentials in case of `SESSION_AUTHENTICATION_FAILED` error (PR [#4995](https://github.com/vatesfr/xen-orchestra/pull/4995))
### Released packages
@ -40,6 +41,7 @@
>
> In case of conflict, the highest (lowest in previous list) `$version` wins.
- xen-api patch
- xo-server-auth-ldap minor
- xo-server-sdn-controller patch
- xo-server-usage-report minor

View File

@ -659,7 +659,11 @@ export class Xapi extends EventEmitter {
error.call = {
method,
params: replaceSensitiveValues(params, '* obfuscated *'),
params:
// it pass server's credentials as param
method === 'session.login_with_password'
? '* obfuscated *'
: replaceSensitiveValues(params, '* obfuscated *'),
}
debug(