Skip to content

Secrets and authorization review

Modulecraft.19 · practice · docs · Pass 11 · 1 to 2 h
You builddocs/security-review.md
Testscourse/tests/craft.19 (named below, with why each exists)
Needsnone
Used byno code call site; this is an independent artifact
MilestoneMS-P11
  • Tie each claim to the exact platform evidence that Secrets and authorization review produces.
  • State the owner, success condition, and recovery action before declaring the work complete.
  • Record unresolved assumptions so the next review can test them.
Terminal window
ol start craft.19
ol tests craft.19
ol check craft.19

API keys and tenant scopes protect model access and usage data. Review the authorization design as a matrix of principals, actions, and resources, then inspect where secrets can leak.

Store only keyed hashes of API secrets, compare credentials in constant time, scope every operation, and audit denies without logging presented secrets or prompt content. Rotate and revoke through a documented path.

Check that an infer-only key cannot call admin routes, tenant A cannot retrieve tenant B usage, and revocation takes effect within the documented cache window. Search source, logs, image layers, and CI artifacts for credential patterns.

TestKINDChecksWhy it matters downstream
test_artifact_paths_are_declaredartifactConfirms the submitted paths and required evidence exist, so a plausible narrative cannot pass without the reviewable deliverable.
#PitfallSymptomCaught by
1The artifact names a decision without the evidence that supports itReviewers cannot verify the claim against the repository or system.test_artifact_paths_are_declared
2The failure or rollback case is omittedThe happy path passes while an operator has no safe response under failure.test_artifact_paths_are_declared
3The owner, threshold, or scope is implicitTwo reviewers can reach different release or risk decisions from the same evidence.test_artifact_paths_are_declared
DirectionModuleConnection
Backcraft.17Read this declared prerequisite before producing the artifact; use it to verify the relevant contract or evidence.
Backgw.02Read this declared prerequisite before producing the artifact; use it to verify the relevant contract or evidence.
ResourceWhat to inspect
C4 model and architecture rules, section 2.3Compare the submitted views with the course system boundary and its process/file interfaces.