docs(auth): AIN-221 reconcile spec with code · ai_live_* → ai_infera_*#6
Merged
Conversation
The auth spec was the last surface using the stale `ai_live_*` prefix for production API keys. The implementation at `api/ainfera_api/services/crypto.py` ships `KeyEnvironment.LIVE = "infera"` so every minted key is `ai_infera_*`. Spec is updated in lockstep so SDKs and integration partners reading the canonical doc see the same prefix the API actually produces. Added a note explaining why the env label is `infera` rather than `live` (grep-disambiguation in shared logs). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds the H1 + blank-line padding the PR template was missing, tags two fenced blocks in auth/spec.md as text (MD040), and wraps three bare email addresses in CODE_OF_CONDUCT/SECURITY in angle brackets (MD034). Reproduces CI scope locally: markdownlint-cli2@0.17.2 with the file list git uses (21 tracked .md files) — 0 errors. Unblocks AIN-235 joint-deploy Part 0.2. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with Claude Code
Note
Low Risk
Documentation-only updates to key naming and contact email formatting; no runtime or security logic is changed in this PR.
Overview
Updates the Authentication spec to align production API key naming with the implemented
ai_infera_*prefix (replacingai_live_*), including examples, transport header text, the test-vs-prod comparison table, and the legacy-ak_*deprecation message.Adds a short rationale note for the
inferaenv label and makes small markdown hygiene tweaks elsewhere (PR template spacing, wrapping contact emails inCODE_OF_CONDUCT.md/SECURITY.mdin angle brackets, and using fenced blocks labeledtext).Reviewed by Cursor Bugbot for commit de0b90b. Bugbot is set up for automated code reviews on this repo. Configure here.