Skip to content

test(idp-provider): SAML S1 §6 negative integration suite - #17245

Merged
developing-today-fleet[bot] merged 3 commits into
mainfrom
xaltha/13793-saml-negative-tests
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 3 commits into
mainfrom
xaltha/13793-saml-negative-tests

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Part of #13793 — adds the §6 negative integration tests that remained after PR #16943 landed the happy path.

What

  • unregistered_sp_is_denied_and_audited — unknown Issuer → 403 sp_not_registered + audit denial entry.
  • wrong_acs_is_denied_and_audited — unregistered ACS URL → 403 acs_mismatch + audit denial entry.
  • stale_authn_request_is_denied — IssueInstant 600s old → 403.
  • replayed_authn_request_is_denied — same AuthnRequest twice → first 200, second 403.
  • wrapped_assertion_is_rejected_by_the_sp — full login, then an injected unsigned assertion in the signed response is refused by the local samael SP.

Tests-only change; no production code touched.

Verification

Remote dispatch (fleet queue): run 46454748090 — cargo test --locked --test saml_sso under the repo nix shell. Result recorded on #13793 when the run concludes.

Refs #13793

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T15:49:51Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "1afb80aa405c56b71c8a63176670cb22ba449a92"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Add HTTP-boundary negative tests to tests/saml_sso.rs: unregistered SP
denied + audited (sp_not_registered), wrong ACS denied + audited
(acs_mismatch), stale AuthnRequest denied, replayed AuthnRequest denied,
and a signature-wrapping injection rejected by the local samael SP.

Refs #13793
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3e28dee7-c9c4-4645-91ce-7752a9e94074

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Full-crate cargo test on main failed to compile two test targets:
- lib test: src/saml/sso.rs test mod used RsaPrivateKey without
  importing it (E0433).
- tests/passkeys.rs: E0716 temporary dropped while borrowed at the
  events assertion.
Also silence the unused-jwk warnings in tests/saml_sso.rs. These block
the #13793 acceptance line 'full crate test suite green'.

Refs #13793
Same pre-existing temporary-lifetime break as passkeys.rs, in
tests/passkey_surface.rs:297. Refs #13793
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant