Skip to content

Conversation

@hatchmt
Copy link

@hatchmt hatchmt commented Oct 22, 2025

I ran into a few problems while trying to get the IPMI connector working with my servers:

  1. My servers use IPMIv2.0 authentication keys (referred to as Kg keys in the spec). The addon didn't have a field for that, so I had to try putting the hex key in the "extra params" field, which had a parsing error and would fail.

  2. The user I was connecting with only had OPERATOR privileges. The addon did not have a means of specifying privileges and defaulted to ADMINISTRATOR (which is typically what we do NOT want to use as it can write raw values to the BMC, giving bad actors the chance to seriously impact systems)

To address those issues (and a few others I found along the way), I have made the following changes to the UI component:

  • Add optional kg_key field with hex validation (even length, max 40 chars)
  • Add privilege_level dropdown (ADMINISTRATOR/OPERATOR/USER)
  • Pass kg_key and privilege_level to both addon and RMCP fallback
  • Add translations for new fields (en, de, fr, el)

I have these changes running in my personal Home Assistant environment. As far as I can tell, it's running without issues. Figured I'd send those changes back upstream in case anyone else is blocked by the same issues I was.

- Add optional kg_key field with hex validation (even length, max 40 chars)
- Add privilege_level dropdown (ADMINISTRATOR/OPERATOR/USER)
- Pass kg_key and privilege_level to both addon and RMCP fallback
- Add translations for new fields (en, de, fr, el)
- Fixes issue with mangled hex keys when using extra params field
@ateodorescu
Copy link
Owner

@hatchmt Thanks for your contribution! Do you have a screenshot for the configuration screen?

@hatchmt
Copy link
Author

hatchmt commented Oct 23, 2025

Yep, here ya go!

image

@hatchmt
Copy link
Author

hatchmt commented Oct 23, 2025

I don't think I made this clear in the description, but these changes are dependent on my PR in the server addon. ateodorescu/home-assistant-addons#20

@ateodorescu
Copy link
Owner

I don't think I made this clear in the description, but these changes are dependent on my PR in the server addon. ateodorescu/home-assistant-addons#20

Yes, I know. Did you test this with an upgrade from an existing installation? I don't really have the time to test all of this at the moment. I don't want to merge both PRs and then existing installations to fail when upgrading. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants