(conf map[string]interface{})
| 195 | } |
| 196 | |
| 197 | func 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 | |
| 207 | func ensureOpenclawUpdateDefaults(conf map[string]interface{}) { |
| 208 | update := ensureChildMap(conf, "update") |
no test coverage detected