From 16793483f9da137e97472e59866cf96723c24ecc Mon Sep 17 00:00:00 2001 From: Oleksandr Deundiak Date: Fri, 18 Aug 2023 18:17:35 +0200 Subject: [PATCH] feat(rust): remove deprecated `PROJECT_ID` from credentials check --- .../rust/ockam/ockam_api/src/nodes/service.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/implementations/rust/ockam/ockam_api/src/nodes/service.rs b/implementations/rust/ockam/ockam_api/src/nodes/service.rs index 9f94916678b..93198e48351 100644 --- a/implementations/rust/ockam/ockam_api/src/nodes/service.rs +++ b/implementations/rust/ockam/ockam_api/src/nodes/service.rs @@ -211,18 +211,10 @@ impl NodeManager { if self.policies.get_policy(r, a).await?.is_none() { let fallback = match custom_default { Some(e) => e.clone(), - None => and([ - eq([ident("resource.project_id"), ident("subject.project_id")]), // TODO: DEPRECATE - Removing PROJECT_ID attribute in favor of TRUST_CONTEXT_ID - /* - * TODO: replace the project_id check for trust_context_id. For now the - * existing authority deployed doesn't know about trust_context so this is to - * be done after updating deployed authorities. - eq([ - ident("resource.trust_context_id"), - ident("subject.trust_context_id"), - ]), - */ - ]), + None => and([eq([ + ident("resource.trust_context_id"), + ident("subject.trust_context_id"), + ])]), }; self.policies.set_policy(r, a, &fallback).await? }