Skip to content

deploy: supported HTTPS front end and the Secure session cookie #93

Closed

Description

@TusanHomichi

Existing issue check

  • I searched open and closed issues for this work.

Problem or outcome

The session cookie is HttpOnly; SameSite=Strict but never Secure. ADR 0004 defers the flag to "deployment-hardening work before any pilot". docs/install.md tells operators to "put HTTPS in front" of anything beyond a trial, but gives no configuration, no required headers, and no warning about the cookie. As a result, a pilot agency has to work out TLS alone, and nothing stops a session cookie from being sent over plain HTTP.

Scope

In scope:

  • A decided way to mark the cookie Secure when the service is reached over HTTPS. Candidates are an explicit setting, or a trusted-proxy indication; an ADR records the choice and its failure modes.
  • A supported reverse-proxy configuration (for example, one of Caddy or nginx) in docs/install.md, covering forwarded headers and how the bind should look behind it.
  • Installer output that points at it.

Out of scope:

  • Built-in TLS termination in the executable.
  • Certificate automation beyond what the proxy provides.

Acceptance criteria

  • An ADR amending ADR 0004 says when Secure is set and how a misconfiguration fails.
  • Tests prove the cookie carries Secure in the HTTPS configuration and that login still works over plain loopback HTTP for a trial.
  • docs/install.md has a tested reverse-proxy recipe.

Expected proof

  • cargo test --workspace, including new cookie-attribute tests.
  • A recorded run of the documented proxy recipe against a release build.

Execution record

  • Authority and source: filed by the integrator from the 2026-10-14 project survey, requested by the maintainer. Not yet selected for work.
  • Next action: maintainer prioritization.

Related roadmap, decisions, or issues

  • ADR 0004 (local authentication)
  • ADR 0023 (Linux installation lifecycle), which lists this as open
  • Milestone 6 pilot hardening (docs/roadmap.md)

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