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

Initial draft of extension negotiation #12

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

smhendrickson
Copy link
Collaborator

This PR defines extension negotiation, as discussed at IETF 120 Privacy Pass.

We can use this as a model to work through whether we want to include negotiation functionality as an optional feature, or continue on auth-scheme without the functionality.

We received feedback during and after IETF that multiple parties have developed similar functionality along these lines, prompting the PR.

@smhendrickson
Copy link
Collaborator Author

Note this would address #2

} ExtensionSet;
~~~

The contents of ExtensionSet is a list of ExtensionEntry structs containing extensions (defined in #extensions),

Choose a reason for hiding this comment

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

I don't see Extensions struct defined as a member of ExtensionEntry struct.

Choose a reason for hiding this comment

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

@pbsawant, would it make sense to signal the entire extension in the challenge? The extension types should be sufficient for extension negotiation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed I don't think we need to define Extension within ExtensionEntry, as the Entries are just meant to signal which ExtensionType is is supported, along with required-ness.

PrivateToken challenge="abc...", token-key="123...", extension-set="0x0001,0x0002..." extensions="def..."
~~~

# Extensions Negotiation {#negotiation}
Copy link

@pbsawant pbsawant Jul 29, 2024

Choose a reason for hiding this comment

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

How does client process these two new parameters? since "extension-set" and "extensions" carry ExtensionType, is there redundancy in these parameters? Can we instead just have "extensions", containing a list of Extension structs? Extension struct may carry an empty extension_data value, which indicates any or wild card extension parameter value.

Choose a reason for hiding this comment

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

Would challenge, token-key and extension-set not suffice?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed that either of these approaches would work. @pbsawant if we just use extensions, we need a new way of signaling whether an extension is required. This is why I added the extension_set. Feel free to suggest an alternative structure if there is a clean way of including required-ness only for challenges.

Copy link

@pbsawant pbsawant left a comment

Choose a reason for hiding this comment

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

Review comments and few questions.

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.

4 participants