]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix: use truncateId consistently for all user identifiers in logs
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 18 Mar 2026 22:21:10 +0000 (23:21 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 18 Mar 2026 22:21:10 +0000 (23:21 +0100)
commite786699dd36ea61c2a46baed8ff98567f0893918
treed50c6e97ffe1ac96c51e3e0389ce3ab4b6224c2d
parent7040dac859f4bfe0c6c2567e829b38c752454142
fix: use truncateId consistently for all user identifiers in logs

Replace 16 bare idTag/identifier.value references and 4 manual
substring(0,8) truncations with truncateId() across OCPP 1.6
ResponseService, IncomingRequestService, auth adapters, strategies,
and helpers.

User identifiers (RFID tags, auth tokens) are now consistently
truncated in all log output to prevent sensitive data exposure.
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts
src/charging-station/ocpp/1.6/OCPP16ResponseService.ts
src/charging-station/ocpp/auth/adapters/OCPP16AuthAdapter.ts
src/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.ts
src/charging-station/ocpp/auth/services/OCPPAuthServiceImpl.ts
src/charging-station/ocpp/auth/strategies/LocalAuthStrategy.ts
src/charging-station/ocpp/auth/strategies/RemoteAuthStrategy.ts
src/charging-station/ocpp/auth/utils/AuthHelpers.ts
tests/charging-station/ocpp/auth/utils/AuthHelpers.test.ts