Skip to content

feat: document API-key auth, audit pipeline, and GraphQL hardening#71

Merged
Theauxm merged 1 commit intomainfrom
feat/api-auth-hardening
Apr 15, 2026
Merged

feat: document API-key auth, audit pipeline, and GraphQL hardening#71
Theauxm merged 1 commit intomainfrom
feat/api-auth-hardening

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented Apr 15, 2026

Summary

  • New api-security.md: unified guide covering API-key auth via the ApiKeyBuilder surface, pre-hashed production pattern, subscription auth over WebSocket connection_init, per-train authorization, GraphQL hardening defaults (depth, cost, introspection gating, operation cap), the audit pipeline, and operational hygiene.
  • SDK reference for api-auth: AddTraxApiKeyAuth (builder + generic overloads), TraxPrincipal, ITraxPrincipalResolver, Injecting TraxPrincipal, TraxAuthClaimTypes.
  • SDK reference for api-audit: AddAudit, TraxAuditEntry, ITraxAuditSink, TraxAuditOptions.
  • Updates to authorization, api, and add-trax-graphql pages to reflect new hardening options and per-train authorization behavior.

Depends on

Test plan

  • All SDK reference signatures match the code in the paired Trax.Api PR
  • Internal links resolve (/docs/... paths)
  • No em-dashes, no Jekyll IAL syntax, no stray Claude references
  • Trax.Website builds the docs without errors

- New api-security.md: unified guide covering API-key auth via the
  ApiKeyBuilder surface, pre-hashed production pattern, subscription
  auth over WebSocket connection_init, per-train authorization,
  GraphQL hardening defaults (depth, cost, introspection gating,
  operation cap), the audit pipeline, and operational hygiene.
- SDK reference pages for api-auth: AddTraxApiKeyAuth (builder and
  generic overloads, TraxPrincipal, ITraxPrincipalResolver, injecting
  TraxPrincipal).
- SDK reference pages for api-audit: AddAudit, TraxAuditEntry,
  ITraxAuditSink, TraxAuditOptions.
- Updates to authorization, api, and add-trax-graphql pages to reflect
  new hardening options and per-train authorization behavior.
@Theauxm Theauxm merged commit f861d30 into main Apr 15, 2026
@Theauxm Theauxm deleted the feat/api-auth-hardening branch April 15, 2026 17:32
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