Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Feed to Subject #114

Merged
merged 4 commits into from
Oct 20, 2023

Conversation

SteveLasker
Copy link
Collaborator

@SteveLasker SteveLasker commented Oct 18, 2023

PR addressing the conversation around Feed is redundant with Subject, as defined in CWT

  • 3.1.2. sub (Subject) Claim

    The "sub" (subject) claim has the same meaning and processing rules
    as the "sub" claim defined in Section 4.1.2 of [RFC7519], except that
    the value is a StringOrURI, as defined in Section 2 of this
    specification. The Claim Key 2 is used to identify this claim.

  • 4.1.2. "sub" (Subject) Claim

    The "sub" (subject) claim identifies the principal that is the
    subject of the JWT. The claims in a JWT are normally statements
    about the subject. The subject value MUST either be scoped to be
    locally unique in the context of the issuer or be globally unique.
    The processing of this claim is generally application specific. The
    "sub" value is a case-sensitive string containing a StringOrURI
    value. Use of this claim is OPTIONAL.

This PR intentionally contrasts #108

Choice for folks to vote upon:

Fixes #11

Copy link
Contributor

@JAG-UK JAG-UK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small but important nit

draft-ietf-scitt-architecture.md Outdated Show resolved Hide resolved
@SteveLasker SteveLasker requested a review from JAG-UK October 18, 2023 16:13
Copy link
Contributor

@JAG-UK JAG-UK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SteveLasker SteveLasker added this to the IETF 118 milestone Oct 18, 2023
@@ -655,7 +655,7 @@ Protected_Header = {
4 => bstr ; Key ID
; TBD, Labels are temporary
391 => tstr ; DID of Issuer
392 => tstr ; Feed
2 => tstr ; Subject
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the subject (old feed) is mandatory?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't make that explicit change, but yes an issuer of a signed statement must have a subject.

Copy link
Member

@henkbirkholz henkbirkholz Oct 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, yes, I incorrectly pulled 2 from the CWT spec.
In this PR, we're not pulling in CWT. That is deferred to #108
This PR renames Feed to Subject, aligning with the definition of Subject, within CWT.
Can we agree with this incremental step? If so, what tag should we use? I can repurpose 392, but I think we agree cbor-tags should have a common tag for subject, which is outside the scope of this PR.

  • Do we agree with the rename?
  • What CBOR tag should we use?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To unblock, I've set the label to 392 (previous temporary label), as a bytestring, similar to #111. This unblocks the rename, with the ability to relax to string if we decide, or possibly shift to a CWT (#108).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Above reference is outdated. Please see updated line 658

392 => bstr ; Subject

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With #108 merged, removing this entry.

Copy link
Collaborator

@yogeshbdeshpande yogeshbdeshpande left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@SteveLasker SteveLasker merged commit 40dc274 into ietf-wg-scitt:main Oct 20, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refine Definition of Feed
5 participants