US 12,003,543 B1
Method and system for modifying and validating API requests
Sayed Asad Ali, Mountain View, CA (US); Andrew Curtis, San Mateo, CA (US); Marco Sanvido, Belmont, CA (US); Timothy L. Hinrichs, Los Altos, CA (US); and Teemu Koponen, San Francisco, CA (US)
Assigned to STYRA, INC., Redwood City, CA (US)
Filed by Styra, Inc., Redwood City, CA (US)
Filed on Apr. 23, 2021, as Appl. No. 17/239,316.
Claims priority of provisional application 63/056,522, filed on Jul. 24, 2020.
Int. Cl. H04L 9/40 (2022.01)
CPC H04L 63/20 (2013.01) [H04L 63/08 (2013.01); H04L 63/123 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method for processing API (application programming interface) requests received at an API server, the method comprising:
at a mutating admission controller of the API server,
intercepting an API request received at the API server;
invoking a mutating webhook to query a policy agent to determine whether the API request requires modifications, wherein the policy agent comprises a set of policies for modifying API requests received at the API server; and
when the policy agent determines that the API request requires modifications based on an identified policy from the set of policies, performing the modifications to the API request according to the identified policy.