You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [Attributes for authorization](./howto-configure-authorization.md)
121
121
122
-
For example, start with a `clients.toml` with identities and PBKDF2 encoded passwords.
122
+
For example, start with a `passwords.toml` with identities and PBKDF2 encoded passwords.
123
123
124
124
```toml
125
125
# Credential #1
@@ -143,27 +143,13 @@ floor = "floor2"
143
143
site = "site1"
144
144
```
145
145
146
-
To encode the password using PBKDF2, use the [Azure IoT Operations CLI extension](/cli/azure/iot/ops) that includes the `az iot ops mq get-password-hash` command. It generates a PBKDF2 password hash from a password phrase using the SHA-512 algorithm and a 128-bit randomized salt.
147
-
148
-
```bash
149
-
az iot ops mq get-password-hash --phrase TestPassword
150
-
```
151
-
152
-
The output shows the PBKDF2 password hash to copy:
Include a reference to the secret in the *BrokerAuthentication* custom resource
152
+
Include a reference to the secret in the *BrokerAuthentication* custom resource.
167
153
168
154
```yaml
169
155
spec:
@@ -172,7 +158,19 @@ spec:
172
158
secretName: passwords-db
173
159
```
174
160
175
-
It might take a few minutes for the changes to take effect.
161
+
To encode the password using PBKDF2, use the [Azure IoT Operations CLI extension](/cli/azure/iot/ops) that includes the `az iot ops mq get-password-hash` command. It generates a PBKDF2 password hash from a password phrase using the SHA-512 algorithm and a 128-bit randomized salt.
162
+
163
+
```bash
164
+
az iot ops mq get-password-hash --phrase TestPassword
165
+
```
166
+
167
+
The output shows the PBKDF2 password hash to copy:
You can use Azure Key Vault to manage secrets for Azure IoT MQ instead of Kubernetes secrets. To learn more, see [Manage secrets using Azure Key Vault or Kubernetes secrets](../manage-mqtt-connectivity/howto-manage-secrets.md).
0 commit comments