Re: [radext] Watchdog behaviour (was: Confirmation of discussions on RADIUS/(D)TLS at IETF117)

Jan-Frederik Rieckers <rieckers@dfn.de> Wed, 02 August 2023 17:29 UTC

Return-Path: <rieckers@dfn.de>
X-Original-To: radext@ietfa.amsl.com
Delivered-To: radext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 39BD6C15107C for <radext@ietfa.amsl.com>; Wed, 2 Aug 2023 10:29:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.198
X-Spam-Level:
X-Spam-Status: No, score=-7.198 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.091, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=dfn.de
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00HDkhHjr_TX for <radext@ietfa.amsl.com>; Wed, 2 Aug 2023 10:29:48 -0700 (PDT)
Received: from c1004.mx.srv.dfn.de (c1004.mx.srv.dfn.de [IPv6:2001:638:d:c303:acdc:1979:2:58]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BDD1DC14F5E0 for <radext@ietf.org>; Wed, 2 Aug 2023 10:29:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dfn.de; h= content-type:content-type:in-reply-to:organization:from:from :references:content-language:subject:subject:user-agent :mime-version:date:date:message-id:received; s=s1; t=1690997383; x=1692811784; bh=n31dHaxwGAW+JnnNxI3HdCpl5TcpVf/P9UjsHwZ4YHQ=; b= STAwF72bZB+S1bHdaq1QQJwaipqgNjApRz/xVvMKFTSoeBwodZFWmCKJ1sghrjrV pSdbzdNQusye/ex3YpWU9dWV8mFunP2UnNuazR/xPb0LSTIBl6c9D2y2pKtigK5g cucEm/pjjsq88C9/v28zUAOYrYRnMgVYpCCzkqNu4Lg=
Received: from mail.dfn.de (mail.dfn.de [194.95.245.150]) by c1004.mx.srv.dfn.de (Postfix) with ESMTPS id 375001200CE for <radext@ietf.org>; Wed, 2 Aug 2023 19:29:43 +0200 (CEST)
Received: from [IPV6:2001:638:d:1010::1000] (unknown [IPv6:2001:638:d:1010::1000]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mspool2.in.dfn.de (Postfix) with ESMTPSA id E9C7C41C for <radext@ietf.org>; Wed, 2 Aug 2023 19:29:42 +0200 (CEST)
Message-ID: <ee50a5e6-8bee-09d4-15fa-cfce02a9e4bb@dfn.de>
Date: Wed, 02 Aug 2023 19:29:41 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0
Content-Language: en-US
To: radext@ietf.org
References: <a401c4c2-3ddd-3d93-3fbc-b3fc02a1d26c@dfn.de> <CB09256A-196E-451F-B438-A1D0F392B9A1@deployingradius.com>
From: Jan-Frederik Rieckers <rieckers@dfn.de>
Organization: DFN e.V.
In-Reply-To: <CB09256A-196E-451F-B438-A1D0F392B9A1@deployingradius.com>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-512"; boundary="------------ms070103030705000106070501"
Archived-At: <https://mailarchive.ietf.org/arch/msg/radext/bIn7VRHVB-Q1i3_V8C8o6a2EChQ>
Subject: Re: [radext] Watchdog behaviour (was: Confirmation of discussions on RADIUS/(D)TLS at IETF117)
X-BeenThere: radext@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: RADIUS EXTensions working group discussion list <radext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/radext>, <mailto:radext-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/radext/>
List-Post: <mailto:radext@ietf.org>
List-Help: <mailto:radext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/radext>, <mailto:radext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 02 Aug 2023 17:29:52 -0000

On 02.08.23 17:52, Alan DeKok wrote:
>> **Watchdogs**
>>
>> (See PR from Arran)
>> The current spec is ambiguous about the usage of watchdog mechanisms.
>>
>> The rough consensus was to use the same watchdog mechanism for TLS and DTLS, namely Status-Server.
>    Yes.  The RFC3539 behavior should be mandated here.

Regarding the watchdog algorithm a question just popped up in my head 
and from the recording of the session I'm not exactly sure what the best 
course of action would be or what the opinion of people in the room is/was.

Radsecproxy offers two different ways of doing status server. Either 
"on", which sends a packet each $timeinterval (I think it's 30 or 60 
seconds, would need to confirm) or "minimal" which only sends status 
server requests if replies to requests are outstanding.

 From my short skimming of RFC3539, only the latter is in compliance to 
the spec.


Especially for debugging purposes and easy "grep" commands, it is quite 
helpful that you have a fairly regular status server log entry for each 
peer, because this way you don't have to analyze a lot of log lines, you 
just can have a nagios check to see if this specific well-structured 
line appeared in the logs during the last 2 minutes. If not, then 
something's wrong.


In my opinion, the additional traffic of sending a status server request 
periodically instead of waiting until it is actually needed is 
negligible and since the ID 0 is reserved for it anyhow, it should not 
have further effect that an additional few bytes every few seconds.


The relevant question here is: Do we add some additional text to allow 
deviating from the watchdog behavior described in RFC3539? Do we 
explicitly forbid it?

Or am I missing something and the habit of sending this periodically is 
actually more harmful than I can see?

Cheers,
Janfred

-- 
Herr Jan-Frederik Rieckers
Security, Trust & Identity Services

E-Mail: rieckers@dfn.de | Fon: +49 30884299-339 | Fax: +49 30884299-370
Pronomen: er/sein | Pronouns: he/him
__________________________________________________________________________________

DFN - Deutsches Forschungsnetz | German National Research and Education 
Network
Verein zur Förderung eines Deutschen Forschungsnetzes e.V.
Alexanderplatz 1 | 10178 Berlin
www.dfn.de

Vorstand: Prof. Dr. Odej Kao (Vorsitzender) | Dr. Rainer Bockholt | 
Christian Zens
Geschäftsführung: Dr. Christian Grimm | Jochem Pattloch
VR AG Charlottenburg 7729B | USt.-ID. DE 1366/23822