Comments (6)
Hi, thanks for the feedback and creating the issue. As a matter of fact, I recently migrated to a larger SSD and encountered the same issue!
Is there a possibility to check if Bitwarden is completely loaded before your addon gets the secrets?
Perhaps that would be possible with the Home Assistant hassio_api
that is exposed to the application. I will have to look into that to be certain.
Or maybe only rewrite the secrets.yaml file if there is really a password found in Bitwarden?
This functionality is currently implemented in version 1.3.0 (efb28ce) in an effort to mitigate the issue you are describing. So I really like to know if you were using this version of the add-on when this issue occurred?
from home-assistant-addons.
Hi Alex,
Yes I am using the newest version 1.3.0 of your addon.
I have just tested it and it looks like the addon is still replacing the secrets.yaml even if there are no passwords found in Bitwarden.
I tried to changed the username, password and organization. In all cases I get an empty secrets.yaml.
In my logs I see also the following lines:
[14:14:23] INFO: Start retrieving your Home Assistant secrets from Bitwarden
Could not find dir, "/root/.config/Bitwarden CLI"; creating it instead.
Could not find data file, "/root/.config/Bitwarden CLI/data.json"; creating it instead.
[14:14:28] INFO: Bitwarden login succesful!
[14:14:47] INFO: Changed from Bitwarden detected, replacing secrets.yaml...
[14:14:49] INFO: Secret files created.
Maybe that's the issue?
from home-assistant-addons.
Don't worry. I haven't forgot about this issue. Things were rather busy for me, sorry for not responding.
Maybe that's the issue?
The issue is that my script doesn't check whether or not secrets.yaml
is filled or not. That's still on my TODO list though. When this is implemented, this issue should be mitigated.
Perhaps unrelated to this issue, but you can enable log_level: debug
to get a bit more information about what the add-on is doing.
from home-assistant-addons.
No problem. I will wait.
My workaround for now is to disable the "start on boot" option and start the addon manually.
from home-assistant-addons.
@ElVit The PR automatically closed this issue. But I would really like it if you can test it and report back. I think the aforementioned PR solves this issue btw. If it doesn't I will of course re-open this issue.
Basically I've added a check to test whether or not Bitwarden returns at least a single secret. Also I've changed the boot order so that this add-on will start after Home Assistant. That would probably also help a bit.
from home-assistant-addons.
@alex3305
Thank you for the new update.
Now it's working correct 🤩.
There are only two things which I found that may be improved:
- The logs showing
[22:43:57] INFO: Bitwarden login succesful!
even if there is an error in the config. - The option
secret_file
isn't working for me. If I writesecret_file: secrets-test.yaml
the addon is still writing insidesecrets.yaml
.
from home-assistant-addons.
Related Issues (20)
- Configuration parameter secret_file is not working HOT 3
- Addon fails to start with option access_logs: true HOT 1
- Question for Rclone HOT 4
- sync Google photos HOT 1
- Reload supervsior after secrets update HOT 4
- Upgrade Traefik HOT 2
- ModSecurity plugin HOT 1
- Rclone Media Sources instead backups HOT 1
- proxy pass HOT 2
- Make Rclone addon local folder configurable HOT 5
- What about Bitwarden secrets for ESPHome? HOT 2
- Addon stops with a strange error on config files ! HOT 2
- Traefik stopped working after updating to v4.1.2 HOT 2
- Traefik addon will not install on supervised HA (ARM architecture) HOT 11
- File provider at /config/traefik/ is no longer accessible HOT 1
- Default Bitwarden server is not working anymore HOT 4
- Documentation: Add example which uses custom fields
- Migrate Bitwarden CLI to new repo
- Traefik: different port for specific sub domain HOT 1
- Access log location HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistant-addons.