Cotal TypeScript packages
    Preparing search index...

    Interface DialPolicy

    What the eventual connection will insist on, which the address alone cannot tell us.

    interface DialPolicy {
        allowUnencryptedOverlay: boolean;
        tlsRequired: boolean;
    }
    Index
    allowUnencryptedOverlay: boolean

    Did the operator EXPLICITLY accept the overlay's tunnel dependency?

    The default is false and the default refuses, because the previous shape — permit and print a warning — is not a fence. A warning is written to stderr, which a non-interactive caller need not read, and it was not persisted, so nothing repeated it at the dials that followed. A scripted registration therefore got the risk with none of the notice.

    A flag is the one form of notice a script cannot miss: without it the command fails, and the failure is in the exit code rather than in prose nobody reads. The acceptance is then recorded on the mesh entry, so a later dial can tell that a human agreed to this rather than inferring consent from an address.

    tlsRequired: boolean

    Will the dial to this target REQUIRE TLS?

    This is the difference between an address and a guarantee, and getting it wrong was the defect this parameter exists to close. An overlay address is not proof the overlay transport is up: with the tunnel daemon stopped, 100.64.0.0/10 is ordinary CGNAT space, and hostile DHCP or routing can answer a dial to it. So the address class establishes only that we are willing to consider the target; requiring TLS is what makes it safe.

    The mesh record now carries this intent (MeshEntry.tlsRequired), so callers pass the record's real strictness. With it false an overlay literal is refused unless DialPolicy.allowUnencryptedOverlay says the operator accepted the tunnel dependency. With it true the acceptance stops being needed — the transport is proven rather than promised — and a hostname or public literal becomes registrable as "public-tls".