Skip to content

Commit 72773c6

Browse files
committed
feat(env-var-password) Remove sensitive/useless console.debug
Signed-off-by: Pierre PÉRONNET <pierre.peronnet@datadoghq.com>
1 parent 9fde89a commit 72773c6

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

plugins/cloudflare-env-var-password/functions/_middleware.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ import { withDefaults } from '../src/args'
66

77
export const onRequest = (context: EventPluginContext<Record<string, string | undefined>, any, any, PluginArgs>): Response | Promise<Response> => {
88
const { passwordEncodingMethod, passwordFieldName, getEnvVarName } = withDefaults(context.pluginArgs)
9-
10-
console.log('onRequest', new URL(context.request.url).toString())
11-
129
const auth = new Auth(context.request, context.env, getEnvVarName(context), passwordEncodingMethod, passwordFieldName)
1310

1411
return autoSession({

plugins/cloudflare-env-var-password/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@natbienetre/cloudflare-env-var-password",
33
"main": "dist/index.js",
44
"types": "index.d.ts",
5-
"version": "0.1.4",
5+
"version": "0.1.5",
66
"license": "MPL-2.0",
77
"funding": "https://github.com/sponsors/holyhope",
88
"files": [

plugins/cloudflare-env-var-password/src/authenticator.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ export class Auth {
6969
return await hash.then((hash: string): SessionSpec => {
7070
const passwordMatch = hash === expected
7171

72-
console.debug(`Password: ${hash} === ${expected}`, passwordMatch)
73-
7472
if (!passwordMatch) {
7573
return {
7674
authenticated: true,

0 commit comments

Comments
 (0)