Skip to content

The extent of a protection space is unknowable - #786

Merged
reschke merged 2 commits into
httpwg:masterfrom
martinthomson:realm-scope
Feb 26, 2021
Merged

reschke merged 2 commits into
httpwg:masterfrom
martinthomson:realm-scope

Conversation

@martinthomson

Copy link
Copy Markdown
Contributor

When the text suggests that credentials can be automatically applied to all
requests made within a protection space, that begs the question: how do I know
what requests are in the same protection space?

The answer is "well, you don't really". Authentication schemes might define
something, but otherwise you are left to guess. This PR says that as directly
as I could manage.

I considered adding another sentence here that says "In the absence of
specific information about the extent of a protection space, clients &MAY;
assume that the protection space extent is the origin of the server." I'd
like thoughts on whether that is helpful. I think that it might be, as otherwise
this isn't really implementable.

Closes #710.

@mnot

mnot commented Feb 25, 2021

Copy link
Copy Markdown
Member

Please factor out whitespace changes...

When the text suggests that credentials can be automatically applied to all
requests made within a protection space, that begs the question: how do I know
what requests are in the same protection space?

The answer is "well, you don't really".  Authentication schemes might define
something, but otherwise you are left to guess.  This PR says that as directly
as I could manage.

I considered adding another sentence here that says "In the absence of
specific information about the extent of a protection space, clients &MAY;
assume that the protection space extent is the origin of the server."  I'd
like thoughts on whether that is helpful.

Closes httpwg#710.
@martinthomson

Copy link
Copy Markdown
Contributor Author

Ugh, it's like picking up toys after children.

@mnot
mnot requested review from reschke and royfielding February 25, 2021 01:10

@reschke reschke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(but should be added to change log)

@martinthomson

Copy link
Copy Markdown
Contributor Author

Neither of you have comments about saying what the extent of the protection scope is in the absence of information?

@mnot

mnot commented Feb 25, 2021

Copy link
Copy Markdown
Member

I'd rather leave that out.

<li>In <xref target="field.content-length"/>, be more explicit about invalid and incorrect values (<eref target="https://github.com/httpwg/http-core/issues/748"/> and <eref target="https://github.com/httpwg/http-core/issues/749"/>)</li>
<li>Move discussion of statelessness from <xref target="intermediaries"/> to <xref target="connections"/> (<eref target="https://github.com/httpwg/http-core/issues/753"/>)</li>
<li>In <xref target="status.101"/>, clarify that the upgraded protocol is in effect after the 101 response (<eref target="https://github.com/httpwg/http-core/issues/776"/>)</li>
<li>In <xref target="protection.scope"/>, explain that the protection scope is not defined without additional information (<eref target="https://github.com/httpwg/http-core/issues/710"/>)</li>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

...please move up (these are sorted by github issue #)

@reschke

reschke commented Feb 25, 2021

Copy link
Copy Markdown
Contributor

Neither of you have comments about saying what the extent of the protection scope is in the absence of information?

AFAIU, it depends on the authentication scheme.

At the end of the day, we can only document here what we inherited from earlier specs, and what is actually done in practice. If you have information on the latter which helps us making this better, great. Do you?

@martinthomson

Copy link
Copy Markdown
Contributor Author

I proposed maybe adding:

In the absence of specific information about the extent of a protection space, clients &MAY; assume that the protection space extent is the origin of the server.

Which I believe matches what clients do when they produce credentials and the authentication scheme doesn't define a clear scope. Do you think that helps?

@reschke

reschke commented Feb 25, 2021

Copy link
Copy Markdown
Contributor

Not sure. What problem are we trying to solve here? Auth scheme definitions that fail to define the protection space? In which case, shouldn't we say something about this in the "Considerations for new schemes" section?

@reschke
reschke merged commit f788db4 into httpwg:master Feb 26, 2021
triple-underscore added a commit to triple-underscore/triple-underscore.github.io that referenced this pull request Feb 28, 2021
Change semantic conformance requirement to an explanation and permision to workaround
httpwg/http-core#787

The extent of a protection space is unknowable
httpwg/http-core#786

Be consistent about content[- ]coding
httpwg/http-core#785

Mention relaxation of reqs for parsing Expires
httpwg/http-core#782

Refine Referer
httpwg/http-core#784

Adjust handling of invalid Age values
(cache)
httpwg/http-core#781
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Realm is under-specified

4 participants