Similar to the ldpd.conf change don't use a macro of the secret.
authorclaudio <claudio@openbsd.org>
Tue, 7 Aug 2018 07:06:20 +0000 (07:06 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 7 Aug 2018 07:06:20 +0000 (07:06 +0000)
Macros get sometimes logged so we should not encurage to use them for
sensitive data.

etc/examples/ospfd.conf

index 70bdfbb..4367097 100644 (file)
@@ -1,16 +1,16 @@
-# $OpenBSD: ospfd.conf,v 1.1 2014/07/11 16:36:35 deraadt Exp $
+# $OpenBSD: ospfd.conf,v 1.2 2018/08/07 07:06:20 claudio Exp $
 
 # macros
-password="secret"
+id="192.0.2.5"
 
 # global configuration
-# router-id 10.0.0.1
+# router-id $id
 # fib-update no
 # stub router no
 # spf-delay 1
 # spf-holdtime 5
 
-# auth-key $password
+# auth-key secret
 # auth-type simple
 # hello-interval 10
 # metric 10
@@ -25,7 +25,7 @@ password="secret"
 area 0.0.0.5 {
        interface em0 {
                auth-type simple
-               auth-key $password
+               auth-key secret
        }
 
        interface em1 {