From f2acf71998475bb8b5eef981f3c3b93e23432561 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Thu, 30 Jun 2022 15:58:52 -0400 Subject: [PATCH] Document next steps: NURL generation. --- src/allmydata/protocol_switch.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/allmydata/protocol_switch.py b/src/allmydata/protocol_switch.py index 21d896793..9f33560e7 100644 --- a/src/allmydata/protocol_switch.py +++ b/src/allmydata/protocol_switch.py @@ -66,6 +66,14 @@ class _FoolscapOrHttps(Protocol, metaclass=_PretendToBeNegotiation): Add the various storage server-related attributes needed by a ``Tub``-specific ``_FoolscapOrHttps`` subclass. """ + # TODO tub.locationHints will be in the format ["tcp:hostname:port"] + # (and maybe some other things we can ignore for now). We also have + # access to the certificate. Together, this should be sufficient to + # construct NURLs, one per hint. The code for NURls should be + # refactored out of http_server.py's build_nurl; that code might want + # to skip around for the future when we don't do foolscap, but for now + # this module will be main way we set up HTTPS. + # Tub.myCertificate is a twisted.internet.ssl.PrivateCertificate # instance. certificate_options = CertificateOptions(