MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / ensureGatewaySecurityDefaults

Function ensureGatewaySecurityDefaults

agent/app/service/agents_utils.go:197–205  ·  view source on GitHub ↗
(conf map[string]interface{})

Source from the content-addressed store, hash-verified

195}
196
197func ensureGatewaySecurityDefaults(conf map[string]interface{}) {
198 gateway := ensureChildMap(conf, "gateway")
199 controlUi := ensureChildMap(gateway, "controlUi")
200 if _, ok := controlUi["dangerouslyDisableDeviceAuth"]; !ok {
201 controlUi["dangerouslyDisableDeviceAuth"] = true
202 }
203 delete(controlUi, "dangerouslyAllowHostHeaderOriginFallback")
204 setTrustedProxies(gateway)
205}
206
207func ensureOpenclawUpdateDefaults(conf map[string]interface{}) {
208 update := ensureChildMap(conf, "update")

Callers 3

writeOpenclawConfigRawFunction · 0.85
setSecurityConfigFunction · 0.85
writeOpenclawConfigFunction · 0.85

Calls 2

ensureChildMapFunction · 0.85
setTrustedProxiesFunction · 0.85

Tested by

no test coverage detected