From d73a43d926e9a11cf38d5d57294ba47baa117a87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 8 Apr 2026 00:39:21 +0200 Subject: [PATCH] fix(ocpp): use Volatile instead of invented Ephemeral for CertificatePrivateKey persistence Remove non-spec PersistenceEnumType.Ephemeral value. Use existing Volatile which correctly prevents disk persistence and is already used for ~25 other runtime-only variables in the registry. --- src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts | 2 +- src/types/ocpp/2.0/Variables.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts b/src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts index 97d2dde7..7348c1bc 100644 --- a/src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts +++ b/src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts @@ -2161,7 +2161,7 @@ export const VARIABLE_REGISTRY: Record = { description: 'Private key material upload placeholder; write-only for security.', maxLength: 2048, mutability: MutabilityEnumType.WriteOnly, - persistence: PersistenceEnumType.Ephemeral, + persistence: PersistenceEnumType.Volatile, supportedAttributes: [AttributeEnumType.Actual], variable: OCPP20VendorVariableName.CertificatePrivateKey, vendorSpecific: true, diff --git a/src/types/ocpp/2.0/Variables.ts b/src/types/ocpp/2.0/Variables.ts index dc1722eb..0f12c9e9 100644 --- a/src/types/ocpp/2.0/Variables.ts +++ b/src/types/ocpp/2.0/Variables.ts @@ -98,7 +98,6 @@ export enum OCPP20VendorVariableName { } export enum PersistenceEnumType { - Ephemeral = 'Ephemeral', Persistent = 'Persistent', Volatile = 'Volatile', } -- 2.43.0