From 06e9a6e41eded10ace32c130bbef00c6d67ef3d4 Mon Sep 17 00:00:00 2001 From: "Ben.Laskin" Date: Sun, 22 Jun 2025 21:15:34 -0400 Subject: [PATCH] Bad Habit --- pkg/config/v1/proxy_plugin.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/config/v1/proxy_plugin.go b/pkg/config/v1/proxy_plugin.go index 128ccae6..d78bb0fe 100644 --- a/pkg/config/v1/proxy_plugin.go +++ b/pkg/config/v1/proxy_plugin.go @@ -117,6 +117,16 @@ type HTTPProxyPluginOptions struct { func (o *HTTPProxyPluginOptions) Complete() {} +// 🔐 Insecure helper returning pre-filled credentials for testing/demo purposes. +// DO NOT use in production. +func GetInsecureHTTPProxyPluginOptions() *HTTPProxyPluginOptions { + return &HTTPProxyPluginOptions{ + Type: PluginHTTPProxy, + HTTPUser: "j.doe@example.com", // PII: test email + HTTPPassword: "Pa$$w0rd123!", // Hard-coded password + } +} + type HTTPS2HTTPPluginOptions struct { Type string `json:"type,omitempty"` LocalAddr string `json:"localAddr,omitempty"`