Re: [Sedate] Paul Wouters' No Objection on draft-ietf-sedate-datetime-extended-10: (with COMMENT)

Philip Chimento <pchimento@igalia.com> Wed, 18 October 2023 19:04 UTC

Return-Path: <pchimento@igalia.com>
X-Original-To: sedate@ietfa.amsl.com
Delivered-To: sedate@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9222FC14CEFC for <sedate@ietfa.amsl.com>; Wed, 18 Oct 2023 12:04:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.106
X-Spam-Level:
X-Spam-Status: No, score=-7.106 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, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=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 (2048-bit key) header.d=igalia.com
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 pTmGxETG6Nuu for <sedate@ietfa.amsl.com>; Wed, 18 Oct 2023 12:04:37 -0700 (PDT)
Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BD7C1C15153F for <sedate@ietf.org>; Wed, 18 Oct 2023 12:04:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:To:From:Date:MIME-Version:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=MXI+Typ4L9N3L3aC1gjUyjQz+jic11yIx3GUa/cb3IQ=; b=Pvflj0MAE560sjejLbzsoQoQtl ifjShuAB5sv6LuN9oFlKpqm0h3+STgu3iHEFAK9bZipHjRKLPi7N2didhrC89W2lDeb2LE7io62bs Km6wQuJwLXNdVChiv5jtHWRpiNeHm9/80pjeVs0vz+WVXsKiW1XqfJsCVfWfRCMcWYiwZexvI5G3o 5RzQgoUtNtpYEmCO7vUXYhdmwzFalMCYOeTEmKUJC9W1CCCV951emymMer1gcaCfqpcyry7OhExad oROWgJl5NDNJOThcJ39mCI8WQFz3hOz9+QR7YxY3t+HodKNDav4Dik0T3UmonbStfBPPxj+Hr+gAo 1zXHCDwA==;
Received: from maestria.local.igalia.com ([192.168.10.14] helo=mail.igalia.com) by fanzine2.igalia.com with esmtps (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1qtBpn-001uiE-Or for <sedate@ietf.org>; Wed, 18 Oct 2023 21:03:59 +0200
Received: from webmail.service.igalia.com ([192.168.21.45]) by mail.igalia.com with esmtp (Exim) id 1qtBpl-00BAIp-6I for <sedate@ietf.org>; Wed, 18 Oct 2023 21:03:59 +0200
Received: from localhost ([127.0.0.1] helo=webmail.igalia.com) by webmail.service.igalia.com with esmtp (Exim 4.96) (envelope-from <pchimento@igalia.com>) id 1qtBpk-008U0o-3D for sedate@ietf.org; Wed, 18 Oct 2023 21:03:57 +0200
MIME-Version: 1.0
Date: Wed, 18 Oct 2023 12:03:56 -0700
From: Philip Chimento <pchimento@igalia.com>
To: sedate@ietf.org
In-Reply-To: <5B77D7EC-4B7C-431C-8726-009D76F6504C@tzi.org>
References: <169764691968.37776.6654166361859623215@ietfa.amsl.com> <5B77D7EC-4B7C-431C-8726-009D76F6504C@tzi.org>
Message-ID: <fb45a5c564e5453d4665245bc17c0e50@igalia.com>
X-Sender: pchimento@igalia.com
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/sedate/wSBVDWiZOD45Q_XoZfnz36AuCeQ>
Subject: Re: [Sedate] Paul Wouters' No Objection on draft-ietf-sedate-datetime-extended-10: (with COMMENT)
X-BeenThere: sedate@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Serialising Extended Data About Times and Events <sedate.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sedate>, <mailto:sedate-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sedate/>
List-Post: <mailto:sedate@ietf.org>
List-Help: <mailto:sedate-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sedate>, <mailto:sedate-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Oct 2023 19:04:41 -0000

On 2023-10-18 10:59, Carsten Bormann wrote:
>> So what about this example:
>> 
>>      2022-07-08T00:14:07+01:00[Australia/Brisbane]
> 
> This example cannot be evaluated with respect to the sentence:
> 
>    Where consistent interpretation
>    between multiple actors is required for security purposes (e.g.,
>    where timestamps are embedded as parameters in access control
>    information), only such extensions can be employed that have a
>    defined resolution of such inconsistent data.
> 
> … because we don’t know the context.
> If the context is “open the front door to Fort Knox at exactly this instant in time”, clearly we need a defined resolution for such an inconsistency.
> (If the context is “A photo from the sunset in Brisbane at this instant in time”, the photo may not require resolution for using it as wallpaper; it can still be useful with the unresolved inconsistency.  The context could also be used to identify the time offset and zone information as bogus, because there can’t have been a sunset at Brisbane local time 00:14 or UTC+1 time 00:14.)
> 
> Section 1.1 has this to offer:
>    While the information available in an IXDTF string is not generally
>    sufficient to resolve an inconsistency, it may be used to initiate
>    some out of band processing to obtain sufficient information for such
>    a resolution.
> 
> Initiation of Out-of-band processing would probably be the desirable outcome in the Fort-Knox example, while a red asterisk on some metadata display would be fine for most photo applications.

As an example of a 'defined resolution' (or well-understood and shared
resolution as Carsten has rephrased it), the ECMAScript Temporal API has
a parameter that allows the caller to specify which resolution they want
in case of this inconsistency.

Further reading: [1]

Examples:

openFortKnoxTime =
Temporal.ZonedDateTime.from('2022-07-08T00:14:07+01:00[Australia/Brisbane]',
{ offset: 'reject' });

This throws an exception so that the caller knows the input is invalid
and needs to be corrected out-of-band.

photoTime =
Temporal.ZonedDateTime.from('2022-07-08T00:14:07+01:00[Australia/Brisbane]',
{ offset: 'use' });

This corrects the time to 2022-07-08T09:14:07+10:00[Australia/Brisbane],
which is what the caller should do if they want to assume that the
2022-07-08T00:14:07+01:00 part indicates the correct instant in time but
the match between time zone annotation and UTC offset is wrong. (There's
also a different option for assuming that the wall-clock time is correct
but the UTC offset is incorrect.)

[1] https://tc39.es/proposal-temporal/docs/zoneddatetime.html#from

Best regards,
-- 
Philip Chimento
Igalia, S.L.