well what do you know.
Had another issue with the !secret for the dark sky sensors, also newly added to secrets file. Rendered the same issue while all other (older ones) where loading fine.
Gave it a hard refresh/cache clear in the browser (not the three dots top left refresh) et voila, the Darksky sensor is live and the 3 windy iframes I had configured.
Don’t really understand that because the secrets have nothing to do with page refreshing do they? all backend in this case I would have thought.
so, more than 1 way to use the longer lines in secrets.
1 thing to take into account with these urls is the & sign should not end the line, but start a new line. Otherwise the url is broken, no matter the multiline notation or quotes
In my case I am using “window.location.hostname” to resolve host from the client browser in order to have it working with internal and external HA url. The only thing is, I do not know how to use secret in my case.
Here is my code but it is not working, it is complaining about Unexpected token ‘!’.
Workaround is to use config-template-card and “states[‘input_select.password’].state” but I would like to use secret everywhere if possible.
@alanmilinovic, doesn’t the log show the input_text password when it’s changed (even if the input_text is masked as a password which itself kind of a bug), and also the password is stored in the database.
Perhaps the low bar is not allow administrative actions for whatever the iframe is pointing too with the password in use if that particular dashboard is for general use. One can always restrict the dashboard to Admin if the iframe target is sensitive.
The way HA deals with passwords is not too secure. Definitely good to have full disk encryption and encrypt backups that are stored elsewhere.
For URL’s that need user management aside from dashboard control might be better to have a script or service that maps HA users to URL’s with hashed passwords and/or OAuth.
Yes, one can see the value of input_text in history. At the moment I am the only one that is using HA and HA has authentication so it is secured enough for me.
If one day HA introduce RBAC and I will share it with some friends or family members, then I will have to think about some other solution for sure. I am hoping that it will be possible in the future to restrict access to History and Developer tools inside HA.
There are a few things I found that help with using input_text, etc to frame a URL.
If a user is not an administrator, they don’t get the developer tools in the side panel.
If you set both the recorder (history) and the logbook off for an entity, it does not appear in the logbook. There is a long standing bug/design flaw so both have to be set off for the entity.
I already did that and then I realized that it is staying in state for the entity, but yea it is something. The best solution would be to use secrets directly in cards but unfortunately that is not possible and not sure if it would technically even be feasible.
Secrets are supported in lovelace - but only for yaml-mode dashboards:
– you cannot use a secret in “yaml editor” of a card of a storage-mode dashboard;
– you cannot use a secret in “raw yaml configuration” of a storage-mode dashboard;
– you can use a secret in a yaml file of a yaml-mode dashboard (and you can edit your “secrets.yaml” file and then reload a dashboard to see changes).