Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAC address requirements #60

Open
runningman84 opened this issue Jan 21, 2025 · 3 comments
Open

MAC address requirements #60

runningman84 opened this issue Jan 21, 2025 · 3 comments
Labels
question Further information is requested

Comments

@runningman84
Copy link

Is the MAC address an important feature for the hue app or Alexa? I think of running bifrost in a k8s cluster where each node would have a different MAC address.

@chrivers
Copy link
Owner

chrivers commented Feb 4, 2025

Hey, sorry for the late reply.

The answer is: It's hard to say with certainty.

Here's what I can tell you:

  1. The mac address is used by Bifrost:
  2. .. for generating the Bridge ID, and
  3. .. for generating the SSL certificate (cert.pem)

Also, if the certificate is regenerated (if Bifrost is reinstalled, or cert.pem is deleted), then most clients (e.g. the Hue app) will fail to connect, and need to be paired again.

So it might be super important, or it might be okay to have it be slightly off. It really depends on the total behavior of all possible clients you connect to Bifrost.

That's why it's hard to say :-)

Now, I don't know k8s in detail, but isn't there some way to bind a specific IP to the pod, or whatever it's called?

@chrivers chrivers added the question Further information is requested label Feb 4, 2025
@runningman84
Copy link
Author

runningman84 commented Feb 4, 2025

It is possible to bind a pod to a specific node and use the hosts network namespace which would result in static ip / mac address. Normally there would be some kind of overlay network and a pod could run on any node and the ip / mac might change after a pod recreation.

@chrivers
Copy link
Owner

chrivers commented Feb 4, 2025

"bind a pod to a specific pod"

I think you accidentally a word in that sentence? 😏

Well, to answer your original question:

"Is the MAC address an important feature for the hue app or Alexa?"

The answer is "yes".

Regarding the derived question:

"Will Bifrost work, if I keep changing the IP and/or MAC address?"

The answer is "hard to say".

By all means, feel free to try it out, and please let us know how it goes :)

This is unfortunately an area I have no influence over, since I cannot change the features or design of the Hue protocol, while also emulating it faithfully. But I'd be interested to hear what happens if you try that 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants