Access from trusted networks without auth token is going to be removed in Home Assistant 0.96 Now what?

Hello,
how to deal withthis warning?
Access from trusted networks without auth token is going to be removed in Home Assistant 0.96. Configure the trusted networks auth provider or use long-lived access tokens to access /api/states/sensor.temperature_aqara from xxx.xxx.xxx.xxx

I have that IP in configuration.yaml like this:

  auth_providers:
   - type: homeassistant
   - type: trusted_networks
     trusted_networks:
       - xxx.xxx.xxx.xxx

What did I wrong? Can you point me to the right direction please?

Thank you.

I had the same problem. Solved it by creating a long lived token and included it in my curl call:

curl -X GET \
https://your.awesome.home/api/error/all \
-H 'Authorization: Bearer ABCDEFGH'

More details you will find here:

2 Likes

I’ve got the same kind of warnings, only with 4 different kind of folders:

Configure the trusted networks auth provider or use long-lived access tokens to access /api/config from xxx.xxx.xxx.xxx
Configure the trusted networks auth provider or use long-lived access tokens to access /api/states from xxx.xxx.xxx.xxx
Configure the trusted networks auth provider or use long-lived access tokens to access /api/ios/identify from xxx.xxx.xxx.xxx
Configure the trusted networks auth provider or use long-lived access tokens to access /api/services/device_tracker/see from xxx.xxx.xxx.xxx

I have that IP in my configuration.yaml like this:

  auth_providers:
  - type: trusted_networks
    trusted_networks:
      - xxx.xxx.xxx.xxx/xxx

I really don’t know what is causing these warning to show. Can it be from one or more of my Hassio addons?

Thanks in advance!

Is that config under homeassistant:?

homeassistant:
  auth_providers:
    - type: trusted_networks
      trusted_networks:
        - 192.168.0.0/24

Yes, I configured it that way. I see that @bigmike also have type: homeassistant as an auth_provider. Maybe that is a solution?

I believe that having trusted_networks under the http: section of the configuration.yaml file is what will be going away and is also what causes the warnings.

Moving it to auth_providers under the homeassistant: section as mentioned above is the correct solution.

I’ve got my trusted_networks under the homeassistant: section, and I’m still getting the warnings…