← All Learning Paths

API Security Engineer

Harden public APIs: API keys, OAuth scopes, rate-limit headers, CORS allowlists, OIDC/JWKS validation, and zero-downtime key rotation.

roleadvanced9 nodes13.5h total

Path overview

This path is generated from the curated resource graph.

  1. Compare "Generate and store a hashed key" with "Verify with a constant-time comparison" in "How to Implement API Key Authentication" and state which trade-off you would accept in api security engineer code.

    Completion criteria: Record a short walkthrough of "How to Implement API Key Authentication" with timestamps at "Generate and store a hashed key" and "Verify with a constant-time comparison", plus the commit that applies it.

    Next step: Return Standard Rate Limit Headers

    ⏱ 1h

  2. Apply "Return Standard Rate Limit Headers" to a api security engineer task, checking that "Every response carries quota headers; the 101st request returns 429 with Retry-After" appears after the "Let API clients see their remaining quota and reset window before they hit a 429, instead of" step.

    Completion criteria: Show the command for every step of "Return Standard Rate Limit Headers" and paste the output proving "Let API clients see their remaining quota and reset window before they hit a 429, instead of"; then note the step where "Every response carries quota headers; the 101st request returns 429 with Retry-After" appears.

    Next step: Restrict CORS to an Origin Allowlist

    ⏱ 0.5h

  3. Execute "Restrict CORS to an Origin Allowlist" end to end, then repeat the last step with one parameter changed and compare "Tighten CORS from wildcard to an explicit allowlist with credentials support.".

    Prerequisites: Return Standard Rate Limit Headers

    Completion criteria: Run "Restrict CORS to an Origin Allowlist" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Validate OIDC Tokens with JWKS

    ⏱ 0.5h

  4. Run "Verify an OpenID Connect ID token correctly instead of trusting decoded claims." from "Validate OIDC Tokens with JWKS" and confirm the documented result "Signature verification uses the right public key.".

    Prerequisites: Restrict CORS to an Origin Allowlist

    Completion criteria: Run the steps through "Verify an OpenID Connect ID token correctly instead of trusting decoded claims.", paste the command output, and mark the line that matches "Signature verification uses the right public key."; then rerun with one parameter changed.

    Next step: How to Validate OIDC ID Tokens Correctly

    ⏱ 1h

  5. Compare "What an ID Token Claims and Why Not to Trust It Raw" with "Fetching and Caching the JWKS" in "How to Validate OIDC ID Tokens Correctly" and state which trade-off you would accept in api security engineer code.

    Prerequisites: Validate OIDC Tokens with JWKS

    Completion criteria: Attach a one-page summary that quotes "What an ID Token Claims and Why Not to Trust It Raw", lists two trade-offs, and links the commit where you applied it.

    Next step: Rotate a Live API Key Without Downtime

    ⏱ 1h

  6. Run "Replace an active API key used by clients and servers through an overlapping two-key window" from "Rotate a Live API Key Without Downtime" and confirm the documented result "The v2 secret exists while v1 remains active; nothing consuming v1 is affected yet.".

    Completion criteria: Run "Rotate a Live API Key Without Downtime" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: API Key Rotation Workflow

    ⏱ 0.5h

  7. Carry out "API Key Rotation Workflow" on a api security engineer project, pausing at the "Rotate an API key so consumers can migrate without downtime and the old key is not left" step to verify "The consumer has a new credential.".

    Prerequisites: Rotate a Live API Key Without Downtime

    Completion criteria: Record the state "Rotate an API key so consumers can migrate without downtime and the old key is not left" at the verification step, then paste the output of "The consumer has a new credential." that proves it.

    Next step: Validate Token Claims Against a Policy

    ⏱ 1h

  8. Build "Validate Token Claims Against a Policy" for api security engineer code and verify [expired] against both samples.

    Completion criteria: Show the test run for "Validate Token Claims Against a Policy" with two passing samples and one deliberately failing input, with the expected error.

    Next step: Build an API Key Management Service

    ⏱ 0.5h

  9. Ship "Issue a key" from "Build an API Key Management Service", then prove it with the project's test suite and an acceptance note.

    Prerequisites: Validate Token Claims Against a Policy

    Completion criteria: Deliver "Issue a key" and show a commit where the corresponding test goes from failing to passing.

    Next step: Apply this path in a capstone project and review the related resources.

    ⏱ 5h