@@ -140,7 +140,7 @@ impl ProxySetupServer {
140140 let in_progress = self
141141 . current_session_token
142142 . lock ( )
143- . expect ( "Failed to acquire lock on current session token during proxy setup" )
143+ . expect ( "Failed to acquire lock on current session token during Edge setup" )
144144 . is_some ( ) ;
145145 debug ! ( "Setup in progress check: {}" , in_progress) ;
146146 in_progress
@@ -150,7 +150,7 @@ impl ProxySetupServer {
150150 debug ! ( "Terminating setup session" ) ;
151151 self . current_session_token
152152 . lock ( )
153- . expect ( "Failed to acquire lock on current session token during proxy setup" )
153+ . expect ( "Failed to acquire lock on current session token during Edge setup" )
154154 . take ( ) ;
155155 debug ! ( "Setup session terminated" ) ;
156156 }
@@ -159,7 +159,7 @@ impl ProxySetupServer {
159159 debug ! ( "Establishing new setup session with Core" ) ;
160160 self . current_session_token
161161 . lock ( )
162- . expect ( "Failed to acquire lock on current session token during proxy setup" )
162+ . expect ( "Failed to acquire lock on current session token during Edge setup" )
163163 . replace ( token) ;
164164 debug ! ( "Setup session established" ) ;
165165 }
@@ -169,7 +169,7 @@ impl ProxySetupServer {
169169 let is_valid = ( * self
170170 . current_session_token
171171 . lock ( )
172- . expect ( "Failed to acquire lock on current session token during proxy setup" ) )
172+ . expect ( "Failed to acquire lock on current session token during Edge setup" ) )
173173 . as_ref ( )
174174 . is_some_and ( |t| t == token) ;
175175 debug ! ( "Authorization validation result: {}" , is_valid) ;
@@ -205,7 +205,7 @@ impl proxy_setup_server::ProxySetup for ProxySetupServer {
205205 debug ! ( "Setup session authenticated successfully" ) ;
206206 self . initialize_setup_session ( token. to_string ( ) ) ;
207207
208- debug ! ( "Preparing to forward Proxy logs to Core in real-time" ) ;
208+ debug ! ( "Preparing to forward Edge logs to Core in real-time" ) ;
209209 let logs_rx = self . logs_rx . clone ( ) ;
210210
211211 let ( tx, rx) = mpsc:: unbounded_channel ( ) ;
@@ -239,7 +239,7 @@ impl proxy_setup_server::ProxySetup for ProxySetupServer {
239239 self_clone. clear_setup_session ( ) ;
240240 } ) ;
241241
242- debug ! ( "Log stream established, Core will now receive real-time Proxy logs" ) ;
242+ debug ! ( "Log stream established, Core will now receive real-time Edge logs" ) ;
243243 Ok ( Response :: new ( UnboundedReceiverStream :: new ( rx) ) )
244244 }
245245
@@ -290,7 +290,7 @@ impl proxy_setup_server::ProxySetup for ProxySetupServer {
290290 & subject_alt_names,
291291 vec ! [
292292 // TODO: Change it?
293- ( defguard_certs:: DnType :: CommonName , "Defguard Proxy " ) ,
293+ ( defguard_certs:: DnType :: CommonName , "Defguard Edge " ) ,
294294 ( defguard_certs:: DnType :: OrganizationName , "Defguard" ) ,
295295 ] ,
296296 ) {
@@ -305,7 +305,7 @@ impl proxy_setup_server::ProxySetup for ProxySetupServer {
305305
306306 self . key_pair
307307 . lock ( )
308- . expect ( "Failed to acquire lock on key pair during proxy setup when trying to store generated key pair" )
308+ . expect ( "Failed to acquire lock on key pair during Edge setup when trying to store generated key pair" )
309309 . replace ( key_pair) ;
310310
311311 debug ! ( "Encoding Certificate Signing Request for transmission" ) ;
@@ -362,17 +362,17 @@ impl proxy_setup_server::ProxySetup for ProxySetupServer {
362362 let key_pair = self
363363 . key_pair
364364 . lock ( )
365- . expect ( "Failed to acquire lock on key pair during proxy setup when trying to receive certificate" )
365+ . expect ( "Failed to acquire lock on key pair during Edge setup when trying to receive certificate" )
366366 . take ( ) ;
367367 if let Some ( kp) = key_pair {
368368 kp
369369 } else {
370370 error ! (
371- "Key pair not found during Proxy setup. Key pair generation step might have failed."
371+ "Key pair not found during Edge setup. Key pair generation step might have failed."
372372 ) ;
373373 self . clear_setup_session ( ) ;
374374 return Err ( Status :: internal (
375- "Key pair not found during Proxy setup. Key pair generation step might have failed." ,
375+ "Key pair not found during Edge setup. Key pair generation step might have failed." ,
376376 ) ) ;
377377 }
378378 } ;
@@ -384,7 +384,7 @@ impl proxy_setup_server::ProxySetup for ProxySetupServer {
384384
385385 debug ! ( "Passing configuration to gRPC server for finalization" ) ;
386386 match SETUP_CHANNEL . 0 . lock ( ) . await . send ( Some ( configuration) ) . await {
387- Ok ( ( ) ) => info ! ( "Proxy configuration passed to gRPC server successfully" ) ,
387+ Ok ( ( ) ) => info ! ( "Edge configuration passed to gRPC server successfully" ) ,
388388 Err ( err) => {
389389 error ! ( "Failed to send configuration to gRPC server: {err}" ) ;
390390 self . clear_setup_session ( ) ;
0 commit comments