What the path develops
API security is a resource and workflow discipline, not a gateway checkbox. A trustworthy design identifies every API and version, distinguishes authentication from authorization, validates protocol and application data, constrains resource and business cost, distrusts outbound dependencies, protects alternate platform paths, and records enough safe evidence to investigate abuse. The five domains build those responsibilities in sequence.
API surface, standards and threat modeling
Week 1Learn the assets and trust relationships before configuring controls. Build a living inventory and use risks as prompts for engineering questions, not as a substitute for system analysis.
- Inventory hosts, environments, routes, methods, versions, owners, dependencies and lifecycle states
- Classify identities, tokens, objects, properties, business flows, logs and outbound destinations
- Map every OWASP API Security Top 10 2023 category to a concrete system scenario
- Use OWASP ASVS 5.0.0 as a versioned verification baseline with stable requirement references
- Diagram client, authorization server, gateway, resource server, datastore and platform boundaries
- Separate authentication, token privilege, tenant policy, object ownership and function permission
- Define positive and negative access outcomes before implementation
- Reconcile declared API descriptions with observed gateway and runtime routes
- Plan version deprecation, client migration, blocking and verified removal
- Create a synthetic-only lab scope, target allowlist, limits, stop conditions and teardown plan
OAuth, OpenID Connect and zero-trust identity
Weeks 2-3Implement identity protocols as explicit security contracts. Avoid trusting a decoded token, a private network or a gateway-generated header without proving origin, intended use and current policy.
- Use authorization code flow with transaction-specific PKCE S256 for public clients
- Register exact redirect URIs, prevent open redirects and protect authorization responses
- Bind and validate state, OIDC nonce and issuer context for the selected flow
- Validate ID Token signature and algorithm policy, exact issuer, audience, expiry and nonce
- Use issuer plus subject as stable identity rather than email or display name
- Validate API access tokens for issuer, audience, time, token type and minimum privilege
- Restrict access tokens by resource and actions; avoid one universal internal token
- Protect public-client refresh tokens through sender constraint or rotation as RFC 9700 requires
- Apply NIST zero-trust principles without granting implicit trust to network location
- Test tampering, wrong issuer and audience, code injection, nonce replay and gateway-header spoofing
Layered authorization and input boundaries
Weeks 4-5Put decisions where authenticated identity, requested action and trusted resource data meet. Then make every input—including dependency output—earn trust.
- Enforce tenant and object authorization on every endpoint that accepts an object identifier
- Use operation-specific request and response models for property-level access
- Require explicit permission for administrative and cross-role functions
- Test alternate methods, content types, versions, bulk routes and asynchronous workers
- Validate structure, types, ranges, enumerations, relationships and state transitions server-side
- Reject or deliberately handle unknown properties before model binding
- Bound compressed and expanded payload, nesting, collection count, parsing time and output
- Prevent SSRF with constrained egress, destination policy, revalidation at redirects and fetch bounds
- Treat partner responses as untrusted data despite TLS and contractual trust
- Generate a principal × tenant × object × property × function regression matrix
Gateway, Kubernetes and abuse-resistant resource controls
Weeks 6-7Use gateways and platform controls to reduce exposure while preserving service-owned authorization. Protect capacity and sensitive workflows through identity- and cost-aware limits.
- Use Gateway API role separation, explicit route attachment and controlled cross-namespace references
- Strip client-supplied security headers and recreate them only from verified gateway state
- Authenticate and protect gateway-to-service traffic and restrict direct backend access
- Use least-privilege Kubernetes ServiceAccounts, RBAC, admission, auditing and network policy
- Protect kubelet, etcd, runtime sockets and static manifests as API-server bypass paths
- Apply rate and concurrency controls by client, user, tenant, route, operation and target resource
- Bound queues, timeouts, retries, response bytes, storage, downstream calls and paid operations
- Protect reservations, exports and other sensitive business flows from harmful automation
- Use Kubernetes quotas and API Priority and Fairness where their scopes match the risk
- Measure normal-user fairness, recovery, saturation and the tested capacity envelope
Sender constraint, rotation, testing and incident evidence
Weeks 8-10Reduce stolen-token replay, prove cryptographic lifecycle behavior, instrument decisions safely, and turn every confirmed weakness into a durable regression.
- Validate RFC 8705 certificate-bound tokens against the mTLS client certificate
- Validate RFC 9449 DPoP signature, key, method, URI, time, jti, ath, nonce and token binding
- Reject DPoP-bound tokens presented as Bearer and generate a fresh proof for retries
- Document that sender constraint does not replace HTTPS, audience, scope or object authorization
- Pre-publish OIDC signing keys, use distinct kid values, overlap verification and retire deliberately
- Rotate client certificates and define DPoP key loss without silently downgrading protection
- Log safe event, correlation, actor, target, decision, policy, limit and key-version context
- Exclude tokens, codes, cookies, secrets, private keys and unnecessary bodies from evidence
- Practice containment, scope analysis, remediation, credential action and regression on a synthetic incident
- Publish sanitized evidence, state limitations and destroy all endpoints, data and trust material
PrepKloud API security learning surfaces
Practice OAuth/OIDC, authorization, validation, SSRF, dependency trust, abuse, gateway, Kubernetes, keys, privacy and incidents. 25 API security flashcards
Review durable definitions, protocol checks, sender constraint, resource limits, inventory and testing principles. Two substantial projects
Build a zero-trust OAuth/OIDC gateway and an API threat-testing, abuse-prevention and incident range. Complete 2026 practical guide
Read the architecture strategy, control layers, project sequence, testing model and official references. Zero-trust career stack
Place resource-centric API decisions within broader identity, access and architecture responsibilities. Kubernetes cloud-native stack
Connect gateway and API protection to cluster access, workload identity and platform operations.
Official sources
Ground object, authentication, property, resource, function, business-flow, SSRF, configuration, inventory and dependency-consumption risks.
Open OWASP API Security Top 10Use the latest stable ASVS as a versioned verification baseline for technical application controls and traceability.
Open OWASP ASVSApply code-flow, PKCE, redirects, mix-up, token privilege, sender constraint, refresh protection, TLS proxy and client-authentication guidance.
Open RFC 9700Validate authentication requests, ID Tokens, issuer, subject, audience, nonce, UserInfo, privacy, discovery and signing-key rotation.
Open OIDC CoreOpen OIDC Discovery
Compare certificate-bound access tokens and application-layer proof-of-possession, including confirmation data, replay checks and limitations.
Open RFC 8705Open RFC 9449
Move decisions away from implicit network trust and toward users, workloads, assets, resources and explicit access policy.
Open NIST SP 800-207Study TLS, authentication, authorization, admission, audit, bypass paths, quotas, and API Priority and Fairness.
Open access control docsOpen bypass-risk docs
Use official concepts and security model guidance for infrastructure and application roles, attachment, references and policy.
Open Gateway API security modelFrequently asked questions
Is this API security roadmap a certification course?
No. It is explicitly a practical skill path. There is no exam provider, official test blueprint, passing score or credential. The checks are original scenarios and the projects produce implementation, failure, incident and cleanup evidence.
Which standards ground the path?
The source boundary is the OWASP API Security Top 10 2023, OWASP ASVS 5.0.0, RFC 9700, OpenID Connect specifications, RFC 8705, RFC 9449, NIST SP 800-207, and official Kubernetes and Gateway API documentation.
Does an API gateway solve API authorization?
No. A gateway is valuable for TLS, routing, protocol validation, coarse policy, limits and trusted-header sanitation. Object, property and function authorization often depends on service-owned resource state and must be enforced where that context exists.
Should the project use mTLS or DPoP?
Compare both. RFC 8705 sender-constrains tokens through a TLS client certificate. RFC 9449 uses a signed application-layer proof and key binding. Client platform, infrastructure and threat model affect the choice. Neither mechanism replaces HTTPS, audience restriction, scopes, object authorization or secure client code.
How can API threat testing be practiced safely?
Use only an explicitly authorized disposable target and synthetic data. Restrict targets and egress, cap request rate, concurrency, payload and duration, define emergency stop conditions, retain privacy-safe evidence briefly, and verify complete teardown. Never repoint the project at a marketplace or third-party service.
Make every trust decision testable
Start with the resource and action, prove protocol context, layer limits and platform controls, test denial as carefully as success, and finish with incident and cleanup evidence.