Secure API Gateway Framework Using Zero Trust Architecture and OAuth 2.0 for Enterprise Systems

Authors

  • Ajmal Ali Kannu

DOI:

https://doi.org/10.22399/ijcesen.5319

Keywords:

API Gateway Security, Zero Trust Architecture, OAuth 2.0, PKCE, Mutual TLS, Open Policy Agent

Abstract

Enterprise API ecosystems confront a structural security gap: perimeter-based trust assumptions fail across hybrid cloud deployments, third-party integrations, and mobile clients [1]. This paper describes the design, implementation, and evaluation of the Zero Trust API Gateway Framework (ZT-AGF), a layered gateway architecture grounded in NIST SP 800-207 [2] that applies continuous identity verification, attribute-based authorization, and cryptographically bound access tokens at every API transaction boundary. ZT-AGF combines a hardened OAuth 2.0 [3] Authorization Code flow with Proof Key for Code Exchange (PKCE) [9] and mTLS certificate thumbprint binding per RFC 8705 [8], evaluated entirely in-process by an embedded Open Policy Agent [15] runtime. A novel risk evaluation component, the Adaptive Risk Evaluation Engine (AREE), scores eleven gateway-observable signals per request without external service round-trips. A BAN Logic analysis [7] supports mutual authentication, token freshness, and scope confinement properties subject to stated assumptions. Controlled experiments on a 32-node containerized testbed show that ZT-AGF achieves a warm-cache P99 latency of 28.7 ms (95% CI: 27.47--29.93 ms) and 21,350 requests/s, comparing favorably against seven baselines including Envoy with external OPA [12], Kong Gateway [13], Keycloak, and Istio with mTLS AuthorizationPolicy [14]. The false-positive rate of the AREE anomaly detector is 0.38% (95% CI: 0.32--0.44%). All artifacts, Kubernetes manifests, OPA policies, and dataset descriptions are published for reproducibility.

References

[1] OWASP Foundation, "OWASP API Security Top 10," Open Web Application Security Project, 2023. [Online]. Available: https://owasp.org/API-Security/

[2] S. Rose, O. Borchert, S. Mitchell, and S. Connelly, "Zero Trust Architecture," National Institute of Standards and Technology, NIST SP 800-207, Aug. 2020. DOI: https://doi.org/10.6028/NIST.SP.800-207-draft2

[3] D. Hardt, Ed., "The OAuth 2.0 Authorization Framework," Internet Engineering Task Force, RFC 6749, Oct. 2012. DOI: https://doi.org/10.17487/rfc6749

[4] J. Kindervag, "Build Security Into Your Network's DNA: The Zero Trust Network Architecture," Forrester Research, Cambridge, MA, USA, Tech. Rep., Nov. 2010.

[5] R. Ward and B. Beyer, "BeyondCorp: A New Approach to Enterprise Security," USENIX ;login:, vol. 39, no. 6, pp. 6-11, Dec. 2014.

[6] D. Fett, R. Kusters, and G. Schmitz, "A Comprehensive Formal Security Analysis of OAuth 2.0," in Proc. 23rd ACM CCS, Vienna, Austria, Oct. 2016, pp. 1204-1215. DOI: https://doi.org/10.1145/2976749.2978385

[7] M. Burrows, M. Abadi, and R. M. Needham, "A Logic of Authentication," ACM Trans. on Computer Systems, vol. 8, no. 1, pp. 18-36, Feb. 1990. DOI: https://doi.org/10.1145/77648.77649

[8] B. Campbell, J. Bradley, N. Sakimura, and T. Lodderstedt, "OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens," IETF, RFC 8705, Feb. 2020. DOI: https://doi.org/10.17487/RFC8705

[9] N. Sakimura, J. Bradley, N. Agarwal, and T. Lodderstedt, "Proof Key for Code Exchange by OAuth Public Clients," IETF, RFC 7636, Sep. 2015. DOI: https://doi.org/10.17487/RFC7636

[10] K. Bhargavan, A. Delignat-Lavaud, C. Fournet, A. Pironti, and P.-Y. Strub, "Triple Handshakes and Cookie Cutters: Breaking and Fixing Authentication over TLS," in Proc. 35th IEEE S&P, San Jose, CA, USA, May 2014, pp. 98-113. DOI: https://doi.org/10.1109/SP.2014.14

[11] T. Lodderstedt, J. Bradley, A. Labunets, and D. Fett, "OAuth 2.0 Security Best Current Practice," IETF, RFC 9700, Jan. 2025.

[12] Envoy Proxy Authors, "External Authorization Filter," Envoy Proxy Documentation, Version 1.29, 2024. [Online]. Available: https://www.envoyproxy.io/docs/envoy/latest/

[13] Kong Inc., "Kong Gateway Documentation," Version 3.6, 2024. [Online]. Available: https://docs.konghq.com/gateway/

[14] Istio Authors, "Authorization Policy," Istio Documentation, Version 1.21, 2024. [Online]. Available: https://istio.io/latest/docs/reference/config/security/authorization-policy/

[15] Open Policy Agent (OPA) Project, "OPA Documentation," Version 0.63.0, 2024. [Online]. Available: https://www.openpolicyagent.org/docs/latest/

Downloads

Published

2025-04-30

How to Cite

Kannu, A. A. (2025). Secure API Gateway Framework Using Zero Trust Architecture and OAuth 2.0 for Enterprise Systems. International Journal of Computational and Experimental Science and Engineering, 11(4). https://doi.org/10.22399/ijcesen.5319

Issue

Section

Research Article