Skip to content

Support hostnames in project spc#1243

Closed
noursaidi wants to merge 0 commit intofaucetsdn:masterfrom
noursaidi:master
Closed

Support hostnames in project spc#1243
noursaidi wants to merge 0 commit intofaucetsdn:masterfrom
noursaidi:master

Conversation

@noursaidi
Copy link
Copy Markdown
Collaborator

No description provided.

@noursaidi noursaidi requested a review from grafnu March 11, 2026 12:35
Copy link
Copy Markdown
Collaborator

@grafnu grafnu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there some change you can make in tests/ (tests/sites/?) that exemplifies this change? It looks like you'l allowing a . in a name... that's somewhat dangerous. I'd like to fully understand exactly where that ends up (and why maybe) -- and the best way to do that is with an example!

@grafnu grafnu requested a review from khyatimahendru March 12, 2026 12:09
@noursaidi
Copy link
Copy Markdown
Collaborator Author

This was so I could connect to a remote MQTT endpoint e.g. //mqtt/example.com. One of registrar or pubber required this change (I can't remember which right now) to work (meaning the other worked without it).

I do have this error from validator: Error validating attributes: /projectId: ECMA 262 regex "^([.a-z]+:)?[a-z][-a-z0-9]*[a-z0-9]$" does not match input string "mqtt-dev.bos.goog"

So it looks like there might be more to it than just this change. Will come back with fixes and test cases.

@jainrocks
Copy link
Copy Markdown
Collaborator

@noursaidi At present, when using MQTT as the iotProvider, support is limited to localhost as documented in the project_spec.md.
To address this, we likely need to change the envelope schema.
Regarding the implementation, instead of continuing to use project_id as the hostname (per MqttPublisher.java), should we introduce a hostname query parameter? This would allow a specific hostname to be used when provided, while still defaulting to project_id (localhost) if it is absent.

@grafnu
Copy link
Copy Markdown
Collaborator

grafnu commented Mar 13, 2026 via email

@noursaidi
Copy link
Copy Markdown
Collaborator Author

This is is specifically for invoking from the command line e.g. bin/registrar //mqtt/example.mosquitto.com which is not permitted. The tools then build the configuration object.

What is the problem with full stops in this scenario?

This is no longer a blocker for me because it was primarily for testing and I've progressed beyond it, but I do think it's necessary to allow a non localhost MQTT broker

@grafnu
Copy link
Copy Markdown
Collaborator

grafnu commented Apr 5, 2026 via email

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.

3 participants