Skip to content

Backend TLS options #81

Open
Open

Description

@aram356

Description

Provide caller-controlled TLS certificate verification and SNI hostname settings for dynamic backends. This task also owns the local-development certificate opt-out requested by #36. Main already verifies Fastly HTTPS certificates, but Fastly TLS and fixed timeout settings binds certificate identity and SNI to the URI host; no portable toggle or override is exposed.

Steps to reproduce

  1. Inspect the HTTPS branch of ensure_backend and the portable outbound-request fields.
  2. Look for a supported way to use a self-signed local-development origin or a distinct SNI name.
  3. Confirm the current Fastly path always selects the URI host and enables certificate verification.

Expected behavior

TLS verification is enabled by default. An explicit local-development opt-in can disable it where supported, and SNI can be configured without provider-specific application code.

Impact

Development origins and origins requiring a distinct TLS identity cannot be configured through the shared API.

Proposed fix

Add validated portable TLS options, preserve verification by default, and map them into supported adapters. Document the development opt-in and provider restrictions; keep SNI, connection destination and certificate identity semantics clear. Do not silently accept an unsupported security setting.

Done when

  • Verification remains enabled by default for HTTPS.
  • The explicit development opt-out and SNI option reach supported adapters.
  • Unsupported TLS controls return documented behavior; examples and focused tests cover defaults, opt-in and overrides.

Related

Parent #79; story #80; duplicate #36. PR #35 implements the verified baseline; PR #275 is related open outbound work.

Activity

  1. ChristianPavilonis commented on Nov 24, 2026

    @ChristianPavilonis
    Collaborator

    Origin CA pinning is not a dependency of #523 (outbound client identities, PR #524). The client certificate and the origin's server certificate are independent, and the first consumer's origin (IABTechLab/trusted-server#1650) keeps a public server certificate. Custom CA support for verifying an origin stays in scope here.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions