Re: [OAUTH-WG] [UNVERIFIED SENDER] RE: Cryptographic hygiene and the limits of jwks_uri

"Manger, James" <James.H.Manger@team.telstra.com> Wed, 29 January 2020 06:50 UTC

Return-Path: <James.H.Manger@team.telstra.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 D59CF1201DB for <oauth@ietfa.amsl.com>; Tue, 28 Jan 2020 22:50:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.698
X-Spam-Level:
X-Spam-Status: No, score=-2.698 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=team.telstra.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 5Ozzl9Em22SE for <oauth@ietfa.amsl.com>; Tue, 28 Jan 2020 22:50:12 -0800 (PST)
Received: from ipxbvo.tcif.telstra.com.au (ipxbvo.tcif.telstra.com.au [203.35.135.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 54F3A120142 for <oauth@ietf.org>; Tue, 28 Jan 2020 22:50:10 -0800 (PST)
X-IronPort-AV: E=Sophos;i="5.70,376,1574082000"; d="scan'208";a="352997115"
X-Amp-Result: SKIPPED(no attachment in message)
Received: from unknown (HELO ipcbvi.tcif.telstra.com.au) ([10.97.217.204]) by ipobvi.tcif.telstra.com.au with ESMTP; 29 Jan 2020 17:50:07 +1100
Received: from wsapp6783.srv.dir.telstra.com ([10.75.131.38]) by ipcbvi.tcif.telstra.com.au with ESMTP; 29 Jan 2020 17:50:07 +1100
Received: from wsapp5584.srv.dir.telstra.com (10.75.131.20) by wsapp6783.srv.dir.telstra.com (10.75.131.38) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 29 Jan 2020 17:50:07 +1100
Received: from AUS01-ME1-obe.outbound.protection.outlook.com (10.172.229.125) by wsapp5584.srv.dir.telstra.com (10.75.131.20) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Wed, 29 Jan 2020 17:50:07 +1100
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N0pbhqqCBmJOLAYzE/FnzLm40s6hg0GqyHnzbW6/lb1O15tekOXoaszNop+uXiUj2wqsx2Obyiv8m0rmgzHEOFJkVdSyfxDCe/K5qsXmICVFwdfxR2M0m1RkveavD4384DjrWB30YqEXwoR0VWIhE1LAU1cdOczR97y0b04YR44Oee5iuGNeXBfH5cyWDbDSCXOLcH0IH/TemW4Mm9gDzPYcPd6qeDyJ9bxlXqQgm/9Bcl0q36Ub1ialz6Myx9n1unDa0B3SBt4CSnN6w+jOIaOzSfzpfwfRPwXXip5BEB9esBvWgBathNVWEDiItUDsvsegogHJ7i4hpfJBF2lGLA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cQu6COkz9SlDrVLE3T0YKOrejO5J6Oj6n+ZiDfrxD+A=; b=hts6IHZdL2+z2UDZqT2N8JeZmmRYAPxqMiF1xq3JV6QqE1OmvDH2sJqXsjvUhv7tAauK+b0gKq/+pKgvKzNqpekoDQcVTUSUXQmDF8WlL3UlgNzj38wymKlO9yJKPT4zxzF8fSJ9viaBRpS63Hv/LkTW5nRbT7Tw6sOPCRakDrrcb7Sq4Hu1Y15gRwGDkx96ubI1V6JTuwDUXnb0F3HC1DOCg3kCPmUfC9Dxr5mlHqissFIkQ9ssQ6F+uR0P0t5pcG3863dOgzOR6qeLfTCxZLG5EuWfwq7aPWPdK1SM23lTWWQ4gF7iTWlSuufsF/hurkM6Oi+NkMVmBgh/YIHOXg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=team.telstra.com; dmarc=pass action=none header.from=team.telstra.com; dkim=pass header.d=team.telstra.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=team.telstra.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cQu6COkz9SlDrVLE3T0YKOrejO5J6Oj6n+ZiDfrxD+A=; b=ICTwu9Xn/Y4ZwtIkKfz1vW8227VP9cpJY+RUBKXB4l3BDJa+kGjngHvNiHBWYpVzwOE6FgfSqACJYihphQwLrabM8M5fqHv4S5Mtk+sHINbXDR8aHm4+hH91mEBxdimoFhFHzdIGxmSFt8Yd9zLhy+Pyx6z6RJDlAEepRkXyXFk=
Received: from ME2PR01MB3524.ausprd01.prod.outlook.com (52.134.220.202) by ME2PR01MB3731.ausprd01.prod.outlook.com (52.134.222.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.21; Wed, 29 Jan 2020 06:50:06 +0000
Received: from ME2PR01MB3524.ausprd01.prod.outlook.com ([fe80::18ba:8260:29e9:e39]) by ME2PR01MB3524.ausprd01.prod.outlook.com ([fe80::18ba:8260:29e9:e39%7]) with mapi id 15.20.2665.026; Wed, 29 Jan 2020 06:50:06 +0000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: "oauth@ietf.org" <oauth@ietf.org>
Thread-Topic: [OAUTH-WG] [UNVERIFIED SENDER] RE: Cryptographic hygiene and the limits of jwks_uri
Thread-Index: AQHVx0xpDyUIRyiBT0+iDXwQ2PYV6KfkDNsAgAATmYCAAAYQgIAAEtYAgAAFt4CAAAt+gIAAdhWAgAS0pQCAAsepAIABT9yAgBPCbOA=
Date: Wed, 29 Jan 2020 06:50:06 +0000
Message-ID: <ME2PR01MB3524A19AEE8C383C1F8FEF6BE5050@ME2PR01MB3524.ausprd01.prod.outlook.com>
References: <CAD9ie-vRsL9ey2LDNoaWkapRUewS_c1S0r3QCcqJLmJ5KqKsGw@mail.gmail.com> <5F7A3816-AC9B-4BA2-9D91-CF89109B6788@forgerock.com> <CAD9ie-uebUCw5vxELPXQvQSY3Z3T2dNJGOpzEQ8cMgZcCOu+tg@mail.gmail.com> <79DF80DA-6682-4F25-A02A-B4137053FD8A@mit.edu> <6fab97c9-e9bb-58f8-ba14-22307e35bfcf@connect2id.com> <7AAAB265-6D3C-4FA6-81DD-E809AA49F8E3@mit.edu>
In-Reply-To: <7AAAB265-6D3C-4FA6-81DD-E809AA49F8E3@mit.edu>
Accept-Language: en-AU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
dlp-product: dlpe-windows
dlp-version: 11.1.100.23
dlp-reaction: no-action
authentication-results: spf=none (sender IP is ) smtp.mailfrom=James.H.Manger@team.telstra.com;
x-originating-ip: [203.35.9.18]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: e0694c58-50b5-4b95-7d14-08d7a487796f
x-ms-traffictypediagnostic: ME2PR01MB3731:
x-microsoft-antispam-prvs: <ME2PR01MB3731DAE793A108A351842B07E5050@ME2PR01MB3731.ausprd01.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8273;
x-forefront-prvs: 02973C87BC
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(39860400002)(366004)(136003)(396003)(376002)(346002)(199004)(189003)(86362001)(9686003)(6916009)(26005)(52536014)(7696005)(55016002)(186003)(6506007)(2906002)(66476007)(66446008)(4744005)(5660300002)(316002)(33656002)(76116006)(66946007)(66556008)(64756008)(8936002)(71200400001)(8676002)(81156014)(478600001)(966005)(81166006); DIR:OUT; SFP:1102; SCL:1; SRVR:ME2PR01MB3731; H:ME2PR01MB3524.ausprd01.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:1;
received-spf: None (protection.outlook.com: team.telstra.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: rCc/ULXX/isqCe21TsH22++p033M2JPR6bWCepK4KODUUPnsFOUzA44OMC+sz+uZod6e0SXYZnfRZ6uym0zZO0rAVFo0khC6acv6EsMWPdRRcRWqokcSi5HOzOHerfiQUsur8OlG3fZYO5r/jKnnxMFcGzvYlpsRyxLyCyeKAu99yQQRdUDDOCvapdt9VDwfD93GoiwSnQz8LXPis3d/UgvpbxK0zVYXkbmYKjui2zSH72QJNOW0Ijn24nv5k57/84lNkJfN+EhEJ0CiJI8kpaGJdB5+BQOCDFxWA5wijMZ7GueTfC9fHrtVcoV0wFRYDDhlnNApQodjc7QNwr7GvzeOTNM8lP6pADeH/RfH3Ab28GxOa1o0meceoUXqlR/bi/ErIQ24ARq8IczE7hXgR3tPj73ZJeKERCW788Fr8FKul8i3vV0Y0dgBaXenC8nk9PNziTcI4af5v42FHR+qrhpPao73jNGGcxy1nQDM/XJPFfBmYMqSAltojrPPXZDV0zCRAf4PNiVCqQb636yL9g==
x-ms-exchange-antispam-messagedata: bHSONZ88wv0yOIMebQgsyZ0cITfYezyIzjNbcV/8M+Oleyeuz6u9YkZWXdnF2y7QEaawi0z1NisGtGDO1myj890UNr0ezZTyB7pb9vtbAxOrBLOzf9VwMeo0M2KyLzU45mqXfreU0pxirqbTm5PMvQ==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: e0694c58-50b5-4b95-7d14-08d7a487796f
X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jan 2020 06:50:06.0604 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 49dfc6a3-5fb7-49f4-adea-c54e725bb854
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 07rA2FH16GBGT5b4LohXAAadIPGtZUV+LF7ajWMZPvqBH63GMT3IFjhnoF0XfTmL0h6OQZAH05e+1Bjv2ihcPXbJQ1un7wAPqCg9JL5WxNQ=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: ME2PR01MB3731
X-OriginatorOrg: team.telstra.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/-M1GwUIN1eo_mTbQLXnVVPT9OO0>
Subject: Re: [OAUTH-WG] [UNVERIFIED SENDER] RE: Cryptographic hygiene and the limits of jwks_uri
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, 29 Jan 2020 06:50:16 -0000

>> It would’ve been nice if JWK could’ve agreed on a URL-based 
>> addressing format for individual keys within the set, but that ship’s sailed.

Using the fragment on a JWKS URL to indicate the key id would be good.
Then a single URL by itself can identify a specific key.

https://example.com/keys.jwks#2011-04-29

This would have worked particularly well if a JWKS was a JSON object with key-ids as the member names, instead of an array. That is presumably too late to fix. But defining the fragment format for application/jwk-set+json to be a kid value should be possible.

If you put multiple keys with the same key-id in a JWKS you are asking for trouble -- just call that a non-interoperable corner for people to avoid.

--
James Manger