Skip to content

docs(auth): AIN-221 reconcile spec with code · ai_live_* → ai_infera_*#6

Merged
hizrianraz merged 2 commits into
mainfrom
feat/ain-221-auth-prefix-scrub
May 22, 2026
Merged

docs(auth): AIN-221 reconcile spec with code · ai_live_* → ai_infera_*#6
hizrianraz merged 2 commits into
mainfrom
feat/ain-221-auth-prefix-scrub

Conversation

@hizrianraz
Copy link
Copy Markdown
Contributor

@hizrianraz hizrianraz commented May 22, 2026

Summary

  • 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 produces.
  • Added a note explaining why the env label is `infera` (grep-disambiguation in shared logs).

Test plan

  • markdownlint passes
  • No remaining `ai_live_` strings in the spec

🤖 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 (replacing ai_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 infera env label and makes small markdown hygiene tweaks elsewhere (PR template spacing, wrapping contact emails in CODE_OF_CONDUCT.md/SECURITY.md in angle brackets, and using fenced blocks labeled text).

Reviewed by Cursor Bugbot for commit de0b90b. Bugbot is set up for automated code reviews on this repo. Configure here.

Aule and others added 2 commits May 22, 2026 11:11
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>
@hizrianraz hizrianraz merged commit de04db0 into main May 22, 2026
8 checks passed
@hizrianraz hizrianraz deleted the feat/ain-221-auth-prefix-scrub branch May 22, 2026 07:08
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