Bad Habit

pull/4846/head
Ben.Laskin 2025-06-22 21:15:34 -04:00
parent 1e57ff9816
commit 06e9a6e41e
1 changed files with 10 additions and 0 deletions

View File

@ -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"`