Skip to content

Implement HSTS #6105

Closed
Closed

Description

@kmcallister

HTTP Strict Transport Security.

For now we may not want Servo to persist any state to disk. In that case we can support just HSTS preloads and not the Strict-Transport-Security header.

Activity

  1. added
    E-less-complex
    I-safety
    on May 17, 2015
  2. removed
    E-less-complex
    on May 18, 2015
  3. jdm commented on May 18, 2015

    @jdm
    Member

    @kmcallister This is going to need further elaboration if the easy tag is going to be reinstated.

  4. kmcallister commented on May 18, 2015

    @kmcallister
    ContributorAuthor

    I linked to the MDN document that explains the whole feature. If we're only doing preloads then we just need to get that file from Google and bake it into Servo.

  5. added
    E-less-complex
    on May 18, 2015
  6. added
    E-more-complex
    and removed
    E-less-complex
    on May 18, 2015
  7. jdm commented on May 18, 2015

    @jdm
    Member

    This will require adding additional Servo initialization code (like the hostfile processing) and checks in the HTTP loader. I think we should support an in-memory list of any domains for which we have seen a Strict-Transport-Security header, too.
    Code: components/net/resource_task.rs, components/net/http_loader.rs

  8. samfoo commented on Jun 3, 2015

    @samfoo
    Contributor

    I'm keen to give this a go as a first task. It seems like doing only preloads first should be fairly straightforward. Finding a suitable preload list doesn't not appear to be as straightforward.

    Chromium packages theirs with the build, as does gecko.

    EDIT:

    Ahh, it appears that the gecko build actually downloads and parses the Chromium file rather than duplicate effort.

    I don't see why servo couldn't do the same, but I'm not familiar with the servo build. A point in the right direction for where that might make sense would be helpful.

  9. jdm commented on Jun 3, 2015

    @jdm
    Member

    We could add a mach command to fetch the latest version. That would live somewhere in http://mxr.mozilla.org/servo/source/python/servo/; it's not clear to me which of those files makes the most sense, but the bootstrap_commands.py has a bunch of "download this file" logic.

  10. 38 remaining items

  11. added a commit that references this issue on Jul 22, 2015
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

    A-networkE-more-complexI-safety

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions