Skip to content

Deployment-level logging audit to substantiate the privacy policy's logging claims #122

Closed

Description

@aterga

From the privacy-policy legal review of 2026-08-03: "Audit the deployment — not just application code — to substantiate the absolute logging claims: AWS services, load balancers, reverse proxies, crash diagnostics, DNS/CDN, journald and support access."

The policy's logging section is backed by a recorded audit of the application (docs/icp-mcp-privacy-policy-draft.md, "Logging audit"): log_request fields, the /status/* bypass, Caddy failure diagnostics possibly carrying request URIs. The deployment layer around it has not been audited with the same rigour.

Checklist to audit and record (per host, production and staging):

  • Caddy: access-log configuration (off today?), error-log content, what failure diagnostics include (URIs with query strings are already documented — confirm nothing more, e.g. client IPs)
  • journald: everything that lands there beyond the app (sshd, systemd unit output, kernel), against the 12+1-week retention drop-in from deploy: bound journald log retention to three months #111
  • AWS: VPC flow logs, ELB/ALB access logs (none expected — Caddy terminates TLS directly — confirm), EC2 serial/console output, CloudWatch agents (none expected), AWS support access posture
  • Crash diagnostics: coredumpctl/systemd-coredump state on the hosts; whether a panic/core dump could persist request contents beyond the log-retention bound
  • DNS/CDN: confirm no CDN/proxy layer in front (DNS provider query logging is outside our processing but worth noting)
  • Record findings in the draft doc's logging audit appendix; adjust policy wording if any layer contradicts a claim (especially "no IP addresses in logs")

Why it matters: the policy deliberately replaced absolute claims with mechanism-naming claims backed by the audit. The deployment layer is the remaining place an absolute-sounding claim ("technical logs contain…") could be contradicted by something we did not look at.

Activity

  1. aterga commented on Sep 1, 2026

    @aterga
    CollaboratorAuthor

    Closing per the release drift-report action, with the audit record below. The short version: the deployment's edge changed under this audit — the checklist audits the AWS/Caddy edge, and as of 2026-09-01 that is no longer what clients reach — so the policy is now gated on reconciling with the current hosting model rather than on completing the old checklist. The operator-side follow-ups continue in #176.

    Established from outside, 2026-09-01 (all externally observable; recorded in the policy draft's header by #177):

    • mcp.internetcomputer.org resolves to addresses registered to DFINITY Stiftung and serves the Internet Computer HTTP-gateway fleet's shared certificate (SANs *.internetcomputer.org, *.ic0.app, *.icp0.io, icp-api.io, …). Client TLS terminates at that front — client addresses and full request lines, query strings included, are processed by a layer the policy's sections 2, 3 and 5 do not describe, and whose logging this audit never covered.
    • The front forwards /mcp*, /.well-known/oauth-* and /.well-known/ii-auth-callbacks to the application; /version, /status/, /robots.txt, /favicon.svg, /metrics, /.well-known/ii-app-metadata and /.well-known/openai-apps-challenge answer 308 → the landing page at the edge. Sign-in works end to end; the consent screen's app-metadata fetch does not reach the app.

    Established from deploy-as-code (the checklist items that are code in this repo, valid for the application host as configured):

    • Caddy runs with no access log (no log directive in deploy/native/Caddyfile), and /metrics is kept off the public origin (Caddy 404s it; the app serves it only because imcp2.service opts in on the app's own port).
    • journald is bounded by the MaxRetentionSec=12week drop-in deploy.sh installs (deploy: bound journald log retention to three months #111), matching the policy's three-month bound.

    Not establishable from here, and now scoped to the current edge in #176: whether the application host is still the AWS Frankfurt deployment deploy/native describes; what the fronting layer logs, where, and for how long; and the host-local items of this checklist (journald contents beyond the app, coredumpctl state, AWS-side logs, EC2 serial console, support-access posture) — those need operator access.

    What holds the line meanwhile (#177): the policy draft's header now blocks republication until sections 2 ("Our hosting provider"), 3 (Germany/Frankfurt) and 5 (logs) are reconciled with the operators and legal, so the absolute-sounding claims this issue worried about cannot be republished unverified. Reopen if you'd rather keep this issue itself as the tracker instead of #176.


    Generated by Claude Code

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions