Re: [OAUTH-WG] RFC 8705 (oauth-mtls): RS error code for missing client certificate

Dmitry Telegin <dmitryt@backbase.com> Wed, 10 November 2021 15:18 UTC

Return-Path: <dmitryt@backbase.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BBDD83A10ED for <oauth@ietfa.amsl.com>; Wed, 10 Nov 2021 07:18:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=backbase.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 7qeLzdB_y6BH for <oauth@ietfa.amsl.com>; Wed, 10 Nov 2021 07:18:20 -0800 (PST)
Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (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 786613A12B5 for <oauth@ietf.org>; Wed, 10 Nov 2021 07:17:51 -0800 (PST)
Received: by mail-lj1-x232.google.com with SMTP id h11so6008504ljk.1 for <oauth@ietf.org>; Wed, 10 Nov 2021 07:17:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=backbase.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=H0e8Y9v9mXOIRAkjG9DxjPzO/2INlwKENOi/9arT6O8=; b=D6rH74xbh5CC5xR/6gGnCZieGMdgnzfZNWXIpYPd7zH2NwxlhloH0idjHn4Qs3EVYu 1xP45B7U6Yzad3hrvXNJyX/WvzcZutv2Z7KDCvszPAyXOhGC8tGioumoTr3t4ZvATOGw 38eulc2k1R04JF2QtfJXHML9tWyp3fd9MLpMcUlTbAuBf4JQ8tWmntINRE5yu5uxHDOV gPxW9aaka6Zi1onGWcL8OTsojU+uqmXOXSrxuNNbk2ZAxSamAWh7i0oWZeEoAxXNUXU5 k0kiGnTc/0O3jptJ3Z/jWsRVSj1Td1Pf6zp5yu/2GsepQrWoQCie2BNzhQ5jNzGe/v+h 3aYw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=H0e8Y9v9mXOIRAkjG9DxjPzO/2INlwKENOi/9arT6O8=; b=G5TToEmChKQ1ZnT9cAC+dabAYJNenzvnsKnGLaOQ5wVzGc7KEcYDm7xwuFW2LCmh8X H03hjjbhuleuYEj82yMsuAh1Uovb+Z1VyU5F/s4IA6S/T6fsRjDKVHrp5YaRLG1vxdaN xktszPataWajhiK93w91PGtL+oof026UOcC4rZSXZSCV+23+Fyl8/sQ2w5PzUvABYtMu M2j7yMV0VByhF74Mx3IDtwisikWBx8a3/83WOKt1JVEwhigVOmN6E/wSXHF2qlyd+ZsH TdleiIaWz7iqj38nV4lCXQn2o+nXHptsJuWvJTF4+ROn1URU+F6QBMKI1i9uVxD0FO62 l6mg==
X-Gm-Message-State: AOAM5332CsqiNBSaI0pZCpPES48vRoV0rD+6t1hQYUynXczu5Khcfg8b 3rLmM9SfN2XJOI9FFl0nbaZCwWESXDxd3c81PU0z5dyFtfQ8kg==
X-Google-Smtp-Source: ABdhPJxuqvZCIjHo3RTWULmusHaHJBx6dbgU0vTJFp0h0muSyEd2uyIRngy5hYOaF/qck+mEw1bWshrqIBJB/AfYLIA=
X-Received: by 2002:a05:651c:98c:: with SMTP id b12mr128434ljq.481.1636557468719; Wed, 10 Nov 2021 07:17:48 -0800 (PST)
MIME-Version: 1.0
References: <CAOtx8Dk5f9dLT=mF4_G3ytTm4BzjYxohHVbc27R0nikiQxsdsA@mail.gmail.com>
In-Reply-To: <CAOtx8Dk5f9dLT=mF4_G3ytTm4BzjYxohHVbc27R0nikiQxsdsA@mail.gmail.com>
From: Dmitry Telegin <dmitryt@backbase.com>
Date: Wed, 10 Nov 2021 18:17:38 +0300
Message-ID: <CAOtx8D=6yEjTEVkx7LnaWk_FYrW80+KxhskGjreQs8X0dnVsnA@mail.gmail.com>
To: oauth <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000093f41105d070baa7"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/TpU6Sz8DRE4chypS1PY5TdKsKAM>
Subject: Re: [OAUTH-WG] RFC 8705 (oauth-mtls): RS error code for missing client certificate
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/oauth/>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Nov 2021 15:18:25 -0000

Any updates on this one? The missing certificate case looks more like
"invalid_request" to me:

invalid_request
>          The request is missing a required parameter, includes an
>          unsupported parameter or parameter value, repeats the same
>          parameter, uses more than one method for including an access
>          token, or is otherwise malformed.  The resource server SHOULD
>          respond with the HTTP 400 (Bad Request) status code.
>
>
On Fri, Sep 24, 2021 at 2:23 AM Dmitry Telegin <dmitryt@backbase.com> wrote:

> From the document:
>
>    The protected resource MUST obtain, from its TLS implementation
>>    layer, the client certificate used for mutual TLS and MUST verify
>>    that the certificate matches the certificate associated with the
>>    access token.  If they do not match, the resource access attempt MUST
>>    be rejected with an error, per [RFC6750 <https://datatracker.ietf.org/doc/html/rfc6750>], using an HTTP 401 status
>>    code and the "invalid_token" error code.
>>
>>
> Should the same error code be used in the case when the resource failed to
> obtain a certificate from the TLS layer? This could happen, for example, if
> the TLS stack has been misconfigured (e.g. verify-client="REQUESTED"
> instead of "REQUIRED" for Undertow), and the user agent provided no
> certificate.
>
> Thanks,
> Dmitry
>
>