Re: [OAUTH-WG] Transaction tokens draft-ietf-oauth-transaction-tokens-01 - my comments

Atul Tulshibagwale <atul@sgnl.ai> Tue, 26 March 2024 01:21 UTC

Return-Path: <atul@sgnl.ai>
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 6FFE5C18DBB3 for <oauth@ietfa.amsl.com>; Mon, 25 Mar 2024 18:21:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 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, 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=sgnl.ai
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 8AjMPjkGlSmu for <oauth@ietfa.amsl.com>; Mon, 25 Mar 2024 18:21:50 -0700 (PDT)
Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 3C1B9C14F61A for <oauth@ietf.org>; Mon, 25 Mar 2024 18:21:49 -0700 (PDT)
Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1e0000cdf99so38982425ad.0 for <oauth@ietf.org>; Mon, 25 Mar 2024 18:21:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sgnl.ai; s=google; t=1711416109; x=1712020909; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=l5REbFAETVgSHDSOL2MByVxkd1mrTadNtQty604OB+Q=; b=wPO/93FI2NW215d/Mjo2ttgb/6XOnms6j/K109LO3KV40s43pMlfdEc0Y3ZxV9khI4 sDoSnDPfDBRIcz5TWMYesDawlXJEZnyWY2sp49ytKfHtcEBsk1+Po/nb0vyB1irblqZ+ ICsxKJOBpMIK4lC/CgqI6bCpCjBYWEMiNYtbxfbxrtzNJQXq9PGqbow3zcGdqht92H1M 1GX2gfSrfIRKXjTHfKeIxhuZU3rZDunz3uV5S+3wOf4GRu5AMdFNJ9KzUbNAHRQwe6va On5EtCXI+UihMtJxrxsk3DEvfHedXMHWej5G33O2u0XDGpmM+S/3kSJN2bIJ4e3AXP0/ RSMA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711416109; x=1712020909; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=l5REbFAETVgSHDSOL2MByVxkd1mrTadNtQty604OB+Q=; b=Odlsl+LrvuSA6GfATkqBLFDe3LAnK24L1RsBwP41XOKS5k6eANkrE3PEti93xXbddp tQ0rkTHO8Nmp4XwdsP/TTw3V2a72Gs/16O+arqtFraVeDhzdWFBQ3O/uTIY8epkomiZ2 rqICUEE57DoZIkQcQQv4wRS6iKxIU+b85sxKI5Mpuz1xqgH2r7GFoBClqm6BYpEwEK+/ pzvYliOYsPNtopvxLtLwaSaiNdqLGCplOUHh09miPZortJYYi58zlrzmR4sPE1Krrb2x fpIIAsfVInCQrIoEX/bxBfyak4NaMKkxL87SytSpwbKm+IIht1vcBc6wb47h40Ysir48 C8Eg==
X-Gm-Message-State: AOJu0YxebgyXneo4shbgc8TpuxtcJ9X5DtCAK/bK1S650664Q9Q9Ov0q bXJpgE3JxLMskgqAgNrs4pN8tpbaq3a3E3VxWiId8yrp9rAWpOHcQjyPTgRLEPsFi6V3dq2+ocg E8CDLafmmJR14cB4q9P9/lv7EAR2I7bAu7SZNupj08HWPmk/U
X-Google-Smtp-Source: AGHT+IHu7LGXe+rng/OP4LFg+51KFjXWa20hhM+hCpbGmH5Qdwqr3VmDETSc4qtcPbjCj+KFlUeSsKDRtdyIex2wM60=
X-Received: by 2002:a17:903:2303:b0:1db:8fd6:915e with SMTP id d3-20020a170903230300b001db8fd6915emr11598785plh.33.1711416108649; Mon, 25 Mar 2024 18:21:48 -0700 (PDT)
MIME-Version: 1.0
References: <C47E13AB-306C-1C48-A16E-C380020E53AC@hxcore.ol>
In-Reply-To: <C47E13AB-306C-1C48-A16E-C380020E53AC@hxcore.ol>
From: Atul Tulshibagwale <atul@sgnl.ai>
Date: Mon, 25 Mar 2024 18:21:32 -0700
Message-ID: <CANtBS9cVKw-tb65oZBqgtgMkMA0a68aLbpDh9gRDHxh+_2Y6Mg@mail.gmail.com>
To: "yaronf.ietf@gmail.com" <yaronf.ietf@gmail.com>
Cc: "oauth@ietf.org" <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000038297b0614861dd9"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/GSLpIxOcey-BQSxn8HvluSxZenc>
Subject: Re: [OAUTH-WG] Transaction tokens draft-ietf-oauth-transaction-tokens-01 - my comments
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 26 Mar 2024 01:21:54 -0000

Hi Yaron,
Thank you so much for this feedback. I've created issues
<https://github.com/oauth-wg/oauth-transaction-tokens/issues> for many of
the items in your email, and a PR
<https://github.com/oauth-wg/oauth-transaction-tokens/pull/85> for the
minor text fixes you identified.

Atul


On Sun, Mar 24, 2024 at 8:23 PM yaronf.ietf@gmail.com <yaronf.ietf@gmail.com>
wrote:

> I had a long flight and I’m still not there yet… But had time to review
> this draft.
>
>
>
> Thanks authors, this is important and useful work. It’s also quite early,
> so I have a long list of comments below.
>
>    - Intro: for "workloads", I suggest to add a reference to the WinSE
>    Architecture draft.
>    - 2.1: "the execution of a call" - I think most people prefer "call
>    chain" for this, where "call" only refers to a single hop. (Granted this is
>    more of a call tree rather than a call chain, but we use “call chain”
>    anyway.)
>    - 2.4: additional signatures: I think this is a leftover from a
>    previous version of the draft, and as far as I can tell it is not supported
>    by this version. Suggest to remove it.
>    - 2.5.1: typo, "in an a multi-workload".
>    - Figures: what is a "µ-service" and why do we need Greek letters?
>    - 4: the terminology section is not a good place for normative
>    language, specifically around the "aud" claim.
>    - 5.2: I think txn should be OPTIONAL. While it is very useful, there
>    may be architectural reasons why transaction ID issuance in an organization
>    is independent of transaction tokens.
>    - 5.2: "purp" - need a lot more discussion of this claim, also it may
>    be OPTIONAL too. Also, why not call it "scope" if that's what it is?
>    - 5.2: how is "azd" different from "rctx"? There's a whole section
>    about "rctx" and nothing about "azd".
>    - 5.2: extensibility: please say explicitly that arbitrary claims may
>    be added to the "azd" (and "rctx"?) objects. There is no IANA registry for
>    either. Note that having 3 predefined attributes complicates the situation
>    a bit - what happens if we want a 4th one? Also mention that any additional
>    attributes are local to the trust domain.
>    - 5.2: "sub" should be better clarified, this is not your typical
>    “sub”. Also, I strongly prefer "sub_id" here (RFC 9493), as the use case I
>    have an mind is of the subject as a human. In addition, "as defined by the
>    aud trust domain" is confusing, I think you want to say that "sub" is
>    relative to the scope of the trust domain.
>    - 7.1: the bullets are formatted incorrectly (see HTML version of the
>    draft).
>    - 7.4.1: maybe say explicitly "MUST NOT change the "sub"', because in
>    many use cases this is the most important/sensitive claim.
>    - 7.5: unfortunately SPIFFE is only secure for this when used in
>    conjunction with MTLS, so please reword the sentence (or wait for WimSE to
>    solve this problem).
>    - 7.5: SPIFFE - all caps.
>    - 8.1: and obviously we need an IANA section to define this HTML
>    header.
>    - 10.1: *salted* SHA256.
>    - 10.1: also, in most cases txn tokens MUST NOT be logged because they
>    contain PII (e.g. a subject that's an email address).
>    - 11.1: I think there is some confusion here. It is possibly useful to
>    define this value (if we want to embed txn tokens within access tokens).
>    But the "typ" header is a whole different thing, it needs to be a media
>    type. See
>    https://datatracker.ietf.org/doc/html/rfc8725#name-use-explicit-typing
>
> Thanks,
>
>                 Yaron
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>