Skip to content

Restricting iot connect policy by combination of environment name and thing name #339

Answered by alonsnir
alonsnir asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, the answer was always there in the documentation (and even at the very top of the page)

When you're replacing thing names with thing policy variables, the value of clientId in the MQTT connect message or the TLS connection must exactly match the thing name.

So I cannot tight everything to the $ThingName and yet concat environment name into the clientid.

I guess what I will do is generate a policy for each certificate/thing and then instead of variables use static values (which are known at the time of creating and therefor will fit for the thing)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jmklix
Comment options

Answer selected by jmklix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants