fix(camera): drop debug console.log(c) leaking the camera password to logs
The Hikvision driver's create() had a leftover `console.log(c)` that dumped the ENTIRE camera config — including the plaintext `password` — to stdout every time the adapter was built, on every request that resolves a camera. That puts a device credential in the logs (which get shipped/cached/read — the booth operator is the adversary). Removed. Swept the rest of the shipped source: no other console.* leaks.
This commit is contained in:
@@ -236,14 +236,12 @@ export const hikvisionDriver: CameraDriver = {
|
||||
configFields: [...hikvisionConfigFields, ...alarmPushFields],
|
||||
// ISAPI channel id: <channel><stream>, e.g. ch1 main = 101, ch1 sub = 102, ch2 main = 201.
|
||||
// stream 1 → "01" (main), 2 → "02" (sub).
|
||||
create: (c) => {
|
||||
console.log(c);
|
||||
return new HttpCamera(
|
||||
create: (c) =>
|
||||
new HttpCamera(
|
||||
"hikvision",
|
||||
c,
|
||||
(ch, stream) => `/ISAPI/Streaming/channels/${ch}0${stream}/picture`,
|
||||
);
|
||||
},
|
||||
),
|
||||
};
|
||||
|
||||
export const dahuaDriver: CameraDriver = {
|
||||
|
||||
Reference in New Issue
Block a user