From b1ec9d1dcf7614d73d656be4e465c2a5a870d8cd Mon Sep 17 00:00:00 2001 From: akumar Date: Fri, 28 Jun 2024 09:49:51 +0200 Subject: [PATCH] fix: remove apiKey listener --- src/service.ts | 6 ------ src/worker.ts | 6 ------ 2 files changed, 12 deletions(-) diff --git a/src/service.ts b/src/service.ts index 64ae3b1..405343a 100644 --- a/src/service.ts +++ b/src/service.ts @@ -714,12 +714,6 @@ export class UserService extends ServiceBase impleme this.logger.error('Error making wahtIsAllowedACS request for verifying role associations', { code: err.code, message: err.message, stack: err.stack }); return returnStatus(err.code, err.message, usersList[0].id); } - // for apiKey no need to verify role assocs - const configuredApiKey = this.cfg.get('authentication:apiKey'); - if ((acsResponse.decision === Response_Decision.PERMIT) && - (configuredApiKey && subject.token && configuredApiKey === subject.token)) { - return; - } if ((acsResponse as PolicySetRQResponse)?.policy_sets?.length > 0) { const policiesList = (acsResponse as PolicySetRQResponse).policy_sets[0].policies; if (policiesList?.length > 0) { diff --git a/src/worker.ts b/src/worker.ts index 5c0c866..e494468 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -119,12 +119,6 @@ class UserCommandInterface extends chassis.CommandInterface { }; } - async setApiKey(payload: any): Promise { - const commandResponse = await super.setApiKey(payload); - updateConfig(this.config); - return commandResponse; - } - async configUpdate(payload: any): Promise { const commandResponse = await super.configUpdate(payload); updateConfig(this.config);