Skip to content

Commit

Permalink
chore: Deliniate cache key via clusterId
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith committed Dec 10, 2024
1 parent 403bc23 commit 877a7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control-plane/src/modules/auth/customer-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const verifyCustomerProvidedAuth = async ({
clusterId: string;
}): Promise<unknown> => {

const secretHash = hashFromSecret(token);
const secretHash = hashFromSecret(`${clusterId}:${token}`);

const cached = await customerAuthContextCache.get(secretHash);
if (cached) {
Expand Down

0 comments on commit 877a7f9

Please sign in to comment.