Skip to content

Service worker soft update is under specified #83

Open

Description

@letitz

The current private network access check algorithm states the fetch client's policy container's IP address space should be compared against the connection's IP address space. This is all well and good when the fetch client has a correct policy container, as is the case for documents and most workers fetches (#82).

PNA checks are also supposed to apply to service worker soft update fetches so as to avoid a bypass. The current implementation in Chromium uses the last fetched (exact spec term unclear) service worker's policy container's IP address space as the client IP address space.

Unfortunately, the service worker soft update algorithm sets up a null fetch client, which entails that the PNA check cannot apply. This is a known issue (w3c/ServiceWorker#849, w3c/ServiceWorker#1447). Until it is resolved, this part of the spec is underspecified.

In the meantime, we should non-normatively explain what the correct behavior should be in spite of this shortcoming.

Activity

  1. added a commit that references this issue on Oct 6, 2022
  2. letitz commented on Oct 6, 2022

    @letitz
    CollaboratorAuthor

    The above commit explains that there is a blind spot here, but does not yet attempt to sketch out Chromium's current implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions