Skip to content

Tier 3: run the real Caddy and prove the login gate, the audit actor and the access-log contract #3085

Closed

Description

@VijitSingh97

What's the problem

Manual step: checklist 5.10, 5.11, 7.8 and scenario S6.

  • With no password or the wrong one, Caddy returns 401; with the right one, 200.
  • It forwards the logged-in name as X-Auth-User (the audit actor) and overwrites a client-supplied one.
  • Its JSON access log is what the Access log and the failed-login count read.

Current coverage:

  • Caddy is only parsed (caddy adapt in tests/stack/standalone/test_caddyfile.sh). No test runs it and sends requests.
  • The mini-stack has no Caddy; control-roundtrip.sh injects X-Auth-User by hand.
  • Tier 4 checks /metrics with credentials only, and KVM accepts 401 as "served".
  • test_audit_service.py builds access-log lines by hand, so the real field names are never checked.

what it impacts

Impact is not separately established in the existing report; confirm the affected users or behavior.

How I found it

Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.

how important is it

Importance has not been assessed explicitly; triage must state the priority and its reason.

acceptance criteria

Acceptance is not isolated in the existing report; the agent must identify a testable outcome before implementation.

possible solutions

Proposed check (tier 3, docker, beside test_caddyfile.sh):

  • Run the pinned Caddy image with the real generate_caddyfile in front of an echo upstream.
  • Send no-auth, wrong and right requests, plus a spoofed X-Auth-User. Assert 401/401/200, and that the upstream sees admin, not the spoof.
  • Feed the produced access log to the audit service and assert the failed-login count is 2.

Found while building the manual QA walkthrough (#3065). Part of #3068. Test debt for after the 2.0.0 cut, so it is blocked by #2774.

Activity

  1. added
    dashboard
    testing
    P3-hardening
    blocked
    on Oct 3, 2026
  2. removed
    blocked
    on Oct 14, 2026
  3. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    Grouped with #3149, but PR #3712 does not close it: Independent Caddy authentication and access-log integration coverage requiring real-container proof; unrelated to the archive lookup.. Released for its own pick.

  4. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    Grouped with #3069, but PR #3717 does not close it: Independent Caddy authentication and access-log integration coverage needs separate container proof.. Released for its own pick.

  5. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    Grouped with #3080, but PR #3723 does not close it: Caddy authentication and access-log coverage requires separate real-container proof, outside #3080’s Tier 1 checklist scope.. Released for its own pick.

  6. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    Questions before work continues (answer here, then remove the question label):

    May the runner resume review of unchanged head 628e8d1 once aggregate job 122403059423 succeeds, using that new GitHub result as the trigger (default: preserve this tested head, because another artificial revision restarts CI)?

  7. added
    question
    on Oct 27, 2026
  8. pithead-architect commented on Oct 27, 2026

    @pithead-architect

    Ruling: Yes. PR #3726 remains at 628e8d1ef0ee76758c6c6b4e5028e48951024699, and aggregate job 122403059423 now reports SUCCESS. Correct the pending-check wording in the PR body, then have the operator runner use state/prs/pithead-3726.again for exactly one re-review, as documented in runbooks/ops/runner.md. Preserve this head; no artificial commit or bench submission is needed for these test and documentation paths. Require independent agent PASS, followed by VijitSingh97's formal approval on the current head before merge.

  9. removed
    question
    on Oct 27, 2026
  10. added a commit that references this issue on Oct 30, 2026
    b7bbbc3
  11. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    Contributor

    Merged in #3726.

  12. added 2 commits that reference this issue on Oct 31, 2026
    64e34ac
    04d1fa8
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

    P3-hardeningdashboardtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions