Skip to content

Commit 793c72d

Browse files
committed
fix: skip chown for cert and key when using Basic Auth
Signed-off-by: Krzysztof Piotrowski <krzysztof.piotrowski@inetum.com>
1 parent e1f7791 commit 793c72d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/core/tedge/src/cli/connect/command.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,11 @@ async fn new_bridge(
10221022
}
10231023

10241024
pub async fn chown_certificate_and_key(bridge_config: &BridgeConfig) {
1025+
// Skip chown when using Basic Auth
1026+
if bridge_config.auth_type == AuthType::Basic {
1027+
return;
1028+
}
1029+
10251030
let (user, group) = match bridge_config.bridge_location {
10261031
BridgeLocation::BuiltIn => ("tedge", "tedge"),
10271032
BridgeLocation::Mosquitto => (crate::BROKER_USER, crate::BROKER_GROUP),

0 commit comments

Comments
 (0)