From 67cd186e9851baee1d6f0d6effe49abe5f3e0555 Mon Sep 17 00:00:00 2001 From: Enzo Mercanti Date: Wed, 21 Aug 2024 17:31:21 -0300 Subject: [PATCH 1/2] fix: add auth metric field --- node/directives/checkUserAccess.ts | 2 ++ node/metrics/auth.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/node/directives/checkUserAccess.ts b/node/directives/checkUserAccess.ts index 53c83f9..acb0e2b 100644 --- a/node/directives/checkUserAccess.ts +++ b/node/directives/checkUserAccess.ts @@ -73,6 +73,7 @@ export class CheckUserAccess extends SchemaDirectiveVisitor { hasApiToken, hasValidApiToken, hasStoreToken, + hasCurrentValidStoreToken, hasValidStoreToken, hasAdminTokenOnHeader, hasValidAdminTokenOnHeader, @@ -122,6 +123,7 @@ export class CheckUserAccess extends SchemaDirectiveVisitor { hasApiToken, hasValidApiToken, hasStoreToken, + hasCurrentValidStoreToken, hasValidStoreToken, hasAdminTokenOnHeader, hasValidAdminTokenOnHeader, diff --git a/node/metrics/auth.ts b/node/metrics/auth.ts index 21ec49d..4815a34 100644 --- a/node/metrics/auth.ts +++ b/node/metrics/auth.ts @@ -13,6 +13,7 @@ export interface AuthAuditMetric { hasAdminToken?: boolean hasValidAdminToken?: boolean hasStoreToken?: boolean + hasCurrentValidStoreToken?: boolean hasValidStoreToken?: boolean hasApiToken?: boolean hasValidApiToken?: boolean From f95c8e8501735a49b68103fc80eaed76caf4da32 Mon Sep 17 00:00:00 2001 From: Enzo Mercanti Date: Wed, 21 Aug 2024 17:32:57 -0300 Subject: [PATCH 2/2] fix: changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bae7087..834ee5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed +- add new auth metric field + ## [1.44.2] - 2024-08-21 ### Fixed