From 7f8b00e5388a28d65b1ae25da95d78bdafbc4ea0 Mon Sep 17 00:00:00 2001 From: chandrika Date: Tue, 3 Feb 2026 22:19:47 -0800 Subject: [PATCH 1/2] fix federation registration --- src/volttron/auth/auth_service.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/volttron/auth/auth_service.py b/src/volttron/auth/auth_service.py index 48c80da..a1eb527 100644 --- a/src/volttron/auth/auth_service.py +++ b/src/volttron/auth/auth_service.py @@ -176,13 +176,12 @@ def get_credentials(self, *, identity: Identity) -> Credentials: except IdentityNotFound as e: raise VIPError(f"Credentials not found for identity {identity}") from e - def add_federation_platform(self, platform_id: str, credentials: Any) -> bool: + def register_remote_platform(self, platform_id: str, credentials: Any): """ Register a remote platform for federation access :param platform_id: ID of the remote platform :param credentials: Authentication credentials for the remote platform (public key) - :return: True if registration was successful, False otherwise """ try: # Store the platform credentials @@ -193,15 +192,10 @@ def add_federation_platform(self, platform_id: str, credentials: Any) -> bool: platform_identity = f"{platform_id}" public_creds = PublicCredentials(identity=f"{platform_identity}", publickey=credentials) - - self._credentials_store.store_credentials(credentials=public_creds) - - - _log.info(f"Federation platform registered: {platform_id}") - return True + self._credentials_store.store_credentials(credentials=public_creds, overwrite=True) except Exception as e: _log.error(f"Error registering federation platform {platform_id}: {e}") - return False + raise def remove_federation_platform(self, platform_id: str) -> bool: """ From ccff49475b422fc38a5c25299eac859ad55386c0 Mon Sep 17 00:00:00 2001 From: Chandrika Date: Wed, 25 Mar 2026 15:44:43 -0700 Subject: [PATCH 2/2] Update volttron-core dependency version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5ed7209..acf99ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ classifiers = [ ] [tool.poetry.dependencies] python = ">=3.10,<4.0" -volttron-core = ">=2.0.0rc13" +volttron-core = ">=2.0.0rc26" [tool.poetry.group.dev.dependencies] # formatting, quality, tests