|
+ # Look for trust failure + if p4.messages && + p4.messages.any? { |m| m.msgid == 3120 } && + HWSSettings.system.ENABLE_AUTOMATIC_TRUST == true + p4.run_trust('-y', '-f')
gnicol (on auth.rb, line 109) commented
9 years ago
You very much shouldn't include -f here. A number of our systems have auto-trust behaviour (Swarm and GitSwarm for example) and it seems to be received well. The logic however is always to trust if you've never seen it before (trust -y) its quite intentionally not to always trust all the things (trust -y -f). The latter scenario basically invalidates the MITM protection normally provided by SSL p4 connections and is not a good idea. |
Reply ·0 | |
|
|
|
+ # Look for trust failure + if p4.messages && + p4.messages.any? { |m| m.msgid == 3120 } && + HWSSettings.system.ENABLE_AUTOMATIC_TRUST == true + p4.run_trust('-y', '-f')
tjuricek (on auth.rb, line 109) commented
9 years ago
Ah ha, I was wondering about that. Easy enough to change. |
Reply ·0 | |
|
|
|
+ # Look for trust failure + if p4.messages && + p4.messages.any? { |m| m.msgid == 3120 } && + HWSSettings.system.ENABLE_AUTOMATIC_TRUST == true + p4.run_trust('-y', '-f')
gnicol (on auth.rb, line 109) commented
9 years ago
Cool; thanks for being receptive to the feedback! |
Reply ·0 | |
|
|
|
+ # Look for trust failure + if p4.messages && + p4.messages.any? { |m| m.msgid == 3120 } && + HWSSettings.system.ENABLE_AUTOMATIC_TRUST == true + p4.run_trust('-y', '-f')
tjuricek (on auth.rb, line 109) commented
9 years ago
Thanks for reviewing things without me asking :) |
Reply ·0 | |
|