Re: [Uta] MTA-STS & max-age

Daniel Margolis <dmargolis@google.com> Mon, 26 August 2019 16:00 UTC

Return-Path: <dmargolis@google.com>
X-Original-To: uta@ietfa.amsl.com
Delivered-To: uta@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 11DF21208DD for <uta@ietfa.amsl.com>; Mon, 26 Aug 2019 09:00:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.5
X-Spam-Level:
X-Spam-Status: No, score=-17.5 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DqiOxoH2yp_T for <uta@ietfa.amsl.com>; Mon, 26 Aug 2019 09:00:23 -0700 (PDT)
Received: from mail-vs1-xe34.google.com (mail-vs1-xe34.google.com [IPv6:2607:f8b0:4864:20::e34]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AAC3E1208D6 for <uta@ietf.org>; Mon, 26 Aug 2019 09:00:23 -0700 (PDT)
Received: by mail-vs1-xe34.google.com with SMTP id m62so11243869vsc.8 for <uta@ietf.org>; Mon, 26 Aug 2019 09:00:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=t1jNJm/6Fv0+P5nnAMj9+B9xgXzd+FK5kYaCe1a8ILU=; b=UwDIwd9Yr3c1RvF937znjg0PYBT7o1m4lN72ieE+gvvk/BVdD4PHdBPtD32qTg/Sm+ 44fZL35FN9pNzdPxJ+s+/QPpE8uTzP66zsATPvpsADKqeBbPTrWLES1NnpUsxIvkf9hu 8CKkwvaBR+hZjKtxBXAIF7Gz/Gs9TlbRL29y7kdy4sSzqw8VB+kfDkm8mSPQWZv3A83A Yn7KM46bfV0n519AMacVwq/t0pW+Df96TTSWGFYYFiB6dDSNG/xUw7MTQDj04ROilsc7 Yeast4VNdt5pGZz4nzv/TTe7layKaT9LunF4r28KKyZLgr8086g/YfVdR3pHPS5LoVLR XYIg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=t1jNJm/6Fv0+P5nnAMj9+B9xgXzd+FK5kYaCe1a8ILU=; b=c+cLaoZeeLgSqEjOn6A4vbrcZVYNYh9qe+5Nty0VMz5SKNR/5rS1OKHH5qPXtPQYpk ILhKzPFOt+OBYlEFV1HrvUaJ0WLNShtaguqR9BgVFs8hgLkS2okLGOZxsX7NdwQQnIZJ UjMkbbuOBJza9opTyxNKXBN+E+zvHHitjtkdyOhwT6HCHdQIc8s0f+dZb/BfTwtl/t2E mkVJqSgGcXceJJyZH/znnWR1gz24j8nhU7+6skt1Xhr5wp9Zh8BbTBvASo96nllFMUrU z/v33rTYING89iR4RZC2twfw79dD/SVd9gnbzc8y1lqXCTAx4BIWkkeZpmhs6+OLr1b5 Dszw==
X-Gm-Message-State: APjAAAVqaIwzaApDYgOM6Q5DC/4l88EnwwJS7pALhhJpHeE/SCoCpyUv /87tFd16vkSsqsSFnZJ6K+CdueTgZ6wHuKnIxm2tzCs9V0o=
X-Google-Smtp-Source: APXvYqy8eAVnXiWk1qm1+3pZ3FX9UFYXFfODoO9dVwycBhm1KQHviPStyaN7Db1HGWTyki+lNH1WnUYBGyTjCpkBvjU=
X-Received: by 2002:a67:f50a:: with SMTP id u10mr10982488vsn.216.1566835222201; Mon, 26 Aug 2019 09:00:22 -0700 (PDT)
MIME-Version: 1.0
References: <ee1ab2dc-b938-3298-e013-3525b5628f3c@andreasschulze.de>
In-Reply-To: <ee1ab2dc-b938-3298-e013-3525b5628f3c@andreasschulze.de>
From: Daniel Margolis <dmargolis@google.com>
Date: Mon, 26 Aug 2019 18:00:07 +0200
Message-ID: <CANtKdUed0bZDNScnxu8sA0hXGrUUES=dixi56ktNXNBu_ArHkQ@mail.gmail.com>
To: "A. Schulze" <sca@andreasschulze.de>
Cc: uta@ietf.org
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="000000000000e26aa3059107408a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/uta/rn2o-FmVPdRkEw3MHXwj4QHKUlY>
Subject: Re: [Uta] MTA-STS & max-age
X-BeenThere: uta@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: UTA working group mailing list <uta.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/uta>, <mailto:uta-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/uta/>
List-Post: <mailto:uta@ietf.org>
List-Help: <mailto:uta-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/uta>, <mailto:uta-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 26 Aug 2019 16:00:27 -0000

I think it's reasonable for someone just deploying a policy to set a
max_age that's very small--like, a day or less. (They of course should also
use report-only mode to try to ensure things work during launch, but this
would be an additional safety measure.)

A max_age above the max results in a non-compliant policy. I guess senders
should probably treat that like any other syntactically invalid policy (and
not honor it). Trying to guess what the implementor meant seems like a bad
idea in the long run.

I'm not sure if that's useful feedback or not.

On Thu, Aug 15, 2019 at 11:04 PM A. Schulze <sca@andreasschulze.de> wrote:

> Hello,
>
> reading RFC 8461 again and again I find not answer on "is there is a
> minimum value?"
>
> https://tools.ietf.org/html/rfc8461#section-3.2 say
>
>       "max_age": Max lifetime of the policy (plaintext non-negative
>       integer seconds, maximum value of 31557600).  Well-behaved clients
>       SHOULD cache a policy for up to this value from the last policy
>       fetch time. To mitigate the risks of attacks at policy refresh
>       time, it is expected that this value typically be in the range of
>       weeks or greater.
>
> The RFC define a maximum but only an expectation for the minimum :-/
>
> There are not as many implementations in use. What does implementers think
> on this?
> How do you handle max_age > 31557600 and do you require any minimum value
> for max_age?
>
> postfix-mta-sts-resolver for example require only a value >= 0 .
>
> https://github.com/Snawoot/postfix-mta-sts-resolver/blob/c7b3d179fb10277f9bcdc77e7cd91627c879a48b/postfix_mta_sts_resolver/resolver.py#L144
>
> Andreas
>
> _______________________________________________
> Uta mailing list
> Uta@ietf.org
> https://www.ietf.org/mailman/listinfo/uta
>


-- 
How's my emailing? http://go/dan-email-slo