home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.87k stars 28.97k forks source link

HTTP option 'server_host'. Watchdog feature disabled. booting in safe mode #121233

Open guidohaesen opened 5 days ago

guidohaesen commented 5 days ago

The problem

Since update 2024-7 (also beta's) i get this error: ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.8 WARNING (MainThread) [homeassistant.components.hassio.handler] Found incompatible HTTP option 'server_host'. Watchdog feature disabled

In version 2024.6 no problems, no wierd stuff in logs. if i update to 2024.7 immédiate get these errors. something is wrong with the proxy.

I have no idea wath a proxy is, :-) and why in 2024.7 a problem is. What can i do? i checked the internet and saw several reactions that the http section in configuration.yaml is wrong, but no solution. What is wrong since 20.24.7 and why is this no issue in 2024.6 and most inportant, how to solve this.

http: use_x_forwarded_for: true trusted_proxies:

What version of Home Assistant Core has the issue?

2024.7

What was the last working version of Home Assistant Core?

2024.6.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.33.0/24
    - 192.168.3.0/24
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem
  ip_ban_enabled: true
  login_attempts_threshold: 50

Anything in the logs that might be useful for us?

No response

Additional information

,

home-assistant[bot] commented 5 days ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (http) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `http` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign http` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


http documentation http source (message by IssueLinks)

TimKras commented 4 days ago

I had to remove the 'trusted_networks' node from configuration.yaml to 'fix' the error.

guidohaesen commented 4 days ago

I had to remove the 'trusted_networks' node from configuration.yaml to 'fix' the error.

Thank you, but that didn't the trick for me. now i have this ;log: Logger: homeassistant.components.hassio.handler Source: components/hassio/handler.py:524 integration: Home Assistant Supervisor (documentation, issues) First occurred: 21:54:12 (1 occurrences) Last logged: 21:54:12

2024-07-05 21:54:12.101 WARNING (MainThread) [homeassistant.components.hassio.handler] Found incompatible HTTP option 'server_host'. Watchdog feature disabled 2024-07-05 21:55:59.716 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.8

Found incompatible HTTP option 'server_host'. Watchdog feature disabled

The question stays, why a problem in 2024.7 and not in 2024.6