mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 09:28:06 +00:00
add logs to track permission inject
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import fp from "fastify-plugin";
|
import fp from "fastify-plugin";
|
||||||
|
|
||||||
|
import { logger } from "@app/lib/logger";
|
||||||
import { ActorType } from "@app/services/auth/auth-type";
|
import { ActorType } from "@app/services/auth/auth-type";
|
||||||
|
|
||||||
// inject permission type needed based on auth extracted
|
// inject permission type needed based on auth extracted
|
||||||
@@ -37,5 +38,7 @@ export const injectPermission = fp(async (server) => {
|
|||||||
authMethod: null
|
authMethod: null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.info(`injectPermission: Injecting permissions for [permissionsForIdentity=${req?.permission?.id}]`);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user